org.jboss.aop.instrument
Class JoinPointGenerator.JoinPointParameters
java.lang.Object
org.jboss.aop.instrument.JoinPointGenerator.JoinPointParameters
- Enclosing class:
- JoinPointGenerator
protected static class JoinPointGenerator.JoinPointParameters
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ONLY_ARGS
public static final JoinPointGenerator.JoinPointParameters ONLY_ARGS
TARGET_ARGS
public static final JoinPointGenerator.JoinPointParameters TARGET_ARGS
CALLER_ARGS
public static final JoinPointGenerator.JoinPointParameters CALLER_ARGS
TARGET_CALLER_ARGS
public static final JoinPointGenerator.JoinPointParameters TARGET_CALLER_ARGS
hasTarget
public final boolean hasTarget()
getTargetIndex
public final int getTargetIndex()
hasCaller
public final boolean hasCaller()
getCallerIndex
public final int getCallerIndex()
getContextIndex
public final int getContextIndex()
- Returns the index of the joinpoint context (the context where the
intercepted joinpoint is executed). For caller joinpoints, the
context is the caller; for other joinpoints, the context of the joinpoint is
the target.
This method must be called only for per instance situations, i.e, situations
where there is a context available.
- Returns:
- the index of the joinpoint context
getFirstArgIndex
public final int getFirstArgIndex()
declareArgsArray
public final String declareArgsArray(int totalParameters,
boolean nullArgsArray)
- Returns an statement declaring the arguments array.
- Parameters:
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
array
- Returns:
- an statement declaring (and initializing) the arguments array
appendParameterList
public final void appendParameterList(StringBuffer code,
javassist.CtClass[] parameterTypes)
appendParameterListWithoutArgs
public final void appendParameterListWithoutArgs(StringBuffer code)
castArgument
public final void castArgument(StringBuffer code,
javassist.CtClass expectedType,
int i)
Copyright © 2008 JBoss, a division of Red Hat, Inc.. All Rights Reserved.