Esempio n. 1
0
 public void traverse(ASTVisitor visitor, BlockScope scope) {
   if (visitor.visit(this, scope)) {
     this.receiver.traverse(visitor, scope);
     this.position.traverse(visitor, scope);
   }
   visitor.endVisit(this, scope);
 }
Esempio n. 2
0
  @Override
  public void traverse(ASTVisitor visitor, BlockScope blockScope) {

    if (visitor.visit(this, blockScope)) {
      this.expression.traverse(visitor, blockScope);
    }
    visitor.endVisit(this, blockScope);
  }
Esempio n. 3
0
  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, ClassScope scope) {
   visitor.visit(this, scope);
   visitor.endVisit(this, scope);
 }