org.aspectj.compiler.base.ast
Class MovingWalker
java.lang.Object
org.aspectj.compiler.base.CompilerObject
org.aspectj.compiler.base.ast.Walker
org.aspectj.compiler.base.ast.MovingWalker
- Direct Known Subclasses:
- CopyWalker
- public class MovingWalker
- extends Walker
Constructor Summary |
MovingWalker(org.aspectj.compiler.base.JavaCompiler compiler)
|
MovingWalker(org.aspectj.compiler.base.JavaCompiler compiler,
Type fromType,
Type toType)
|
Methods inherited from class org.aspectj.compiler.base.CompilerObject |
getAST, getCompiler, getOptions, getTypeManager, getWorld |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
remapNodes
protected java.util.Map remapNodes
lexicalTypes
protected java.util.Stack lexicalTypes
toType
public Type toType
isStatic
public boolean isStatic
MovingWalker
public MovingWalker(org.aspectj.compiler.base.JavaCompiler compiler)
MovingWalker
public MovingWalker(org.aspectj.compiler.base.JavaCompiler compiler,
Type fromType,
Type toType)
addMappings
public void addMappings(java.util.Map map)
hasToType
public boolean hasToType()
getToType
public Type getToType()
addMapping
public void addMapping(java.lang.Object oldObject,
java.lang.Object newObject)
inTopLexicalType
public boolean inTopLexicalType()
hasLexicalType
public boolean hasLexicalType()
getLexicalType
public Type getLexicalType()
getTopLexicalType
public Type getTopLexicalType()
pushLexicalType
public void pushLexicalType(Type t)
popLexicalType
public void popLexicalType()
moveThisExpr
public Expr moveThisExpr(ThisExpr thisExpr,
Type thisType)
moveVarExpr
public Expr moveVarExpr(VarExpr var)
- returns what a varExpr should remap to.
handleFreeVar
protected Expr handleFreeVar(VarExpr var)
- returns what a free varExpr should remap to.
makeThisExpr
protected Expr makeThisExpr()
moveType
public Type moveType(Type type)
moveLink
public void moveLink(SOLink link)
moveLinkExpr
public Expr moveLinkExpr(SOLink link)
process
public ASTObject process(ASTObject object)
- Overrides:
process
in class Walker