Ejemplo 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);
 }
Ejemplo 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);
  }
Ejemplo 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);
  }
Ejemplo n.º 4
0
 public void traverse(ASTVisitor visitor, ClassScope scope) {
   visitor.visit(this, scope);
   visitor.endVisit(this, scope);
 }