|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjodd.proxetta.ProxyTarget
public final class ProxyTarget
Marker class for proxy
implementations.
Constructor Summary | |
---|---|
ProxyTarget()
|
Method Summary | |
---|---|
static java.lang.Object |
argument(int index)
Inserts value of method argument specified by 1-based index. |
static int |
argumentsCount()
Inserts total number of method's arguments. |
static java.lang.Class |
argumentType(int index)
Inserts type of method argument specified by 1-based index. |
static java.lang.Object[] |
createArgumentsArray()
Creates array of arguments values. |
static java.lang.Class[] |
createArgumentsClassArray()
Creates array of arguments types. |
static java.lang.Object |
invoke()
Inserts the invocation of target method and getting the invocation results. |
static java.lang.Class |
returnType()
Inserts return type of target method. |
static void |
setArgument(java.lang.Object value,
int index)
Assigns new value for an argument specified by 1-based index. |
static java.lang.Object |
target()
Inserts proxy (i.e. target) instance. |
static java.lang.Class |
targetClass()
Inserts target class. |
static java.lang.String |
targetMethodName()
Inserts target method name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProxyTarget()
Method Detail |
---|
public static java.lang.Object invoke()
void
,
null
is used for return value.
public static int argumentsCount()
public static java.lang.Class argumentType(int index)
null
argument values.
createArgumentsClassArray()
public static java.lang.Object argument(int index)
createArgumentsArray()
public static void setArgument(java.lang.Object value, int index)
public static java.lang.Object[] createArgumentsArray()
new Object[] {arg1, arg2,...}
createArgumentsClassArray()
,
argument(int)
public static java.lang.Class[] createArgumentsClassArray()
null
argument values.
Equals to: new Class[] {Arg1Type.class, Arg2Type.class...}
createArgumentsArray()
,
argumentType(int)
public static java.lang.Class returnType()
null
is used for void.
public static java.lang.Object target()
public static java.lang.Class targetClass()
public static java.lang.String targetMethodName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |