|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectabc.weaving.residues.Residue
abc.weaving.residues.Bind
public class Bind
Bind a context value to a local or argument
Nested Class Summary |
---|
Nested classes/interfaces inherited from class abc.weaving.residues.Residue |
---|
Residue.Bindings |
Field Summary | |
---|---|
ContextValue |
value
|
WeavingVar |
variable
|
Method Summary | |
---|---|
Stmt |
codeGen(SootMethod method,
LocalGeneratorEx localgen,
Chain units,
Stmt begin,
Stmt fail,
boolean sense,
WeavingContext wc)
Generate the code for this dynamic residue. |
static Residue |
construct(ContextValue value,
Type type,
WeavingVar variable)
|
void |
getAdviceFormalBindings(Residue.Bindings bindings,
AndResidue andRoot)
If this Bind binds an advice-formal, add the binding to the Bindings object |
Residue |
inline(ConstructorInliningMap cim)
Make a copy of the residue applying to an inlined version of the code. |
Residue |
optimize()
Optimize the residue by rebuilding it, invoking the smart constructors along the way. |
Residue |
resetForReweaving()
|
Residue |
restructureToCreateBindingsMask(soot.Local bindingsMaskLocal,
Residue.Bindings bindings)
Replace this Bind with a BindMaskResidue containing this Bind if appropriate. |
java.lang.String |
toString()
Must provide a toString method |
Methods inherited from class abc.weaving.residues.Residue |
---|
getResidueBoxes, succeed |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public ContextValue value
public WeavingVar variable
Method Detail |
---|
public Residue inline(ConstructorInliningMap cim)
Residue
inline
in class Residue
public Residue resetForReweaving()
resetForReweaving
in class Residue
public static Residue construct(ContextValue value, Type type, WeavingVar variable)
public java.lang.String toString()
Residue
toString
in class Residue
public void getAdviceFormalBindings(Residue.Bindings bindings, AndResidue andRoot)
getAdviceFormalBindings
in class Residue
public Residue restructureToCreateBindingsMask(soot.Local bindingsMaskLocal, Residue.Bindings bindings)
restructureToCreateBindingsMask
in class Residue
public Stmt codeGen(SootMethod method, LocalGeneratorEx localgen, Chain units, Stmt begin, Stmt fail, boolean sense, WeavingContext wc)
Residue
codeGen
in class Residue
method
- The method the code is being inserted intolocalgen
- A local generator for the methodunits
- The chain the code is being inserted intobegin
- Code will be inserted just after this statementfail
- If the residue "fails", the inserted code will jump to this point;
otherwise it will fall throughsense
- If this is false, inverts the meaning of failure and success for the residuewc
- The weaving context
public Residue optimize()
Residue
optimize
in class Residue
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |