Package org.aspectj.weaver.model
Class AsmRelationshipUtils
java.lang.Object
org.aspectj.weaver.model.AsmRelationshipUtils
Provides utility methods for generating details for IProgramElements used when creating the model both from source (via
AsmElementFormatter.visit(..)) and when filling in the model for binary aspects (via AsmRelationshipProvider bug 145963)
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
genDeclareMessage(String message)
Generates the declare message used in the details, for example if the declare warning statement has message "There should be no printlns" will return 'declare warning: "There should be n.."'static String
genPointcutDetails(Pointcut pcd)
Generates the pointcut details for the given pointcut, for example an anonymous pointcut will return '<anonymous pointcut>' and a named pointcut called p() will return 'p()..'
-
Field Details
-
DECLARE_PRECEDENCE
- See Also:
- Constant Field Values
-
DECLARE_SOFT
- See Also:
- Constant Field Values
-
DECLARE_PARENTS
- See Also:
- Constant Field Values
-
DECLARE_WARNING
- See Also:
- Constant Field Values
-
DECLARE_ERROR
- See Also:
- Constant Field Values
-
DECLARE_UNKNONWN
- See Also:
- Constant Field Values
-
POINTCUT_ABSTRACT
- See Also:
- Constant Field Values
-
POINTCUT_ANONYMOUS
- See Also:
- Constant Field Values
-
DOUBLE_DOTS
- See Also:
- Constant Field Values
-
MAX_MESSAGE_LENGTH
public static final int MAX_MESSAGE_LENGTH- See Also:
- Constant Field Values
-
DEC_LABEL
- See Also:
- Constant Field Values
-
-
Constructor Details
-
AsmRelationshipUtils
public AsmRelationshipUtils()
-
-
Method Details
-
genDeclareMessage
Generates the declare message used in the details, for example if the declare warning statement has message "There should be no printlns" will return 'declare warning: "There should be n.."' -
genPointcutDetails
Generates the pointcut details for the given pointcut, for example an anonymous pointcut will return '<anonymous pointcut>' and a named pointcut called p() will return 'p()..'
-