|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.aspectj.compiler.base.CompilerObject
org.aspectj.compiler.base.ast.ASTObject
Field Summary | |
protected static DummySourceLocation |
dummySource
|
protected ASTObject |
parent
|
protected SourceLocation |
sourceLocation
|
Constructor Summary | |
ASTObject()
|
|
ASTObject(SourceLocation loc)
|
Method Summary | |
void |
addComment(Comment _comment)
|
MethodDec |
buildAccessMethod(org.aspectj.compiler.base.InnerAccessFixer w)
Builds a method that would perform the actions of this expression. |
void |
checkNoSharing(ASTObject other)
|
void |
checkSpec()
|
void |
cleanup()
|
void |
clearComment()
|
void |
clearParent()
|
boolean |
contains(ASTObject node)
|
boolean |
containsTypes()
|
ASTObject |
copy()
|
ASTObject |
copyWalk(CopyWalker walker)
|
void |
display(int indent)
|
ASTObject |
fixAccessPost(org.aspectj.compiler.crosscuts.AccessFixer fixer)
|
void |
fixAST(org.aspectj.compiler.base.ASTFixerPass fixer)
|
boolean |
fromSource()
|
AST |
getAST()
|
int |
getBeginColumn()
|
int |
getBeginLine()
|
Type |
getBytecodeType()
|
TypeDec |
getBytecodeTypeDec()
not part of the language's semantic model, but part of the compiler's generated code model. |
ASTObject |
getChildAt(int childIndex)
|
int |
getChildCount()
|
java.lang.String |
getChildNameAt(int childIndex)
|
Comment |
getComment()
|
CompilationUnit |
getCompilationUnit()
|
Type |
getDeclaringType()
returns the declaring type of a method. |
java.lang.String |
getDefaultDisplayName()
|
CodeDec |
getEnclosingCodeDec()
|
Dec |
getEnclosingDec()
|
int |
getEndColumn()
|
int |
getEndLine()
|
int |
getEndPosition()
|
java.lang.String |
getFormalComment()
|
Type |
getLexicalType()
returns the lexically enclosing Type for this object. |
Type |
getOutermostBytecodeType()
|
Type |
getOutermostLexicalType()
|
ASTObject |
getParent()
|
java.lang.String |
getSourceDirectoryName()
|
java.io.File |
getSourceFile()
|
java.lang.String |
getSourceFileName()
|
SourceLocation |
getSourceLocation()
|
int |
getStartPosition()
|
boolean |
hasLegalProtectedAccess(Type fromType)
|
boolean |
hasSource()
|
boolean |
hasSourceLocation()
|
void |
implementMixin(org.aspectj.compiler.crosscuts.MixinImplementationPass walker)
|
int |
indexOf(ASTObject node)
|
boolean |
inStaticContext()
|
boolean |
isLanguageVisible()
|
boolean |
isLeaf()
|
boolean |
isSynthetic()
|
protected void |
makeChild(ASTObject object)
|
protected void |
makeChild(ASTObject[] array)
|
ASTObject |
postAssignmentCheck(org.aspectj.compiler.base.AssignmentCheckerPass walker)
|
ASTObject |
postCleanup(org.aspectj.compiler.base.ByteCodeCleanupPass walker)
|
ASTObject |
postCopy(CopyWalker walker,
ASTObject oldObject)
|
ASTObject |
postFixAST(org.aspectj.compiler.base.ASTFixerPass fixer)
|
ASTObject |
postImplementMixin(org.aspectj.compiler.crosscuts.MixinImplementationPass walker)
|
ASTObject |
postInnerAccess(org.aspectj.compiler.base.InnerAccessFixer w)
Converts an expression accessing inaccessable context to one that is legal. |
void |
postInnerInfo(org.aspectj.compiler.base.InnerInfoPass walker)
|
ASTObject |
postLift(org.aspectj.compiler.base.LocalClassPass.LiftWalker walker)
|
ASTObject |
postMove(MovingWalker walker)
|
ASTObject |
postScope(ScopeWalker walker)
|
ASTObject |
postThreading(org.aspectj.compiler.base.LocalClassPass.ThreadingWalker walker)
|
void |
preAssignmentCheck(org.aspectj.compiler.base.AssignmentCheckerPass walker)
|
void |
preCopy(CopyWalker walker,
ASTObject oldObject)
|
void |
preIntroduction(org.aspectj.compiler.crosscuts.IntroductionPlannerPass pass)
|
void |
preLift(org.aspectj.compiler.base.LocalClassPass.LiftWalker walker)
|
void |
preMove(MovingWalker walker)
|
void |
preScope(ScopeWalker walker)
|
void |
preThreading(org.aspectj.compiler.base.LocalClassPass.ThreadingWalker walker)
|
void |
remove(ASTObject child)
|
void |
remove(int index)
|
void |
removeChildAt(int childIndex)
|
void |
replaceWith(ASTObject other)
|
void |
setChildAt(int childIndex,
ASTObject child)
|
void |
setFormalComment(java.lang.String comment)
|
void |
setParent(ASTObject x)
|
protected void |
setParents()
|
ASTObject |
setSource(ASTObject sourceObject)
|
void |
setSourceLocation(SourceLocation newLocation)
|
ASTObject |
setSyntheticSource(ASTObject sourceObject)
Sets the ASTObject that this one came from, not the source file, but from a synthetic location. |
void |
showError(java.lang.String message)
|
void |
showMessage(java.lang.String message)
|
void |
showTypeError(Type foundType,
Type requiredType)
|
void |
showWarning(java.lang.String message)
|
java.lang.String |
toShortString()
|
java.lang.String |
toString()
|
java.lang.String |
unparse()
|
void |
unparse(org.aspectj.compiler.base.CodeWriter writer)
|
void |
walk(Walker walker)
|
void |
walkAnalysis(org.aspectj.compiler.base.LocalClassPass.AnalysisWalker walker)
|
void |
walkAssignmentCheck(org.aspectj.compiler.base.AssignmentCheckerPass walker)
|
void |
walkCleanup(org.aspectj.compiler.base.ByteCodeCleanupPass walker)
|
void |
walkFlow(org.aspectj.compiler.base.FlowCheckerPass w)
|
void |
walkForwardReference(org.aspectj.compiler.base.ForwardReferenceChecker w)
|
void |
walkFrameLoc(org.aspectj.compiler.base.FrameLocPass walker)
|
void |
walkInnerInfo(org.aspectj.compiler.base.InnerInfoPass walker)
|
ASTObject |
walkMemberMunger(org.aspectj.compiler.base.MemberClassMunger w)
|
void |
walkScope(ScopeWalker walker)
|
Methods inherited from class org.aspectj.compiler.base.CompilerObject |
getCompiler, getOptions, getTypeManager, getWorld |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected SourceLocation sourceLocation
protected ASTObject parent
protected static DummySourceLocation dummySource
Constructor Detail |
public ASTObject(SourceLocation loc)
public ASTObject()
Method Detail |
public boolean hasSourceLocation()
public SourceLocation getSourceLocation()
public void setSourceLocation(SourceLocation newLocation)
public int getStartPosition()
public int getEndPosition()
public int getBeginLine()
public int getEndLine()
public int getBeginColumn()
public int getEndColumn()
public Comment getComment()
public void addComment(Comment _comment)
public boolean isSynthetic()
public boolean isLanguageVisible()
public void setFormalComment(java.lang.String comment)
public java.lang.String getFormalComment()
public void clearComment()
public CompilationUnit getCompilationUnit()
public java.io.File getSourceFile()
public final java.lang.String getSourceFileName()
public final java.lang.String getSourceDirectoryName()
public boolean hasSource()
public boolean fromSource()
public void setParent(ASTObject x)
public ASTObject getParent()
public int getChildCount()
public ASTObject getChildAt(int childIndex)
public java.lang.String getChildNameAt(int childIndex)
public void setChildAt(int childIndex, ASTObject child)
public void removeChildAt(int childIndex)
public void remove(int index)
public void remove(ASTObject child)
public boolean isLeaf()
public int indexOf(ASTObject node)
public boolean contains(ASTObject node)
public boolean hasLegalProtectedAccess(Type fromType)
public final boolean containsTypes()
public void walkForwardReference(org.aspectj.compiler.base.ForwardReferenceChecker w)
public void walkFlow(org.aspectj.compiler.base.FlowCheckerPass w)
public void walkFrameLoc(org.aspectj.compiler.base.FrameLocPass walker)
public void preMove(MovingWalker walker)
public ASTObject postMove(MovingWalker walker)
public ASTObject fixAccessPost(org.aspectj.compiler.crosscuts.AccessFixer fixer)
public ASTObject copyWalk(CopyWalker walker)
public ASTObject postCopy(CopyWalker walker, ASTObject oldObject)
public void preCopy(CopyWalker walker, ASTObject oldObject)
public void preIntroduction(org.aspectj.compiler.crosscuts.IntroductionPlannerPass pass)
public void preScope(ScopeWalker walker)
public ASTObject postScope(ScopeWalker walker)
public void walkScope(ScopeWalker walker)
public void walk(Walker walker)
public Type getOutermostLexicalType()
public Type getOutermostBytecodeType()
public Type getLexicalType()
interface I { }
class C implements I { }
aspect A {
void C.m() { ... }
}
For the method I.m() implemented in C and for any ASTObjects inside of it,
getLexicalType() == A
getDeclaringType() == I
getBytecodeTypeDec().getType() == C
public Type getDeclaringType()
public TypeDec getBytecodeTypeDec()
public Type getBytecodeType()
public Dec getEnclosingDec()
public CodeDec getEnclosingCodeDec()
public boolean inStaticContext()
public void showTypeError(Type foundType, Type requiredType)
public void showError(java.lang.String message)
public void showWarning(java.lang.String message)
public void showMessage(java.lang.String message)
public java.lang.String toShortString()
public ASTObject copy()
public void checkNoSharing(ASTObject other)
public ASTObject setSource(ASTObject sourceObject)
public ASTObject setSyntheticSource(ASTObject sourceObject)
protected void makeChild(ASTObject object)
protected void makeChild(ASTObject[] array)
public java.lang.String getDefaultDisplayName()
public void clearParent()
protected void setParents()
public void replaceWith(ASTObject other)
public java.lang.String toString()
public void display(int indent)
public AST getAST()
public java.lang.String unparse()
public void unparse(org.aspectj.compiler.base.CodeWriter writer) throws java.io.IOException
java.io.IOException
public void cleanup()
public void fixAST(org.aspectj.compiler.base.ASTFixerPass fixer)
public ASTObject postFixAST(org.aspectj.compiler.base.ASTFixerPass fixer)
public void implementMixin(org.aspectj.compiler.crosscuts.MixinImplementationPass walker)
public ASTObject postImplementMixin(org.aspectj.compiler.crosscuts.MixinImplementationPass walker)
public void walkInnerInfo(org.aspectj.compiler.base.InnerInfoPass walker)
public void postInnerInfo(org.aspectj.compiler.base.InnerInfoPass walker)
public void checkSpec()
public void preAssignmentCheck(org.aspectj.compiler.base.AssignmentCheckerPass walker)
public void walkAssignmentCheck(org.aspectj.compiler.base.AssignmentCheckerPass walker)
public ASTObject postAssignmentCheck(org.aspectj.compiler.base.AssignmentCheckerPass walker)
public void walkAnalysis(org.aspectj.compiler.base.LocalClassPass.AnalysisWalker walker)
public void preLift(org.aspectj.compiler.base.LocalClassPass.LiftWalker walker)
public ASTObject postLift(org.aspectj.compiler.base.LocalClassPass.LiftWalker walker)
public void preThreading(org.aspectj.compiler.base.LocalClassPass.ThreadingWalker walker)
public ASTObject postThreading(org.aspectj.compiler.base.LocalClassPass.ThreadingWalker walker)
public ASTObject walkMemberMunger(org.aspectj.compiler.base.MemberClassMunger w)
public ASTObject postInnerAccess(org.aspectj.compiler.base.InnerAccessFixer w)
public MethodDec buildAccessMethod(org.aspectj.compiler.base.InnerAccessFixer w)
PrefixExpr
, PostfixExpr
, FieldAccessExpr
, AssignExpr
, and CallExpr
.
If and when we do cookie methods for constructor, we may also
need to override this in NewInstanceExpr
and ConstructorCallExpr
.
public void walkCleanup(org.aspectj.compiler.base.ByteCodeCleanupPass walker)
public ASTObject postCleanup(org.aspectj.compiler.base.ByteCodeCleanupPass walker)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |