|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectabc.weaving.matching.MethodAdviceList
public class MethodAdviceList
The lists of AdviceApplication
structures applying to a method
Field Summary | |
---|---|
java.util.List |
bodyAdvice
Advice that would apply to the whole body, i.e. at execution joinpoints |
java.util.List |
bodyAdviceP
|
java.util.List |
initializationAdvice
initialization joinpoints, trigger inlining of this() calls |
java.util.List |
initializationAdviceP
|
java.util.List |
preinitializationAdvice
pre-initialization joinpoints |
java.util.List |
preinitializationAdviceP
|
java.util.List |
stmtAdvice
Advice that would apply inside the body, i.e. most other joinpoints |
java.util.List |
stmtAdviceP
|
Constructor Summary | |
---|---|
MethodAdviceList()
|
Method Summary | |
---|---|
void |
addBodyAdvice(AdviceApplication aa)
|
void |
addInitializationAdvice(AdviceApplication aa)
|
void |
addPreinitializationAdvice(AdviceApplication aa)
|
void |
addStmtAdvice(AdviceApplication aa)
|
java.util.List |
allAdvice()
|
void |
debugInfo(java.lang.String prefix,
java.lang.StringBuffer sb)
|
void |
flush()
AdviceApplication structures are added to the list
for one shadow, then the next etc. |
boolean |
hasBodyAdvice()
returns true if there is any body advice |
boolean |
hasInitializationAdvice()
returns true if there is any initialization advice |
boolean |
hasPreinitializationAdvice()
returns true if there is any preinitialization advice |
boolean |
hasStmtAdvice()
returns true if there is any stmt advice |
boolean |
isEmpty()
returns true if there is no advice |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public java.util.List bodyAdviceP
public java.util.List stmtAdviceP
public java.util.List preinitializationAdviceP
public java.util.List initializationAdviceP
public java.util.List bodyAdvice
public java.util.List stmtAdvice
public java.util.List preinitializationAdvice
public java.util.List initializationAdvice
Constructor Detail |
---|
public MethodAdviceList()
Method Detail |
---|
public void flush()
AdviceApplication
structures are added to the list
for one shadow, then the next etc. At each shadow, they need to
be sorted in precedence order, so we sort them as they are added.
This method should be called after each shadow to add the sorted
list for that shadow to the main list for the method.
public void addBodyAdvice(AdviceApplication aa)
public void addStmtAdvice(AdviceApplication aa)
public void addPreinitializationAdvice(AdviceApplication aa)
public void addInitializationAdvice(AdviceApplication aa)
public boolean isEmpty()
public boolean hasBodyAdvice()
public boolean hasStmtAdvice()
public boolean hasInitializationAdvice()
public boolean hasPreinitializationAdvice()
public java.lang.String toString()
toString
in class java.lang.Object
public void debugInfo(java.lang.String prefix, java.lang.StringBuffer sb)
public java.util.List allAdvice()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |