|
|||||||||
| 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.AndResidue
public class AndResidue
The conjunction of two dynamic residues
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class abc.weaving.residues.Residue |
|---|
Residue.Bindings |
| 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(Residue left,
Residue right)
Smart constructor; be careful about removing short-circuiting of "never" residues since the rest of the matcher relies on it |
WeavingVar |
getAdviceFormal(WeavingVar var)
|
void |
getAdviceFormalBindings(Residue.Bindings bindings,
AndResidue andRoot)
Fills the Bindings object with information of possible advice-formal bindings. |
Residue |
getLeftOp()
Get the left operand |
ResidueBox |
getLeftOpBox()
Get the left box |
java.util.List |
getResidueBoxes()
|
Residue |
getRightOp()
Get the right operand |
ResidueBox |
getRightOpBox()
Get the right box |
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)
Returns residue that replaces the old residue. |
java.lang.String |
toString()
Must provide a toString method |
| Methods inherited from class abc.weaving.residues.Residue |
|---|
succeed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public Residue getLeftOp()
public Residue getRightOp()
public ResidueBox getLeftOpBox()
public ResidueBox getRightOpBox()
public java.lang.String toString()
Residue
toString in class Residuepublic Residue resetForReweaving()
resetForReweaving in class Residue
public Stmt codeGen(SootMethod method,
LocalGeneratorEx localgen,
Chain units,
Stmt begin,
Stmt fail,
boolean sense,
WeavingContext wc)
Residue
codeGen in class Residuemethod - 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 static Residue construct(Residue left,
Residue right)
public Residue optimize()
Residue
optimize in class Residuepublic Residue inline(ConstructorInliningMap cim)
Residue
inline in class Residue
public void getAdviceFormalBindings(Residue.Bindings bindings,
AndResidue andRoot)
Residue
getAdviceFormalBindings in class Residue
public Residue restructureToCreateBindingsMask(soot.Local bindingsMaskLocal,
Residue.Bindings bindings)
Residue
restructureToCreateBindingsMask in class Residuepublic java.util.List getResidueBoxes()
getResidueBoxes in class Residuepublic WeavingVar getAdviceFormal(WeavingVar var)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||