|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.aspectwerkz.aspect.AdviceInfo
public class AdviceInfo
Contains advice info, like indexes describing the aspect and a method (advice or introduced), aspect manager etc.
Field Summary | |
---|---|
static int |
CUSTOM_JOIN_POINT_ARG
|
static AdviceInfo[] |
EMPTY_ADVICE_INFO_ARRAY
|
static int |
JOINPOINT_ARG
|
static int |
SPECIAL_ARGUMENT
|
static int |
STATIC_JOINPOINT_ARG
|
static int |
TARGET_ARG
|
static int |
THIS_ARG
|
static int |
VALID_NON_AW_AROUND_CLOSURE_TYPE
|
Constructor Summary | |
---|---|
AdviceInfo(String aspectQualifiedName,
String aspectClassName,
DeploymentModel aspectDeploymentModel,
String methodName,
String methodSignature,
org.objectweb.asm.Type[] methodParameterTypes,
AdviceType type,
String specialArgumentType,
String adviceName,
boolean targetWithRuntimeCheck,
ExpressionInfo expressionInfo,
ExpressionContext expressionContext,
AdviceDefinition adviceDef)
TODO refactor - many member fields holds data that is in either the adviceDef (which is in the class) or the aspectDef (which is accessible from the adviceDef) Creates a new advice info. |
Method Summary | |
---|---|
AdviceDefinition |
getAdviceDefinition()
Returns the advice definition. |
String |
getAspectClassName()
Returns the aspect FQN className. |
DeploymentModel |
getAspectDeploymentModel()
Returns the aspect deployment model |
String |
getAspectQualifiedName()
Returns the aspect qualified name. |
ExpressionContext |
getExpressionContext()
Returns the expression context. |
ExpressionInfo |
getExpressionInfo()
Returns the expression info. |
String |
getMethodName()
Return the method name. |
org.objectweb.asm.Type[] |
getMethodParameterTypes()
Return the method name. |
String |
getMethodSignature()
Return the method signature. |
int[] |
getMethodToArgIndexes()
Returns the advice method to target method arg index mapping. |
String |
getName()
Returns the name of the advice. |
String |
getSpecialArgumentTypeDesc()
Returns the special argument type desc. |
String |
getSpecialArgumentTypeName()
Returns the special argument type name. |
AdviceType |
getType()
Returns the advice type. |
boolean |
hasTargetWithRuntimeCheck()
Checks if the target has a runtime check. |
void |
setMethodToArgIndexes(int[] map)
Sets the advice method to target method arg mapping A value of -1 means "not mapped" |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final AdviceInfo[] EMPTY_ADVICE_INFO_ARRAY
public static final int JOINPOINT_ARG
public static final int STATIC_JOINPOINT_ARG
public static final int TARGET_ARG
public static final int THIS_ARG
public static final int VALID_NON_AW_AROUND_CLOSURE_TYPE
public static final int SPECIAL_ARGUMENT
public static final int CUSTOM_JOIN_POINT_ARG
Constructor Detail |
---|
public AdviceInfo(String aspectQualifiedName, String aspectClassName, DeploymentModel aspectDeploymentModel, String methodName, String methodSignature, org.objectweb.asm.Type[] methodParameterTypes, AdviceType type, String specialArgumentType, String adviceName, boolean targetWithRuntimeCheck, ExpressionInfo expressionInfo, ExpressionContext expressionContext, AdviceDefinition adviceDef)
aspectQualifiedName
- aspectClassName
- aspectDeploymentModel
- methodName
- methodSignature
- methodParameterTypes
- type
- the advice typespecialArgumentType
- the special arg typeadviceName
- full qualified advice method name (aspectFQN/advice(call sig))targetWithRuntimeCheck
- true if a runtime check is needed based on target instanceexpressionInfo
- expressionContext
- adviceDef
- Method Detail |
---|
public String getMethodName()
public String getMethodSignature()
public org.objectweb.asm.Type[] getMethodParameterTypes()
public String getAspectQualifiedName()
public String getAspectClassName()
public DeploymentModel getAspectDeploymentModel()
public String getName()
public void setMethodToArgIndexes(int[] map)
map
- public int[] getMethodToArgIndexes()
public String getSpecialArgumentTypeDesc()
public String getSpecialArgumentTypeName()
public AdviceType getType()
public boolean hasTargetWithRuntimeCheck()
public ExpressionInfo getExpressionInfo()
public ExpressionContext getExpressionContext()
public AdviceDefinition getAdviceDefinition()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |