abc.weaving.residues
Class SingleValueVar
java.lang.Object
abc.weaving.residues.WeavingVar
abc.weaving.residues.SingleValueVar
public class SingleValueVar
- extends WeavingVar
For cases where there is just one value needed in the weaving context
Don't ever use it in a context where a get() might be done on it
- Author:
- Ganesh Sittampalam, Ondrej Lhotak
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
type
public Type type
value
public Value value
SingleValueVar
public SingleValueVar(Type type)
inline
public WeavingVar inline(ConstructorInliningMap cim)
- Specified by:
inline
in class WeavingVar
resetForReweaving
public void resetForReweaving()
- Specified by:
resetForReweaving
in class WeavingVar
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
set
public Stmt set(LocalGeneratorEx localgen,
Chain units,
Stmt begin,
WeavingContext wc,
Value val)
- Description copied from class:
WeavingVar
- Set the variable to the value v and return the last statement added
(or begin if none)
- Specified by:
set
in class WeavingVar
get
public Local get()
- Description copied from class:
WeavingVar
- Get the soot local corresponding to this variable (only valid once it has been set)
- Specified by:
get
in class WeavingVar
hasType
public boolean hasType()
- Description copied from class:
WeavingVar
- Has this variable got a type yet?
- Specified by:
hasType
in class WeavingVar
getType
public Type getType()
- Description copied from class:
WeavingVar
- Get the soot type corresponding to this variable
- Specified by:
getType
in class WeavingVar