Examples of Annotation


Examples of org.jruby.ast.java_signature.Annotation

              }
  break;
case 126:
          // line 541 "src/org/jruby/parser/JavaSignatureParser.y"
  {
               yyVal = new Annotation(((String)yyVals[0+yyTop]), new ArrayList<AnnotationParameter>());
           }
  break;
case 127:
          // line 544 "src/org/jruby/parser/JavaSignatureParser.y"
  {
               yyVal = new Annotation(((String)yyVals[-3+yyTop]), ((List)yyVals[-1+yyTop]));
           }
  break;
case 128:
          // line 549 "src/org/jruby/parser/JavaSignatureParser.y"
  { yyVal = ((String)yyVals[-1+yyTop]) + ((String)yyVals[0+yyTop]); }
View Full Code Here

Examples of org.kie.api.definition.type.Annotation

        assertEquals( "org.drools.compiler.test.Bean", bean.getName() );
        assertEquals( "Bean", bean.getSimpleName() );
        assertEquals( "org.drools.compiler.test", bean.getPackageName() );

        assertEquals( 2, bean.getClassAnnotations().size() );
        Annotation ann = bean.getClassAnnotations().get( 0 );
        if (!ann.getName().equals("org.drools.compiler.compiler.TypeDeclarationTest$KlassAnnotation")) {
            ann = bean.getClassAnnotations().get( 1 );
        }
        assertEquals( "org.drools.compiler.compiler.TypeDeclarationTest$KlassAnnotation", ann.getName() );
        assertEquals( "klass", ann.getPropertyValue( "value" ) );
        assertEquals( String.class, ann.getPropertyType( "value" ) );

        assertEquals( 2, bean.getMetaData().size() );
        assertEquals( "event", bean.getMetaData().get( "role" ) );

        FactField field = bean.getField( "name" );
        assertNotNull( field );
        assertEquals( 2, field.getFieldAnnotations().size() );
        Annotation fnn = field.getFieldAnnotations().get( 0 );
        if (!ann.getName().equals("org.drools.compiler.compiler.TypeDeclarationTest$FieldAnnotation")) {
            ann = bean.getClassAnnotations().get( 1 );
        }
        assertEquals( "org.drools.compiler.compiler.TypeDeclarationTest$FieldAnnotation", fnn.getName() );
        assertEquals( "fld", fnn.getPropertyValue( "prop" ) );
        assertEquals( String.class, fnn.getPropertyType( "prop" ) );

        assertEquals( 1, field.getMetaData().size() );
        assertTrue( field.getMetaData().containsKey( "key" ) );

    }
View Full Code Here

Examples of org.latexlab.docs.client.widgets.AnnotatedPanel.Annotation

          int pnum = hint.getOutputPage() - 1;
          if (!hints.containsKey(pnum)) {
            hints.put(pnum, new ArrayList<Annotation>());
          }
          String line = String.valueOf(hint.getSourceLine());
          Annotation ann = new Annotation(
              hint.getY(),
              line,
              "Jump to source code, line " + line,
              String.valueOf(line)
          );
View Full Code Here

Examples of org.mapstruct.ap.model.Annotation

        return "spring";
    }

    @Override
    protected Annotation getTypeAnnotation() {
        return new Annotation( getTypeFactory().getType( "org.springframework.stereotype.Component" ) );
    }
View Full Code Here

Examples of org.mitre.jcarafe.util.Annotation

  public List<LightAnnot> processRawStringAsAnnotList(String s) {
    Annotation[] annots = decoderPipeline.processRawStringAsAnnotList(s);
    List<LightAnnot> alist = new ArrayList<LightAnnot>();
    int i = 0;
    for (i = 0; i < annots.length; i++) {
      Annotation ann = annots[i];
      alist.add(new LightAnnot(ann.st(),ann.en(),ann.typ().toString()));
    }
    return (alist);
  }
View Full Code Here

Examples of org.mitre.medfacts.i2b2.annotation.Annotation

    //ArrayList<ArrayList<String>> textLookup = new ArrayList<ArrayList<String>>();
    ArrayList<String[]> textLookupTemp = new ArrayList<String[]>();
    int lineNumber = 1;
    while ((currentLine = br.readLine()) != null)
    {
      Annotation c = processAnnotationLine(currentLine, pattern);
      c.setAnnotationFileLineNumber(lineNumber);
      annotationList.add(c);
      lineNumber++;
    }

    br.close();
View Full Code Here

Examples of org.nexml.model.Annotation

   * @throws URISyntaxException
   */
  private void attachAnalysisMetadata(Map<String, AnalyzedData> analyzedDataForData, Study tbStudy, Document nexDoc) throws URISyntaxException {
    for ( Analysis tbAnalysis : tbStudy.getAnalyses() ) {
      URI tbAnalysisPurl = URI.create(tbAnalysis.getPhyloWSPath().getPurl().toString());
      Annotation nexAnalysis = nexDoc.addAnnotationValue("tb:identifier.analysis", Constants.TBTermsURI, tbAnalysisPurl);
      logger.info("attached analysis identifier " + tbAnalysisPurl);
     
      for ( AnalysisStep tbAnalysisStep : tbAnalysis.getAnalysisStepsReadOnly() ) {
        URI tbAnalysisStepPurl = URI.create(tbAnalysisStep.getPhyloWSPath().getPurl().toString());
        Annotation nexAnalysisStep = nexAnalysis.addAnnotationValue("tb:identifier.analysisstep", Constants.TBTermsURI, tbAnalysisStepPurl);
        logger.info("attached analysis step identifier " + tbAnalysisStepPurl);
       
        attachAnalysisStepMetadata(tbAnalysisStep, nexAnalysisStep);       
        for ( AnalyzedData tbAnalyzedData : tbAnalysisStep.getDataSetReadOnly() ) {
          String type = tbAnalyzedData.getDataType();
View Full Code Here

Examples of org.objectweb.asm.attrs.Annotation

        public void visitAttribute(Attribute attr) {
            if (attr instanceof RuntimeVisibleAnnotations) {
                RuntimeVisibleAnnotations rva = (RuntimeVisibleAnnotations) attr;
                for (Object annotation : rva.annotations) {
                    if (annotation instanceof Annotation) {
                        Annotation ann = (Annotation) annotation;
                        for (String annTypeDesc : annotationTypeDescs) {
                            if (ann.type.equals(annTypeDesc)) {
                                // we have found one of the annotations -> we won't need to add it again !
                                annotationTypeDescs.remove(annTypeDesc);
                                break;
View Full Code Here

Examples of org.openbel.framework.common.model.Annotation

        }

        List<String> values = new ArrayList<String>();
        AnnotationDefinition ad = null;
        for (int i = 0; i < a.size(); i++) {
            Annotation ann = a.get(i);
            if (i == 0) {
                ad = ann.getDefinition();
            } else if (ad != null && !ad.equals(ann.getDefinition())) {
                throw new IllegalStateException(
                        "annotations must have equal definitions.");
            }

            values.add(ann.getValue());
        }

        return new BELAnnotation(badc.convert(ad), values);
    }
View Full Code Here

Examples of org.openbel.framework.ws.model.Annotation

    }

    public static Annotation convert(org.openbel.framework.common.model.Annotation annotation) {
        if (annotation == null) return null;

        Annotation wsAnnotation = OBJECT_FACTORY.createAnnotation();
        AnnotationType wsAnnotationType = OBJECT_FACTORY.createAnnotationType();

        AnnotationDefinition def = annotation.getDefinition();
        if (def.getId() != null) wsAnnotationType.setName(def.getId());
        if (def.getDescription() != null) wsAnnotationType.setDescription(def.getDescription());
        if (def.getUsage() != null) wsAnnotationType.setUsage(def.getUsage());
        if (def.getType() != null) {
            AnnotationDefinitionType ad = AnnotationDefinitionType.fromValue(def.getType().toString());
            wsAnnotationType.setAnnotationDefinitionType(ad);
        }
        wsAnnotation.setAnnotationType(wsAnnotationType);
        wsAnnotation.setValue(annotation.getValue());
        return wsAnnotation;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.