|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.aspectwerkz.transform.TransformationUtil
public final class TransformationUtil
Utility method used by the transformers.
Constructor Summary | |
---|---|
TransformationUtil()
|
Method Summary | |
---|---|
static String |
getConstructorBodyMethodName(String calleeTypeName)
Returns the method name used for constructor body |
static String |
getConstructorBodyMethodSignature(String ctorDesc,
String calleeTypeName)
Returns the method used for constructor body signature The callee type name is prepended to the constructor signature |
static String |
getInvokeSignatureForCodeJoinPoints(int codeModifiers,
String codeDesc,
String callerTypeName,
String calleeTypeName)
Build the join point invoke method descriptor for code (method or constructor) join points. |
static String |
getInvokeSignatureForConstructorCallJoinPoints(String calleeConstructorDesc,
String callerTypeName,
String calleeTypeName)
Build the join point invoke method descriptor for ctor call join points. |
static String |
getInvokeSignatureForFieldJoinPoints(int fieldModifiers,
String fieldDesc,
String callerTypeName,
String calleeTypeName)
Build the join point invoke method descriptor for field join points. |
static String |
getInvokeSignatureForHandlerJoinPoints(String withinTypeName,
String exceptionTypeName)
Build the join point invoke method descriptor for handler join points. |
static String |
getJoinPointClassName(String thisClassName,
String thisMemberName,
String thisMemberDesc,
String targetClassName,
int joinPointType,
int joinPointHash)
Computes the joinpoint classname : "caller/class_type_hash_suffix" For constructor call joinpoints, the hash of callee name is used as well. |
static String |
getPrefixedOriginalClinitName(String className)
Return the prefixed clinit method name |
static String |
getPrefixedOriginalMethodName(String methodName,
String className)
Returns the prefixed method name. |
static String |
getWrapperMethodName(String methodName,
String methodDesc,
String className,
String prefix)
Returns the prefixed method name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransformationUtil()
Method Detail |
---|
public static String getPrefixedOriginalClinitName(String className)
className
-
public static String getPrefixedOriginalMethodName(String methodName, String className)
methodName
- the method nameclassName
- the class name
public static String getWrapperMethodName(String methodName, String methodDesc, String className, String prefix)
methodName
- the method namemethodDesc
- the method descclassName
- the class name
public static String getInvokeSignatureForCodeJoinPoints(int codeModifiers, String codeDesc, String callerTypeName, String calleeTypeName)
codeModifiers
- codeDesc
- callerTypeName
- calleeTypeName
-
public static String getInvokeSignatureForFieldJoinPoints(int fieldModifiers, String fieldDesc, String callerTypeName, String calleeTypeName)
fieldModifiers
- fieldDesc
- callerTypeName
- calleeTypeName
-
public static String getInvokeSignatureForHandlerJoinPoints(String withinTypeName, String exceptionTypeName)
withinTypeName
- exceptionTypeName
-
public static String getInvokeSignatureForConstructorCallJoinPoints(String calleeConstructorDesc, String callerTypeName, String calleeTypeName)
calleeConstructorDesc
- callerTypeName
- calleeTypeName
-
public static String getConstructorBodyMethodName(String calleeTypeName)
calleeTypeName
-
public static String getConstructorBodyMethodSignature(String ctorDesc, String calleeTypeName)
ctorDesc
- calleeTypeName
-
public static String getJoinPointClassName(String thisClassName, String thisMemberName, String thisMemberDesc, String targetClassName, int joinPointType, int joinPointHash)
thisClassName
- thisMemberName
- thisMemberDesc
- targetClassName
- joinPointType
- joinPointHash
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |