| java.lang.Object com.tc.aspectwerkz.transform.TransformationUtil
TransformationUtil | final public class TransformationUtil (Code) | | Utility method used by the transformers.
author: Jonas BonŽr |
Method Summary | |
public static String | getConstructorBodyMethodName(String calleeTypeName) | public static String | getConstructorBodyMethodSignature(String ctorDesc, String calleeTypeName) | public 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. | public static String | getInvokeSignatureForConstructorCallJoinPoints(String calleeConstructorDesc, String callerTypeName, String calleeTypeName) Build the join point invoke method descriptor for ctor call join points. | public static String | getInvokeSignatureForFieldJoinPoints(int fieldModifiers, String fieldDesc, String callerTypeName, String calleeTypeName) Build the join point invoke method descriptor for field join points. | public static String | getInvokeSignatureForHandlerJoinPoints(String withinTypeName, String exceptionTypeName) Build the join point invoke method descriptor for handler join points. | public 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. | public static String | getPrefixedOriginalClinitName(String className) | public static String | getPrefixedOriginalMethodName(String methodName, String className) Returns the prefixed method name. | public static String | getWrapperMethodName(String methodName, String methodDesc, String className, String prefix) Returns the prefixed method name. |
getConstructorBodyMethodName | public static String getConstructorBodyMethodName(String calleeTypeName)(Code) | | Returns the method name used for constructor body
Parameters: calleeTypeName - |
getConstructorBodyMethodSignature | public static String getConstructorBodyMethodSignature(String ctorDesc, String calleeTypeName)(Code) | | Returns the method used for constructor body signature
The callee type name is prepended to the constructor signature
Parameters: ctorDesc - Parameters: calleeTypeName - |
getInvokeSignatureForCodeJoinPoints | public static String getInvokeSignatureForCodeJoinPoints(int codeModifiers, String codeDesc, String callerTypeName, String calleeTypeName)(Code) | | Build the join point invoke method descriptor for code (method or constructor) join points.
Depends if the target method is static or not.
Parameters: codeModifiers - Parameters: codeDesc - Parameters: callerTypeName - Parameters: calleeTypeName - |
getInvokeSignatureForConstructorCallJoinPoints | public static String getInvokeSignatureForConstructorCallJoinPoints(String calleeConstructorDesc, String callerTypeName, String calleeTypeName)(Code) | | Build the join point invoke method descriptor for ctor call join points.
Parameters: calleeConstructorDesc - Parameters: callerTypeName - Parameters: calleeTypeName - the signature |
getInvokeSignatureForFieldJoinPoints | public static String getInvokeSignatureForFieldJoinPoints(int fieldModifiers, String fieldDesc, String callerTypeName, String calleeTypeName)(Code) | | Build the join point invoke method descriptor for field join points.
Depends if the target field is static or not.
Parameters: fieldModifiers - Parameters: fieldDesc - Parameters: callerTypeName - Parameters: calleeTypeName - the signature |
getInvokeSignatureForHandlerJoinPoints | public static String getInvokeSignatureForHandlerJoinPoints(String withinTypeName, String exceptionTypeName)(Code) | | Build the join point invoke method descriptor for handler join points.
"Exception invoke(Exception, WithinInstance[can be null])"
Parameters: withinTypeName - Parameters: exceptionTypeName - the signature |
getJoinPointClassName | public static String getJoinPointClassName(String thisClassName, String thisMemberName, String thisMemberDesc, String targetClassName, int joinPointType, int joinPointHash)(Code) | | Computes the joinpoint classname : "caller/class_type_hash_suffix"
For constructor call joinpoints, the hash of callee name is used as well.
Parameters: thisClassName - Parameters: thisMemberName - Parameters: thisMemberDesc - Parameters: targetClassName - Parameters: joinPointType - Parameters: joinPointHash - the JIT joinpoint classname |
getPrefixedOriginalClinitName | public static String getPrefixedOriginalClinitName(String className)(Code) | | Return the prefixed clinit method name
Parameters: className - |
getPrefixedOriginalMethodName | public static String getPrefixedOriginalMethodName(String methodName, String className)(Code) | | Returns the prefixed method name.
Parameters: methodName - the method name Parameters: className - the class name the name of the join point |
getWrapperMethodName | public static String getWrapperMethodName(String methodName, String methodDesc, String className, String prefix)(Code) | | Returns the prefixed method name.
Parameters: methodName - the method name Parameters: methodDesc - the method desc Parameters: className - the class name the name of the join point |
|
|