Examples of Annotation


Examples of com.intellij.javascript.testFramework.Annotation

  }

  private static void handleBeginOfMarkedTestCase(MarkedJsTestFileStructure markedJsTestFileStructure, String fileText) {
    Matcher testCaseMatcher = TEST_CASE_PATTERN.matcher(fileText);
    while (testCaseMatcher.find()) {
      Annotation annotation = new Annotation("TestCase", testCaseMatcher.start(), testCaseMatcher.end(), testCaseMatcher.group(1));
      int id = MarkedTestCaseStructure.getIdAndValidate(annotation);
      MarkedTestCaseStructure markedTestCaseStructure = markedJsTestFileStructure.findById(id);
      if (markedTestCaseStructure != null) {
        throw new RuntimeException("Duplicated TestCase with id " + id + " found");
      }
View Full Code Here

Examples of com.intellij.lang.annotation.Annotation

public class MathematicaHighlightingAnnotator extends MathematicaVisitor implements Annotator {
  private static final Set<String> NAMES = SymbolInformationProvider.getSymbolNames().keySet();
  private AnnotationHolder myHolder = null;

  private static void setHighlighting(@NotNull PsiElement element, @NotNull AnnotationHolder holder, @NotNull TextAttributesKey key) {
    final Annotation annotation = holder.createInfoAnnotation(element, null);
    annotation.setTextAttributes(key);
    annotation.setNeedsUpdateOnTyping(false);
  }
View Full Code Here

Examples of com.lowagie.text.Annotation

                }
                case Element.ANNOTATION: {
                    if (line == null) {
                        carriageReturn();
                    }
                    Annotation annot = (Annotation) element;
                    Rectangle rect = new Rectangle(0, 0);
                    if (line != null)
                      rect = new Rectangle(annot.llx(indentRight() - line.widthLeft()), annot.lly(indentTop() - currentHeight), annot.urx(indentRight() - line.widthLeft() + 20), annot.ury(indentTop() - currentHeight - 20));
                    PdfAnnotation an = PdfAnnotationsImp.convertAnnotation(writer, annot, rect);
                    annotationsImp.addPlainAnnotation(an);
                    pageEmpty = false;
                    break;
                }
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.model.Annotation

    @Override
    public void visit(Tree.SpecifierStatement st) {
        TypedDeclaration d = ((Tree.SpecifierStatement) st).getDeclaration();
        //Just add shared and actual annotations to this declaration
        if (d != null) {
            Annotation ann = new Annotation();
            ann.setName("shared");
            d.getAnnotations().add(ann);
            ann = new Annotation();
            ann.setName("actual");
            d.getAnnotations().add(ann);
            if (d instanceof Method) {
                gen.encodeMethod((Method)d);
            } else if (d instanceof Value) {
                gen.encodeAttributeOrGetter((Value)d);
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.tree.Tree.Annotation

    }
   
    public Tree.Annotation findSuppressWarnings(Tree.AnnotationList that) {
        if (that != null && that.getAnnotations() != null) {
            for (Tree.Annotation anno : that.getAnnotations()) {
                Annotation suppressWarnings = getSuppressWarnings(anno);
                if (suppressWarnings != null) {
                    return suppressWarnings;
                }
            }
        }
View Full Code Here

Examples of com.strobel.decompiler.languages.java.ast.Annotation

            true
        );

        for (final MethodReference candidate : candidates) {
            if (MetadataHelper.isOverride(method, candidate)) {
                final Annotation annotation = new Annotation();

                if (_astBuilder != null) {
                    annotation.setType(_astBuilder.convertType(annotationType));
                }
                else {
                    annotation.setType(new SimpleType(annotationType.getSimpleName()));
                }

                node.getAnnotations().add(annotation);
                break;
            }
View Full Code Here

Examples of com.thoughtworks.qdox.model.Annotation

    {
        if ( javaMethod.getAnnotations() != null )
        {
            for ( int i = 0; i < javaMethod.getAnnotations().length; i++ )
            {
                Annotation annotation = javaMethod.getAnnotations()[i];

                if ( annotation.toString().equals( "@java.lang.Override()" ) )
                {
                    return true;
                }
            }
        }
View Full Code Here

Examples of com.twitter.zipkin.gen.Annotation

        final long startDateMs = 1000;
        final long endDateMs = 2000;
        final int durationMs = (int)(endDateMs - startDateMs);
        abstractAnnotationSubmitter.submitAnnotation(ANNOTATION_NAME, startDateMs, endDateMs);

        final Annotation expectedAnnotation = new Annotation();
        expectedAnnotation.setHost(endPoint);
        expectedAnnotation.setValue(ANNOTATION_NAME + "=" + durationMs + "ms");
        expectedAnnotation.setTimestamp(startDateMs * 1000);
        expectedAnnotation.setDuration(durationMs * 1000);
        verify(mockSpan).addToAnnotations(expectedAnnotation);
        verifyNoMoreInteractions(mockSpan);
    }
View Full Code Here

Examples of de.pdf_scrutinizer.API.app.doc.Annotation

                    COSObject subject = (COSObject) subjectbase;
                    if (subject != null) {
                        COSBase ref_subject = ((COSObject) subject).getObject();

                        if (ref_subject instanceof COSStream) {
                            result.add(new Annotation(decodeStream((COSStream) ref_subject)));
                        }
                    }
                } else if (subjectbase instanceof COSString) {
                    COSString subject = (COSString) subjectbase;
                    result.add(new Annotation(subject.getString()));
                }
            } else if (annotation instanceof PDAnnotationUnknown) {
                PDAnnotationUnknown annotation2 = (PDAnnotationUnknown) annotation;
                COSObject subject = (COSObject) annotation2.getDictionary().getItem(COSName.SUBJ);
                if (subject != null) {
                    COSBase ref_subject = ((COSObject) subject).getObject();

                    if (ref_subject instanceof COSStream) {
                        result.add(new Annotation(decodeStream((COSStream) ref_subject)));
                        continue;
                    }
                }

                subject = (COSObject) annotation2.getDictionary().getItem(COSName._3DD); // 3D-Annots
                if (subject != null) {
                    COSBase ref_subject = ((COSObject) subject).getObject();

                    if (ref_subject instanceof COSStream) {
                        result.add(new Annotation(decodeStream((COSStream) ref_subject)));
                    }
                }
            }
        }
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.terminology.Annotation

    Relation relation = new Relation("isa");
    c.getRelatedConcepts(relation);
    c.getRelationMap();
    c.getRelations();

    Annotation annots[] = c.getAnnotations();
    c.getParentConcepts();
    edu.pitt.dbmi.nlp.noble.terminology.Concept[] children = c
        .getChildrenConcepts();
    Definition[] definitions = c.getDefinitions();
    String[] matchedTerms = c.getMatchedTerms();
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.