|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.aspectj.org.eclipse.jdt.internal.compiler.ASTVisitor
org.aspectj.ajdt.internal.core.builder.AsmHierarchyBuilder
public class AsmHierarchyBuilder
At each iteration of processCompilationUnit the declarations for a particular compilation unit are added to the
hierarchy passed as a a parameter.
Clients who extend this class need to ensure that they do not override any of the existing behavior. If they do, the structure model will not be built properly and tools such as IDE structure views and ajdoc will fail.
Note: this class is not considered public API and the overridable methods are subject to change.
| Field Summary | |
|---|---|
protected AjBuildConfig |
buildConfig
Reset for every compilation unit. |
protected AsmElementFormatter |
formatter
|
protected ImportReference |
packageDecl
|
protected java.util.Stack<IProgramElement> |
stack
Reset for every compilation unit. |
| Constructor Summary | |
|---|---|
AsmHierarchyBuilder()
|
|
| Method Summary | |
|---|---|
void |
buildStructureForCompilationUnit(CompilationUnitDeclaration cuDeclaration,
AsmManager structureModel,
AjBuildConfig buildConfig)
|
void |
endVisit(ConstructorDeclaration constructorDeclaration,
ClassScope scope)
|
void |
endVisit(FieldDeclaration fieldDeclaration,
MethodScope scope)
|
void |
endVisit(ImportReference importRef,
CompilationUnitScope scope)
|
void |
endVisit(MethodDeclaration methodDeclaration,
ClassScope scope)
|
void |
endVisit(TypeDeclaration memberTypeDeclaration,
BlockScope scope)
|
void |
endVisit(TypeDeclaration memberTypeDeclaration,
ClassScope scope)
|
void |
endVisit(TypeDeclaration typeDeclaration,
CompilationUnitScope scope)
|
protected void |
genBytecodeInfo(MethodDeclaration methodDeclaration,
IProgramElement peNode)
|
protected java.lang.String |
generateJavadocComment(ASTNode astNode)
Checks if comments should be added to the model before generating. |
protected java.lang.String |
genSourceSignature(FieldDeclaration fieldDeclaration)
|
protected int |
getEndLine(ASTNode n)
|
protected int |
getStartLine(ASTNode n)
|
protected ISourceLocation |
makeLocation(ASTNode node)
|
boolean |
visit(ConstructorDeclaration constructorDeclaration,
ClassScope scope)
|
boolean |
visit(FieldDeclaration fieldDeclaration,
MethodScope scope)
|
boolean |
visit(ImportReference importRef,
CompilationUnitScope scope)
|
boolean |
visit(Initializer initializer,
MethodScope scope)
|
boolean |
visit(MethodDeclaration methodDeclaration,
ClassScope scope)
|
boolean |
visit(TypeDeclaration memberTypeDeclaration,
BlockScope scope)
|
boolean |
visit(TypeDeclaration memberTypeDeclaration,
ClassScope scope)
|
boolean |
visit(TypeDeclaration typeDeclaration,
CompilationUnitScope scope)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected AsmElementFormatter formatter
protected AjBuildConfig buildConfig
protected java.util.Stack<IProgramElement> stack
protected ImportReference packageDecl
| Constructor Detail |
|---|
public AsmHierarchyBuilder()
| Method Detail |
|---|
public void buildStructureForCompilationUnit(CompilationUnitDeclaration cuDeclaration,
AsmManager structureModel,
AjBuildConfig buildConfig)
cuDeclaration - buildConfig - structureModel - hiearchy to add this unit's declarations to
public boolean visit(TypeDeclaration typeDeclaration,
CompilationUnitScope scope)
visit in class ASTVisitor
public void endVisit(TypeDeclaration typeDeclaration,
CompilationUnitScope scope)
endVisit in class ASTVisitor
public boolean visit(TypeDeclaration memberTypeDeclaration,
ClassScope scope)
visit in class ASTVisitor
public void endVisit(TypeDeclaration memberTypeDeclaration,
ClassScope scope)
endVisit in class ASTVisitor
public boolean visit(TypeDeclaration memberTypeDeclaration,
BlockScope scope)
visit in class ASTVisitor
public void endVisit(TypeDeclaration memberTypeDeclaration,
BlockScope scope)
endVisit in class ASTVisitor
public boolean visit(MethodDeclaration methodDeclaration,
ClassScope scope)
visit in class ASTVisitor
protected void genBytecodeInfo(MethodDeclaration methodDeclaration,
IProgramElement peNode)
public void endVisit(MethodDeclaration methodDeclaration,
ClassScope scope)
endVisit in class ASTVisitor
public boolean visit(ImportReference importRef,
CompilationUnitScope scope)
visit in class ASTVisitor
public void endVisit(ImportReference importRef,
CompilationUnitScope scope)
endVisit in class ASTVisitor
public boolean visit(FieldDeclaration fieldDeclaration,
MethodScope scope)
visit in class ASTVisitor
public void endVisit(FieldDeclaration fieldDeclaration,
MethodScope scope)
endVisit in class ASTVisitorprotected java.lang.String generateJavadocComment(ASTNode astNode)
protected java.lang.String genSourceSignature(FieldDeclaration fieldDeclaration)
public boolean visit(ConstructorDeclaration constructorDeclaration,
ClassScope scope)
visit in class ASTVisitor
public void endVisit(ConstructorDeclaration constructorDeclaration,
ClassScope scope)
endVisit in class ASTVisitor
public boolean visit(Initializer initializer,
MethodScope scope)
visit in class ASTVisitorprotected ISourceLocation makeLocation(ASTNode node)
protected int getStartLine(ASTNode n)
protected int getEndLine(ASTNode n)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||