@Override public boolean visit(CastExpression castExpression, BlockScope scope) { CastInfo ci = new CastInfo(); //the 8 bits from 21 to 28 represents number of enclosing brackets ci.nrOfBrackets = ((castExpression.bits >>> 21) & 0xF); ci.typeRef = this.references.buildTypeReference(castExpression.type, scope, true); context.casts.add(ci); castExpression.expression.traverse(this, scope); return false; }
public void traverse(ASTVisitor visitor, ClassScope scope) { if (visitor.visit(this, scope)) { if (this.value != null) { this.value.traverse(visitor, scope); } } visitor.endVisit(this, scope); } }
@Override public void traverse(ASTVisitor visitor, BlockScope scope) { if (visitor.visit(this, scope)) { this.lhs.traverse(visitor, scope); } visitor.endVisit(this, scope); } }
@Override public void traverse(ASTVisitor visitor, BlockScope blockScope) { if (visitor.visit(this, blockScope)) { if (this.constantExpression != null) this.constantExpression.traverse(visitor, blockScope); } visitor.endVisit(this, blockScope); } }
public void traverse(ASTVisitor visitor, ClassScope scope) { if (visitor.visit(this, scope)) { if (this.receiver != null) { this.receiver.traverse(visitor, scope); } } visitor.endVisit(this, scope); } }
public void traverse(ASTVisitor visitor, BlockScope blockScope) { if (visitor.visit(this, blockScope)) this.exception.traverse(visitor, blockScope); visitor.endVisit(this, blockScope); }
public void traverse(ASTVisitor visitor, BlockScope scope) { if (visitor.visit(this, scope)) { if (this.expressions != null) { int expressionsLength = this.expressions.length; for (int i = 0; i < expressionsLength; i++) this.expressions[i].traverse(visitor, scope); } } visitor.endVisit(this, scope); } }
public void traverse(ASTVisitor visitor, BlockScope scope) { if (visitor.visit(this, scope)) { if (this.action != null) { this.action.traverse(visitor, scope); } this.condition.traverse(visitor, scope); } visitor.endVisit(this, scope); }
public void traverse( ASTVisitor visitor, BlockScope blockScope) { if (visitor.visit(this, blockScope)) { this.condition.traverse(visitor, blockScope); if (this.action != null) this.action.traverse(visitor, blockScope); } visitor.endVisit(this, blockScope); }
@Override public void traverse(ASTVisitor visitor, BlockScope blockScope) { if (visitor.visit(this, blockScope)) { this.type.traverse(visitor, blockScope); this.expression.traverse(visitor, blockScope); } visitor.endVisit(this, blockScope); } }
@Override public void traverse(ASTVisitor visitor, BlockScope scope) { if (visitor.visit(this, scope)) { if (this.type != null) { this.type.traverse(visitor, scope); } if (this.memberValue != null) { this.memberValue.traverse(visitor, scope); } } visitor.endVisit(this, scope); }
@Override public void traverse(ASTVisitor visitor, BlockScope blockScope) { if (visitor.visit(this, blockScope)) { this.expression.traverse(visitor, this.scope); this.block.traverse(visitor, this.scope); } visitor.endVisit(this, blockScope); }
public void traverse(ASTVisitor visitor, BlockScope scope) { if (visitor.visit(this, scope)) { this.expression.traverse(visitor, scope); this.type.traverse(visitor, scope); } visitor.endVisit(this, scope); } }
@Override public void traverse(ASTVisitor visitor, BlockScope blockScope) { if (visitor.visit(this, blockScope)) { this.condition.traverse(visitor, blockScope); if (this.thenStatement != null) this.thenStatement.traverse(visitor, blockScope); if (this.elseStatement != null) this.elseStatement.traverse(visitor, blockScope); } visitor.endVisit(this, blockScope); }
public void traverse(ASTVisitor visitor, BlockScope blockScope) { if (visitor.visit(this, blockScope)) { this.condition.traverse(visitor, blockScope); if (this.thenStatement != null) this.thenStatement.traverse(visitor, blockScope); if (this.elseStatement != null) this.elseStatement.traverse(visitor, blockScope); } visitor.endVisit(this, blockScope); }