List of usage examples for org.eclipse.jdt.internal.compiler ASTVisitor endVisit
public void endVisit(SwitchExpression switchExpression, BlockScope scope)
From source file:org.eclipse.ajdt.internal.core.parserbridge.AJCompilationUnitDeclarationWrapper.java
License:Open Source License
public void traverse(ASTVisitor visitor, CompilationUnitScope unitScope) { if (delegate.ignoreFurtherInvestigation) return;/*w w w. j a v a 2 s . c o m*/ try { if (visitor.visit(this, unitScope)) { if (currentPackage != null) { currentPackage.traverse(visitor, unitScope); } if (delegate.imports != null) { int importLength = delegate.imports.length; for (int i = 0; i < importLength; i++) { AJLog.log("AJCompilationUnitDeclarationWrapper - Not traversing import: " //$NON-NLS-1$ + delegate.imports[i]); } } if (delegate.types != null) { int typesLength = delegate.types.length; for (int i = 0; i < typesLength; i++) { AJLog.log( "AJCompilationUnitDeclarationWrapper - Not traversing type: " + delegate.types[i]); //$NON-NLS-1$ } } } visitor.endVisit(this, scope); } catch (AbortCompilationUnit e) { // ignore } }
From source file:org.eclipse.objectteams.otdt.internal.core.compiler.ast.BaseCallMessageSend.java
License:Open Source License
public void traverse(ASTVisitor visitor, BlockScope scope) { if (visitor.visit(this, scope)) { this._wrappee.traverse(visitor, scope); }/*from w w w . j a va2 s.co m*/ visitor.endVisit(this, scope); }
From source file:org.eclipse.objectteams.otdt.internal.core.compiler.ast.BaseReference.java
License:Open Source License
public void traverse(ASTVisitor visitor, BlockScope blockScope) { visitor.visit(this, blockScope); visitor.endVisit(this, blockScope); }
From source file:org.eclipse.objectteams.otdt.internal.core.compiler.ast.CallinMappingDeclaration.java
License:Open Source License
public void traverse(ASTVisitor visitor, ClassScope classScope) { if (visitor.visit(this, classScope)) { this.roleMethodSpec.traverse(visitor, this.scope); for (int idx = 0; idx < this.baseMethodSpecs.length; idx++) { this.baseMethodSpecs[idx].traverse(visitor, this.scope); }/* w w w.j a va2 s. com*/ if (this.mappings != null) { for (int idy = 0; idy < this.mappings.length; idy++) { ParameterMapping mapping = this.mappings[idy]; mapping.traverse(visitor, this.scope); } } } visitor.endVisit(this, classScope); }
From source file:org.eclipse.objectteams.otdt.internal.core.compiler.ast.CalloutMappingDeclaration.java
License:Open Source License
public void traverse(ASTVisitor visitor, ClassScope classScope) { if (visitor.visit(this, classScope)) { if (this.roleMethodSpec != null) this.roleMethodSpec.traverse(visitor, this.scope); if (this.baseMethodSpec != null) // null happens on "void foo() -> ;" this.baseMethodSpec.traverse(visitor, this.scope); if (this.mappings != null) { for (int i = 0; i < this.mappings.length; i++) { ParameterMapping mapping = this.mappings[i]; mapping.traverse(visitor, this.scope); }/*from w ww . jav a2 s. c o m*/ } } visitor.endVisit(this, classScope); }
From source file:org.eclipse.objectteams.otdt.internal.core.compiler.ast.LiftingTypeReference.java
License:Open Source License
public void traverse(ASTVisitor visitor, BlockScope scope) { visitor.visit(this, scope); visitor.endVisit(this, scope); }
From source file:org.eclipse.objectteams.otdt.internal.core.compiler.ast.LiftingTypeReference.java
License:Open Source License
public void traverse(ASTVisitor visitor, ClassScope scope) { visitor.visit(this, scope); visitor.endVisit(this, scope); }
From source file:org.eclipse.objectteams.otdt.internal.core.compiler.ast.MethodSpec.java
License:Open Source License
public void traverse(ASTVisitor visitor, BlockScope scope) { if (visitor.visit(this, scope)) { if (this.returnType != null) this.returnType.traverse(visitor, scope); if (this.arguments != null) { int argumentLength = this.arguments.length; for (int i = 0; i < argumentLength; i++) this.arguments[i].traverse(visitor, scope); }/* w w w . j a va 2 s.c om*/ } visitor.endVisit(this, scope); }
From source file:org.eclipse.objectteams.otdt.internal.core.compiler.ast.ParameterMapping.java
License:Open Source License
public void traverse(ASTVisitor visitor, BlockScope scope) { if (visitor.visit(this, scope)) this.expression.traverse(visitor, scope); visitor.endVisit(this, scope); }
From source file:org.eclipse.objectteams.otdt.internal.core.compiler.ast.PrecedenceDeclaration.java
License:Open Source License
@Override public void traverse(ASTVisitor visitor, BlockScope scope) { if (visitor.visit(this, scope)) { if (this.bindingNames != null) { int len = this.bindingNames.length; for (int i = 0; i < len; i++) this.bindingNames[i].traverse(visitor, scope); }//from ww w .j ava 2 s . co m } visitor.endVisit(this, scope); }