Top Fields Constructors Methods
org.aspectj.weaver

public Class NameMangler

extends Object
Class Inheritance
Imports
java.lang.reflect.Modifier

Field Summary

Modifier and TypeField and Description
public static final String
public static final String
public static final String
public static final String
public static final UnresolvedType
public static final String
public static final UnresolvedType
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final char[]
public static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static String
adviceName(String nameAsIdentifier, AdviceKind kind, int adviceSeqNumber, int pcdHash)

The name of methods corresponding to advice declarations Of the form: "ajc$[AdviceKind]$[AspectName]$[NumberOfAdviceInAspect]$[PointcutHash]"

public static String
aroundAdviceMethodName(Member shadowSig, String suffixTag)

public static String
aroundShadowMethodName(Member shadowSig, String suffixTag)

public static String
public static String
public static String
getExtractableName(Member shadowSignature)

public static String
public static String
public static String
public static String
interFieldClassField(int modifiers, UnresolvedType aspectType, UnresolvedType classType, String name)

This field goes on the class the field is declared onto

public static String
interFieldGetDispatcher(UnresolvedType aspectType, UnresolvedType onType, String name)

This static method goes on the aspect that declares the inter-type field

public static String
interFieldInitializer(UnresolvedType aspectType, UnresolvedType classType, String name)

This static void method goes on the aspect that declares the inter-type field and is called from the appropriate place (target's initializer, or clinit, or topmost implementer's inits), to initialize the field;

public static String
interFieldInterfaceField(UnresolvedType aspectType, UnresolvedType interfaceType, String name)

This field goes on top-most implementers of the interface the field is declared onto

public static String
interFieldInterfaceGetter(UnresolvedType aspectType, UnresolvedType interfaceType, String name)

This instance method goes on the interface the field is declared onto as well as its top-most implementors

public static String
interFieldInterfaceSetter(UnresolvedType aspectType, UnresolvedType interfaceType, String name)

This instance method goes on the interface the field is declared onto as well as its top-most implementors

public static String
interFieldSetDispatcher(UnresolvedType aspectType, UnresolvedType onType, String name)

This static method goes on the aspect that declares the inter-type field

public static String
interMethod(int modifiers, UnresolvedType aspectType, UnresolvedType classType, String name)

This method goes on the target type of the inter-type method.

public static String
interMethodBody(UnresolvedType aspectType, UnresolvedType classType, String name)

This static method goes on the declaring aspect of the inter-type method.

public static String
interMethodDispatcher(UnresolvedType aspectType, UnresolvedType classType, String name)

This static method goes on the declaring aspect of the inter-type method.

public static boolean
isSyntheticMethod(String methodName, boolean declaredInAspect)

public static String
public static String
private static String
public static String
public static String
private static String
makeVisibilityName(int modifiers, UnresolvedType aspectType)

public static String
public static String
public static String
public static String
public static String
public static String
postIntroducedConstructor(UnresolvedType aspectType, UnresolvedType targetType)

This static method goes on the declaring aspect of the inter-type constructor.

public static String
preIntroducedConstructor(UnresolvedType aspectType, UnresolvedType targetType)

This static method goes on the declaring aspect of the inter-type constructor.

public static String
privilegedAccessMethodForFieldGet(String name, UnresolvedType objectType, UnresolvedType aspectType)

Create the old style (<1.6.9) format getter name which includes the aspect requesting access and the type containing the field in the name of the type.

public static String
privilegedAccessMethodForFieldSet(String name, UnresolvedType objectType, UnresolvedType aspectType)

Create the old style (<1.6.9) format setter name which includes the aspect requesting access and the type containing the field in the name of the type.

public static String
public static String
proceedMethodName(String adviceMethodName)

public static String
protectedDispatchMethod(UnresolvedType classType, String name)

This static method goes on the target class of the inter-type method.

public static String
superDispatchMethod(UnresolvedType classType, String name)

This static method goes on the target class of the inter-type method.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

AJC_POST_CLINIT_NAMEback to summary
public static final String AJC_POST_CLINIT_NAME
AJC_PRE_CLINIT_NAMEback to summary
public static final String AJC_PRE_CLINIT_NAME
ANNOTATION_CACHE_FIELD_NAMEback to summary
public static final String ANNOTATION_CACHE_FIELD_NAME
CFLOW_COUNTER_TYPEback to summary
public static final String CFLOW_COUNTER_TYPE
CFLOW_COUNTER_UNRESOLVEDTYPEback to summary
public static final UnresolvedType CFLOW_COUNTER_UNRESOLVEDTYPE
CFLOW_STACK_TYPEback to summary
public static final String CFLOW_STACK_TYPE
CFLOW_STACK_UNRESOLVEDTYPEback to summary
public static final UnresolvedType CFLOW_STACK_UNRESOLVEDTYPE
INITFAILURECAUSE_FIELD_NAMEback to summary
public static final String INITFAILURECAUSE_FIELD_NAME
ITD_PREFIXback to summary
public static final String ITD_PREFIX
PERCFLOW_FIELD_NAMEback to summary
public static final String PERCFLOW_FIELD_NAME
PERCFLOW_PUSH_METHODback to summary
public static final String PERCFLOW_PUSH_METHOD
PEROBJECT_BIND_METHODback to summary
public static final String PEROBJECT_BIND_METHOD
PERSINGLETON_FIELD_NAMEback to summary
public static final String PERSINGLETON_FIELD_NAME
PERTYPEWITHIN_CREATEASPECTINSTANCE_METHODback to summary
public static final String PERTYPEWITHIN_CREATEASPECTINSTANCE_METHOD
PERTYPEWITHIN_GETINSTANCE_METHODback to summary
public static final String PERTYPEWITHIN_GETINSTANCE_METHOD
PERTYPEWITHIN_GETWITHINTYPENAME_METHODback to summary
public static final String PERTYPEWITHIN_GETWITHINTYPENAME_METHOD
PERTYPEWITHIN_WITHINTYPEFIELDback to summary
public static final String PERTYPEWITHIN_WITHINTYPEFIELD
PREFIXback to summary
public static final String PREFIX
PREFIX_CHARSback to summary
public static final char[] PREFIX_CHARS
SOFT_EXCEPTION_TYPEback to summary
public static final String SOFT_EXCEPTION_TYPE

Constructor Detail

NameManglerback to summary
public NameMangler()

Method Detail

adviceNameback to summary
public static String adviceName(String nameAsIdentifier, AdviceKind kind, int adviceSeqNumber, int pcdHash)

The name of methods corresponding to advice declarations Of the form: "ajc$[AdviceKind]$[AspectName]$[NumberOfAdviceInAspect]$[PointcutHash]"

aroundAdviceMethodNameback to summary
public static String aroundAdviceMethodName(Member shadowSig, String suffixTag)
aroundShadowMethodNameback to summary
public static String aroundShadowMethodName(Member shadowSig, String suffixTag)
cflowCounterback to summary
public static String cflowCounter(CrosscuttingMembers xcut)
cflowStackback to summary
public static String cflowStack(CrosscuttingMembers xcut)
getExtractableNameback to summary
public static String getExtractableName(Member shadowSignature)
inlineAccessMethodForFieldGetback to summary
public static String inlineAccessMethodForFieldGet(String name, UnresolvedType objectType, UnresolvedType aspectType)
inlineAccessMethodForFieldSetback to summary
public static String inlineAccessMethodForFieldSet(String name, UnresolvedType objectType, UnresolvedType aspectType)
inlineAccessMethodForMethodback to summary
public static String inlineAccessMethodForMethod(String name, UnresolvedType objectType, UnresolvedType aspectType)
interFieldClassFieldback to summary
public static String interFieldClassField(int modifiers, UnresolvedType aspectType, UnresolvedType classType, String name)

This field goes on the class the field is declared onto

interFieldGetDispatcherback to summary
public static String interFieldGetDispatcher(UnresolvedType aspectType, UnresolvedType onType, String name)

This static method goes on the aspect that declares the inter-type field

interFieldInitializerback to summary
public static String interFieldInitializer(UnresolvedType aspectType, UnresolvedType classType, String name)

This static void method goes on the aspect that declares the inter-type field and is called from the appropriate place (target's initializer, or clinit, or topmost implementer's inits), to initialize the field;

interFieldInterfaceFieldback to summary
public static String interFieldInterfaceField(UnresolvedType aspectType, UnresolvedType interfaceType, String name)

This field goes on top-most implementers of the interface the field is declared onto

interFieldInterfaceGetterback to summary
public static String interFieldInterfaceGetter(UnresolvedType aspectType, UnresolvedType interfaceType, String name)

This instance method goes on the interface the field is declared onto as well as its top-most implementors

interFieldInterfaceSetterback to summary
public static String interFieldInterfaceSetter(UnresolvedType aspectType, UnresolvedType interfaceType, String name)

This instance method goes on the interface the field is declared onto as well as its top-most implementors

interFieldSetDispatcherback to summary
public static String interFieldSetDispatcher(UnresolvedType aspectType, UnresolvedType onType, String name)

This static method goes on the aspect that declares the inter-type field

interMethodback to summary
public static String interMethod(int modifiers, UnresolvedType aspectType, UnresolvedType classType, String name)

This method goes on the target type of the inter-type method. (and possibly the topmost-implemeters, if the target type is an interface)

interMethodBodyback to summary
public static String interMethodBody(UnresolvedType aspectType, UnresolvedType classType, String name)

This static method goes on the declaring aspect of the inter-type method.

interMethodDispatcherback to summary
public static String interMethodDispatcher(UnresolvedType aspectType, UnresolvedType classType, String name)

This static method goes on the declaring aspect of the inter-type method.

isSyntheticMethodback to summary
public static boolean isSyntheticMethod(String methodName, boolean declaredInAspect)
itdAtDeclareParentsFieldback to summary
public static String itdAtDeclareParentsField(UnresolvedType aspectType, UnresolvedType itdType)
makeClosureClassNameback to summary
public static String makeClosureClassName(UnresolvedType enclosingType, String suffix)
makeNameback to summary
private static String makeName(String s1, String s2)
makeNameback to summary
public static String makeName(String s1, String s2, String s3)
makeNameback to summary
public static String makeName(String s1, String s2, String s3, String s4)
makeVisibilityNameback to summary
private static String makeVisibilityName(int modifiers, UnresolvedType aspectType)
perObjectInterfaceFieldback to summary
public static String perObjectInterfaceField(UnresolvedType aspectType)
perObjectInterfaceGetback to summary
public static String perObjectInterfaceGet(UnresolvedType aspectType)
perObjectInterfaceSetback to summary
public static String perObjectInterfaceSet(UnresolvedType aspectType)
perTypeWithinFieldForTargetback to summary
public static String perTypeWithinFieldForTarget(UnresolvedType aspectType)
perTypeWithinLocalAspectOfback to summary
public static String perTypeWithinLocalAspectOf(UnresolvedType aspectType)
postIntroducedConstructorback to summary
public static String postIntroducedConstructor(UnresolvedType aspectType, UnresolvedType targetType)

This static method goes on the declaring aspect of the inter-type constructor.

preIntroducedConstructorback to summary
public static String preIntroducedConstructor(UnresolvedType aspectType, UnresolvedType targetType)

This static method goes on the declaring aspect of the inter-type constructor.

privilegedAccessMethodForFieldGetback to summary
public static String privilegedAccessMethodForFieldGet(String name, UnresolvedType objectType, UnresolvedType aspectType)

Create the old style (<1.6.9) format getter name which includes the aspect requesting access and the type containing the field in the name of the type. At 1.6.9 and above the name is simply ajc$get$<fieldname>

privilegedAccessMethodForFieldSetback to summary
public static String privilegedAccessMethodForFieldSet(String name, UnresolvedType objectType, UnresolvedType aspectType)

Create the old style (<1.6.9) format setter name which includes the aspect requesting access and the type containing the field in the name of the type. At 1.6.9 and above the name is simply ajc$set$<fieldname>

privilegedAccessMethodForMethodback to summary
public static String privilegedAccessMethodForMethod(String name, UnresolvedType objectType, UnresolvedType aspectType)
proceedMethodNameback to summary
public static String proceedMethodName(String adviceMethodName)
protectedDispatchMethodback to summary
public static String protectedDispatchMethod(UnresolvedType classType, String name)

This static method goes on the target class of the inter-type method.

superDispatchMethodback to summary
public static String superDispatchMethod(UnresolvedType classType, String name)

This static method goes on the target class of the inter-type method.