|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jasco.runtime.JascoMethod
public class JascoMethod
The calledmethod keyword availabe in JAsCo aspects is of type JascoMethod, this means that all subsequent methods are availabe for this keyword. calledmethod refers to the method joinpoint that triggered the aspect.
Constructor Summary | |
---|---|
JascoMethod()
Do not use, internal usage only |
|
JascoMethod(java.lang.String aName)
Do not use, internal usage only |
|
JascoMethod(java.lang.String fullname,
java.lang.Object object,
java.lang.Object[] args,
java.lang.String aName,
java.lang.String aClassName,
int methodid,
JAsCoBeanCallback callbackObject,
int modifiers)
Do not use, internal usage only for hotswap 1, deprecated... |
|
JascoMethod(java.lang.String fullname,
java.lang.String aName,
java.lang.String aClassName,
int methodid,
JAsCoBeanCallback callbackObject,
int modifiers)
Do not use, internal usage only |
|
JascoMethod(java.lang.String fullname,
java.lang.String aName,
java.lang.String aClassName,
int methodid,
JAsCoBeanCallback callbackObject,
int modifiers,
boolean isExecution)
Do not use, internal usage only |
Method Summary | |
---|---|
static JascoMethod |
buildFrom(javassist.CtMethod method,
java.lang.ClassLoader loader,
int id)
|
void |
clearLinkedHooks()
Do not use, internal usage only |
void |
clearProceedCheck()
Do not use, internal usage only |
JascoMethod |
copy()
|
boolean |
dontLoadClass()
|
void |
dontLoadClass(boolean b)
|
java.lang.Class[] |
getActualArgumentTypes()
Returns the actual argument types |
java.lang.annotation.Annotation[] |
getAnnotations()
Returns all defined annotations |
java.lang.Object[] |
getArgumentsArray()
Returns an array of all arguments |
java.lang.Object |
getCalledObject()
Returns the object the method is invoked upon |
java.lang.ClassLoader |
getClassLoader()
Returns the classLoader responsible for loading this joinpoint. |
java.lang.String |
getClassName()
Returns the fully quantified name of class the method is declared |
java.lang.Class[] |
getExceptionTypes()
Returns java.lang.reflect.class objects denoting types of exceptions thrown by this method |
java.lang.String[] |
getFormalArgumentTypeNames()
returns array of full class names of formal arguments |
java.lang.Class[] |
getFormalArgumentTypes()
Returns the formal argument types |
java.lang.String |
getFullName()
Returns the unique name for this method joinpoint |
long |
getID()
|
javassist.CtMethod |
getJavassistMethod()
|
IHook[] |
getLinkedHooks()
Do not use, internal usage only |
int |
getModifiers()
Returns the modifiers intger, see java.lang.reflect.Modifier |
java.lang.String |
getName()
Returns the method name |
protected java.lang.reflect.Method |
getReflectMethod()
|
java.lang.Class |
getReturnType()
Returns java.lang.reflect.class object denoting the return type of this method |
java.lang.String |
getReturnTypeName()
returns full class name of return type |
java.lang.String |
getSignature()
Returns the unique name for this method joinpoint |
int |
getSourceLocation()
returns location of joinpoint in original source code |
void |
initClassLoader(java.lang.ClassLoader loader)
|
protected static void |
initFrom(JascoMethod theMethod,
javassist.CtMethod method,
java.lang.ClassLoader loader,
int id)
|
protected void |
initJavassistMethod()
|
protected void |
initReflectMethod()
|
protected void |
initReflectMethod(java.lang.Class clz)
|
boolean |
inlineCompiled()
Do not use, internal usage only |
java.lang.Object |
invoke(java.lang.Object obj,
java.lang.Object[] args)
Invokes the replaced method or subsequent around advices, only availabe in around advice |
java.lang.Object |
invokeAgain()
Allows to invoke the original method all over again with original arguments. |
java.lang.Object |
invokeAgain(java.lang.Object calledobject,
java.lang.Object[] args)
Allows to invoke the original method all over again. |
java.lang.Object |
invokeJAsCoMethod()
Invokes the replaced method or subsequent around advices with original arguments, only availabe in around advice. |
java.lang.Object |
invokeNoAspectAgain()
Allows to invoke the original method again with original arguments. |
java.lang.Object |
invokeOriginal(java.lang.Object obj,
java.lang.Object[] args)
Invokes the original method, only availabe in around advice. |
java.lang.Object |
invokeOriginalJAsCoMethod()
Invokes the original method with original arguments, only availabe in around advice. |
boolean |
isCall()
Returns true when this method joinpoint is a call joinpoint |
boolean |
isExecution()
Returns true when this method joinpoint is an execution joinpoint |
java.lang.Class |
loadClass()
Loads this class |
protected java.lang.Class |
loadClass(java.lang.String aClass)
|
void |
resetProceedChain()
Allows to reset the proceed chain, so that all applicable aspects (including the current one) are executed again when proceed is invoked. |
void |
setArgumentsArray(java.lang.Object[] v)
Do not use, internal usage only |
void |
setCallbackObject(JAsCoBeanCallback callback)
Do not use, internal usage only |
void |
setCalledObject(java.lang.Object o)
Do not use, internal usage only |
void |
setExceptionTypes(java.lang.String[] excs)
|
void |
setFormalArgumentTypes(java.lang.String[] fargs)
|
void |
setInlineCompiled(boolean b)
Do not use, internal usage only |
void |
setLinkedHooks(IHook[] link)
Do not use, internal usage only |
protected void |
setReturnTypeName(java.lang.String s)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JascoMethod()
public JascoMethod(java.lang.String aName)
public JascoMethod(java.lang.String fullname, java.lang.String aName, java.lang.String aClassName, int methodid, JAsCoBeanCallback callbackObject, int modifiers)
public JascoMethod(java.lang.String fullname, java.lang.Object object, java.lang.Object[] args, java.lang.String aName, java.lang.String aClassName, int methodid, JAsCoBeanCallback callbackObject, int modifiers)
public JascoMethod(java.lang.String fullname, java.lang.String aName, java.lang.String aClassName, int methodid, JAsCoBeanCallback callbackObject, int modifiers, boolean isExecution)
Method Detail |
---|
public void setFormalArgumentTypes(java.lang.String[] fargs)
public void setExceptionTypes(java.lang.String[] excs)
protected java.lang.reflect.Method getReflectMethod()
public java.lang.Class loadClass()
MethodJoinpoint
loadClass
in interface MethodJoinpoint
public java.lang.annotation.Annotation[] getAnnotations()
getAnnotations
in interface MethodJoinpoint
public java.lang.Class getReturnType()
MethodJoinpoint
getReturnType
in interface MethodJoinpoint
protected void initReflectMethod()
protected void initReflectMethod(java.lang.Class clz)
public java.lang.String getFullName()
getFullName
in interface MethodJoinpoint
public java.lang.String getSignature()
getSignature
in interface MethodJoinpoint
public void initClassLoader(java.lang.ClassLoader loader)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isExecution()
isExecution
in interface MethodJoinpoint
public boolean isCall()
isCall
in interface MethodJoinpoint
public java.lang.String getName()
getName
in interface MethodJoinpoint
public long getID()
public java.lang.Class[] getActualArgumentTypes()
getActualArgumentTypes
in interface MethodJoinpoint
public java.lang.ClassLoader getClassLoader()
MethodJoinpoint
getClassLoader
in interface MethodJoinpoint
protected java.lang.Class loadClass(java.lang.String aClass) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
public java.lang.Class[] getFormalArgumentTypes()
getFormalArgumentTypes
in interface MethodJoinpoint
public java.lang.String getClassName()
getClassName
in interface MethodJoinpoint
public int getModifiers()
getModifiers
in interface MethodJoinpoint
public java.lang.Object[] getArgumentsArray()
getArgumentsArray
in interface MethodJoinpoint
public void setArgumentsArray(java.lang.Object[] v)
public void setCallbackObject(JAsCoBeanCallback callback)
public java.lang.Object getCalledObject()
getCalledObject
in interface MethodJoinpoint
public void setCalledObject(java.lang.Object o)
public final java.lang.Object invokeJAsCoMethod() throws java.lang.Exception
invokeJAsCoMethod
in interface MethodJoinpoint
ProceedFinishedException
- proceed was previously invoked and all advices and original method already executed.
java.lang.Exception
public java.lang.Object invokeOriginalJAsCoMethod() throws java.lang.Exception
invokeOriginalJAsCoMethod
in interface MethodJoinpoint
java.lang.Exception
public final java.lang.Object invoke(java.lang.Object obj, java.lang.Object[] args) throws java.lang.Exception
invoke
in interface MethodJoinpoint
obj
- The object to invoke the method upon, is typically calledobject keywordargs
- The arguments to invoke the proceed chain with.
ProceedFinishedException
- proceed was previously invoked and all advices and original method already executed.
java.lang.Exception
public java.lang.Object invokeOriginal(java.lang.Object obj, java.lang.Object[] args) throws java.lang.Exception
invokeOriginal
in interface MethodJoinpoint
obj
- The object to invoke the method upon, is typically calledobject keywordargs
- The arguments to invoke the original method with.
java.lang.Exception
public void clearLinkedHooks()
public void clearProceedCheck()
public void setLinkedHooks(IHook[] link)
public IHook[] getLinkedHooks()
public java.lang.Object invokeAgain() throws java.lang.Exception
invokeAgain
in interface MethodJoinpoint
java.lang.Exception
public java.lang.Object invokeAgain(java.lang.Object calledobject, java.lang.Object[] args) throws java.lang.Exception
invokeAgain
in interface MethodJoinpoint
calledobject
- The object to invoke the method upon, is typically calledobject keywordargs
- The arguments to invoke the original method with.
java.lang.Exception
public java.lang.Object invokeNoAspectAgain()
invokeNoAspectAgain
in interface MethodJoinpoint
public boolean inlineCompiled()
public void setInlineCompiled(boolean b)
public java.lang.Class[] getExceptionTypes()
MethodJoinpoint
getExceptionTypes
in interface MethodJoinpoint
public final void resetProceedChain() throws java.lang.Exception
java.lang.Exception
protected static final void initFrom(JascoMethod theMethod, javassist.CtMethod method, java.lang.ClassLoader loader, int id) throws javassist.NotFoundException
javassist.NotFoundException
public static JascoMethod buildFrom(javassist.CtMethod method, java.lang.ClassLoader loader, int id) throws javassist.NotFoundException
javassist.NotFoundException
public java.lang.String getReturnTypeName()
MethodJoinpoint
getReturnTypeName
in interface MethodJoinpoint
protected void setReturnTypeName(java.lang.String s)
public java.lang.String[] getFormalArgumentTypeNames()
MethodJoinpoint
getFormalArgumentTypeNames
in interface MethodJoinpoint
public boolean dontLoadClass()
public void dontLoadClass(boolean b)
public JascoMethod copy()
public javassist.CtMethod getJavassistMethod()
protected void initJavassistMethod()
public int getSourceLocation()
MethodJoinpoint
getSourceLocation
in interface MethodJoinpoint
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |