for (Annotation annotation : type.annotations[position]) { if (scope instanceof ClassScope) { annotation.traverse(this.jdtTreeBuilder, (ClassScope) scope); } else if (scope instanceof BlockScope) { annotation.traverse(this.jdtTreeBuilder, (BlockScope) scope); } else { annotation.traverse(this.jdtTreeBuilder, (BlockScope) null);
public void getAllAnnotationContexts(int targetType, List allAnnotationContexts) { AnnotationCollector collector = new AnnotationCollector(this.type, targetType, allAnnotationContexts); for (int i = 0, max = this.annotations.length; i < max; i++) { Annotation annotation = this.annotations[i]; annotation.traverse(collector, (BlockScope) null); } } /**
public void getAllAnnotationContexts(int targetType, List allAnnotationContexts) { AnnotationCollector collector = new AnnotationCollector(this.type, targetType, allAnnotationContexts); for (int i = 0, max = this.annotations.length; i < max; i++) { Annotation annotation = this.annotations[i]; annotation.traverse(collector, (BlockScope) null); } } /**
public void getAllAnnotationContexts(int targetType, List allAnnotationContexts) { AnnotationCollector collector = new AnnotationCollector(null, targetType, allAnnotationContexts); for (int i = 0, max = this.annotations.length; i < max; i++) { Annotation annotation = this.annotations[i]; annotation.traverse(collector, (BlockScope) null); } }
public void getAllAnnotationContexts(int targetType, List allAnnotationContexts) { AnnotationCollector collector = new AnnotationCollector(this.type, targetType, allAnnotationContexts); for (int i = 0, max = this.annotations.length; i < max; i++) { Annotation annotation = this.annotations[i]; annotation.traverse(collector, (BlockScope) null); } } /**
public void getAllAnnotationContexts(int targetType, List allAnnotationContexts) { AnnotationCollector collector = new AnnotationCollector(this.returnType, targetType, allAnnotationContexts); for (int i = 0, max = this.annotations.length; i < max; i++) { Annotation annotation = this.annotations[i]; annotation.traverse(collector, (BlockScope) null); } }
public void getAllAnnotationContexts(int targetType, List allAnnotationContexts) { AnnotationCollector collector = new AnnotationCollector(this.type, targetType, allAnnotationContexts); for (int i = 0, max = this.annotations.length; i < max; i++) { Annotation annotation = this.annotations[i]; annotation.traverse(collector, (BlockScope) null); } } /**
@Override public void getAllAnnotationContexts(int targetType, List allAnnotationContexts) { TypeReference fakeReturnType = new SingleTypeReference(this.selector, 0); fakeReturnType.resolvedType = this.binding.declaringClass; AnnotationCollector collector = new AnnotationCollector(fakeReturnType, targetType, allAnnotationContexts); for (int i = 0, max = this.annotations.length; i < max; i++) { Annotation annotation = this.annotations[i]; annotation.traverse(collector, (BlockScope) null); } }
@Override public void traverse(ASTVisitor visitor, ClassScope scope) { if (visitor.visit(this, scope)) { if (this.annotations != null) { Annotation [] typeAnnotations = this.annotations[0]; for (int i = 0, length = typeAnnotations == null ? 0 : typeAnnotations.length; i < length; i++) typeAnnotations[i].traverse(visitor, scope); } } visitor.endVisit(this, scope); } }
public void traverse(ASTVisitor visitor, ClassScope scope) { if (visitor.visit(this, scope)) { if (this.annotations != null) { Annotation [] typeAnnotations = this.annotations[0]; for (int i = 0, length = typeAnnotations == null ? 0 : typeAnnotations.length; i < length; i++) typeAnnotations[i].traverse(visitor, scope); } } visitor.endVisit(this, scope); } }
public void getAllAnnotationContexts(int targetType, int info, List allAnnotationContexts, Annotation [] se7Annotations) { AnnotationCollector collector = new AnnotationCollector(this, targetType, info, allAnnotationContexts); for (int i = 0, length = se7Annotations == null ? 0 : se7Annotations.length; i < length; i++) { Annotation annotation = se7Annotations[i]; annotation.traverse(collector, (BlockScope) null); } this.traverse(collector, (BlockScope) null); } /**
public void traverse(ASTVisitor visitor, BlockScope scope) { if (visitor.visit(this, scope)) { if (this.annotations != null) { int annotationsLevels = this.annotations.length; for (int i = 0; i < annotationsLevels; i++) { int annotationsLength = this.annotations[i] == null ? 0 : this.annotations[i].length; for (int j = 0; j < annotationsLength; j++) this.annotations[i][j].traverse(visitor, scope); } } } visitor.endVisit(this, scope); }
public void getAllAnnotationContexts(int targetType, int info, List allAnnotationContexts, Annotation [] se7Annotations) { AnnotationCollector collector = new AnnotationCollector(this, targetType, info, allAnnotationContexts); for (int i = 0, length = se7Annotations == null ? 0 : se7Annotations.length; i < length; i++) { Annotation annotation = se7Annotations[i]; annotation.traverse(collector, (BlockScope) null); } this.traverse(collector, (BlockScope) null); } /**
public void traverse(ASTVisitor visitor, ClassScope scope) { if (visitor.visit(this, scope)) { if (this.annotations != null) { Annotation [] typeAnnotations = this.annotations[0]; for (int i = 0, length = typeAnnotations == null ? 0 : typeAnnotations.length; i < length; i++) typeAnnotations[i].traverse(visitor, scope); } } visitor.endVisit(this, scope); } }
private void traverseWithoutInitializer(ASTVisitor visitor, BlockScope scope) { if (visitor.visit(this, scope)) { if (this.annotations != null) { int annotationsLength = this.annotations.length; for (int i = 0; i < annotationsLength; i++) this.annotations[i].traverse(visitor, scope); } this.type.traverse(visitor, scope); } visitor.endVisit(this, scope); }
private void traverseWithoutInitializer(ASTVisitor visitor, BlockScope scope) { if (visitor.visit(this, scope)) { if (this.annotations != null) { int annotationsLength = this.annotations.length; for (int i = 0; i < annotationsLength; i++) this.annotations[i].traverse(visitor, scope); } this.type.traverse(visitor, scope); } visitor.endVisit(this, scope); }
private void traverseWithoutInitializer(ASTVisitor visitor, BlockScope scope) { if (visitor.visit(this, scope)) { if (this.annotations != null) { int annotationsLength = this.annotations.length; for (int i = 0; i < annotationsLength; i++) this.annotations[i].traverse(visitor, scope); } this.type.traverse(visitor, scope); } visitor.endVisit(this, scope); }
public void traverse(ASTVisitor visitor, ClassScope scope) { if (visitor.visit(this, scope)) { if (this.annotations != null) { int annotationsLength = this.annotations.length; for (int i = 0; i < annotationsLength; i++) this.annotations[i].traverse(visitor, scope); } if (this.type != null) this.type.traverse(visitor, scope); } visitor.endVisit(this, scope); } }
public void traverse(ASTVisitor visitor, BlockScope scope) { if (visitor.visit(this, scope)) { if (this.annotations != null) { int annotationsLength = this.annotations.length; for (int i = 0; i < annotationsLength; i++) this.annotations[i].traverse(visitor, scope); } this.type.traverse(visitor, scope); if (this.initialization != null) this.initialization.traverse(visitor, scope); } visitor.endVisit(this, scope); }
static MemberValuePair findAnnotationValueDeclaration(BindingAnnotationElementWithJdt a) { Annotation annotationDeclaration = findAnnotationDeclaration(a.getDeclaringAnnotation()); if (annotationDeclaration == null) { return null; } FindMemberValuePairVisitor v = new FindMemberValuePairVisitor(a.getInternalBinding()); annotationDeclaration.traverse(v, (BlockScope) null); return v.getResult(); }