|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectabc.weaving.aspectinfo.MethodCategory
public class MethodCategory
Decide what a field or method in jimple really is
Field Summary | |
---|---|
static int |
ACCESSOR_GET
An accessor method to get the value of a field. |
static int |
ACCESSOR_SET
An accessor method to set the value of a field. |
static int |
ADVICE_BODY
An advice body |
static int |
ASPECT_INSTANCE
A special aspect method, i.e. |
static int |
IF_EXPR
The expression in an if pointcut |
static int |
INTERTYPE_CONSTRUCTOR_BODY
The body of an intertype constructor declaration, without field initializers. |
static int |
INTERTYPE_CONSTRUCTOR_DELEGATOR
A woven intertype constructor declaration, delegating to the actual implementation |
static int |
INTERTYPE_CONSTRUCTOR_SPECIAL_ARG
The encapsulation of an argument to a this or super call
in an intertype constructor declaration |
static int |
INTERTYPE_FIELD_INITIALIZER
The initializer for an intertype field declaration |
static int |
INTERTYPE_INITIALIZER_DELEGATE
The delegate for an initializer for an intertype field declaration |
static int |
INTERTYPE_METHOD_DELEGATOR
A woven intertype method declaration, delegating to the actual implementation. |
static int |
INTERTYPE_METHOD_SOURCE
The implementation placeholder of an intertype method declaration. |
static int |
INTERTYPE_SPECIAL_CALL_DELEGATOR
A method delegating a this or super call from an
intertype method or constructor |
static int |
NORMAL
A normal method |
static int |
PROCEED
A proceed dummy method |
static int |
THIS_GET
An accessor method to get the value of a qualified use of "this" or "super" inside an intertype method. |
Constructor Summary | |
---|---|
MethodCategory()
|
Method Summary | |
---|---|
static boolean |
adviceBody(int cat)
|
static boolean |
adviceBody(MethodSig m)
|
static int |
getCategory(SootMethod m)
|
static SootClass |
getClass(SootMethod m)
|
static SootField |
getField(SootMethod sm)
|
static SootFieldRef |
getFieldRef(SootMethodRef smr)
|
static int |
getModifiers(SootMethod m)
|
static java.lang.String |
getName(SootMethod m)
|
static int |
getSkipFirst(SootMethod m)
|
static int |
getSkipLast(SootMethod m)
|
static boolean |
hasThisAsFirstParameter(SootMethod m)
is this an ITD (method or field initialiser) that has "this" as a parameter? |
static void |
register(MethodDecl m,
ClassType container,
int cat)
|
static void |
register(MethodSig sig,
int cat)
|
static void |
registerFieldGet(FieldSig fs,
MethodSig sig)
|
static void |
registerFieldSet(FieldSig fs,
MethodSig sig)
|
static void |
registerRealNameAndClass(FieldSig sig,
int mods,
java.lang.String real_name,
AbcClass real_class)
|
static void |
registerRealNameAndClass(MethodDecl m,
ClassType container,
Flags mods,
java.lang.String real_name,
AbcClass real_class,
int skip_first,
int skip_last)
|
static void |
registerRealNameAndClass(MethodSig sig,
int mods,
java.lang.String real_name,
AbcClass real_class,
int skip_first,
int skip_last)
|
static boolean |
weaveCalls(int cat)
|
static boolean |
weaveCalls(MethodSig m)
|
static boolean |
weaveExecution(int cat)
|
static boolean |
weaveExecution(MethodSig m)
|
static boolean |
weaveInside(int cat)
|
static boolean |
weaveInside(MethodSig m)
|
static boolean |
weaveSetGet(SootField sfs)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NORMAL
public static final int ASPECT_INSTANCE
aspectOf
...
public static final int ADVICE_BODY
public static final int PROCEED
proceed
dummy method
public static final int IF_EXPR
if
pointcut
public static final int INTERTYPE_METHOD_SOURCE
public static final int INTERTYPE_METHOD_DELEGATOR
public static final int INTERTYPE_CONSTRUCTOR_BODY
<init>
and the host class as real class.
public static final int INTERTYPE_CONSTRUCTOR_SPECIAL_ARG
this
or super
call
in an intertype constructor declaration
public static final int INTERTYPE_CONSTRUCTOR_DELEGATOR
public static final int INTERTYPE_FIELD_INITIALIZER
public static final int INTERTYPE_INITIALIZER_DELEGATE
public static final int INTERTYPE_SPECIAL_CALL_DELEGATOR
this
or super
call from an
intertype method or constructor
public static final int ACCESSOR_GET
public static final int ACCESSOR_SET
public static final int THIS_GET
Constructor Detail |
---|
public MethodCategory()
Method Detail |
---|
public static boolean weaveInside(int cat)
public static boolean weaveInside(MethodSig m)
public static boolean weaveExecution(int cat)
public static boolean weaveExecution(MethodSig m)
public static boolean weaveCalls(int cat)
public static boolean weaveCalls(MethodSig m)
public static boolean adviceBody(int cat)
public static boolean adviceBody(MethodSig m)
public static int getCategory(SootMethod m)
public static void register(MethodSig sig, int cat)
public static void register(MethodDecl m, ClassType container, int cat)
public static void registerRealNameAndClass(MethodSig sig, int mods, java.lang.String real_name, AbcClass real_class, int skip_first, int skip_last)
public static void registerRealNameAndClass(MethodDecl m, ClassType container, Flags mods, java.lang.String real_name, AbcClass real_class, int skip_first, int skip_last)
public static void registerRealNameAndClass(FieldSig sig, int mods, java.lang.String real_name, AbcClass real_class)
public static int getModifiers(SootMethod m)
public static java.lang.String getName(SootMethod m)
public static SootClass getClass(SootMethod m)
public static int getSkipFirst(SootMethod m)
public static int getSkipLast(SootMethod m)
public static SootField getField(SootMethod sm)
public static SootFieldRef getFieldRef(SootMethodRef smr)
public static void registerFieldGet(FieldSig fs, MethodSig sig)
public static void registerFieldSet(FieldSig fs, MethodSig sig)
public static boolean weaveSetGet(SootField sfs)
public static boolean hasThisAsFirstParameter(SootMethod m)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |