protected static class JoinPointGenerator.JoinPointParameters extends Object
Modifier and Type | Field and Description |
---|---|
static JoinPointGenerator.JoinPointParameters |
CALLER_ARGS |
static JoinPointGenerator.JoinPointParameters |
ONLY_ARGS |
static JoinPointGenerator.JoinPointParameters |
TARGET_ARGS |
static JoinPointGenerator.JoinPointParameters |
TARGET_CALLER_ARGS |
Modifier and Type | Method and Description |
---|---|
void |
appendParameterList(StringBuffer code,
javassist.CtClass[] parameterTypes) |
void |
appendParameterListWithoutArgs(StringBuffer code) |
void |
castArgument(StringBuffer code,
javassist.CtClass expectedType,
int i) |
String |
declareArgsArray(int totalParameters,
boolean nullArgsArray)
Returns an statement declaring the arguments array.
|
int |
getCallerIndex() |
int |
getContextIndex()
Returns the index of the joinpoint context (the context where the
intercepted joinpoint is executed).
|
int |
getFirstArgIndex() |
int |
getTargetIndex() |
boolean |
hasCaller() |
boolean |
hasTarget() |
public static final JoinPointGenerator.JoinPointParameters ONLY_ARGS
public static final JoinPointGenerator.JoinPointParameters TARGET_ARGS
public static final JoinPointGenerator.JoinPointParameters CALLER_ARGS
public static final JoinPointGenerator.JoinPointParameters TARGET_CALLER_ARGS
public final boolean hasTarget()
public final int getTargetIndex()
public final boolean hasCaller()
public final int getCallerIndex()
public final int getContextIndex()
public final int getFirstArgIndex()
public final String declareArgsArray(int totalParameters, boolean nullArgsArray)
totalParameters
- the total number of joinpoint parameters (including
caller and target when available)nullArgsArray
- true
to indicate that the array should
be null
where there is no argument;
false
to indicate it should be an empty
arraypublic final void appendParameterList(StringBuffer code, javassist.CtClass[] parameterTypes)
public final void appendParameterListWithoutArgs(StringBuffer code)
public final void castArgument(StringBuffer code, javassist.CtClass expectedType, int i)
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.