org.aspectj.weaver.model
Class AsmRelationshipUtils
java.lang.Object
org.aspectj.weaver.model.AsmRelationshipUtils
public class AsmRelationshipUtils
- extends java.lang.Object
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)
Method Summary |
static java.lang.String |
genDeclareMessage(java.lang.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 java.lang.String |
genPointcutDetails(Pointcut pcd)
Generates the pointcut details for the given pointcut, for example an anonymous pointcut will return ''
and a named pointcut called p() will return 'p()..' |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DECLARE_PRECEDENCE
public static final java.lang.String DECLARE_PRECEDENCE
- See Also:
- Constant Field Values
DECLARE_SOFT
public static final java.lang.String DECLARE_SOFT
- See Also:
- Constant Field Values
DECLARE_PARENTS
public static final java.lang.String DECLARE_PARENTS
- See Also:
- Constant Field Values
DECLARE_WARNING
public static final java.lang.String DECLARE_WARNING
- See Also:
- Constant Field Values
DECLARE_ERROR
public static final java.lang.String DECLARE_ERROR
- See Also:
- Constant Field Values
DECLARE_UNKNONWN
public static final java.lang.String DECLARE_UNKNONWN
- See Also:
- Constant Field Values
POINTCUT_ABSTRACT
public static final java.lang.String POINTCUT_ABSTRACT
- See Also:
- Constant Field Values
POINTCUT_ANONYMOUS
public static final java.lang.String POINTCUT_ANONYMOUS
- See Also:
- Constant Field Values
DOUBLE_DOTS
public static final java.lang.String DOUBLE_DOTS
- See Also:
- Constant Field Values
MAX_MESSAGE_LENGTH
public static final int MAX_MESSAGE_LENGTH
- See Also:
- Constant Field Values
DEC_LABEL
public static final java.lang.String DEC_LABEL
- See Also:
- Constant Field Values
AsmRelationshipUtils
public AsmRelationshipUtils()
genDeclareMessage
public static java.lang.String genDeclareMessage(java.lang.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.."'
genPointcutDetails
public static java.lang.String genPointcutDetails(Pointcut pcd)
- Generates the pointcut details for the given pointcut, for example an anonymous pointcut will return ''
and a named pointcut called p() will return 'p()..'