Top Description Fields Constructors Methods
org.aspectj.weaver.model

public Class AsmRelationshipUtils

extends Object
Class Inheritance
Imports
org.aspectj.weaver.patterns.AndPointcut, .OrPointcut, .Pointcut, .ReferencePointcut

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

Modifier and TypeField and Description
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 int
public static final String
public static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static 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.."'

public 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()..'

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DEC_LABELback to summary
public static final String DEC_LABEL
DECLARE_ERRORback to summary
public static final String DECLARE_ERROR
DECLARE_PARENTSback to summary
public static final String DECLARE_PARENTS
DECLARE_PRECEDENCEback to summary
public static final String DECLARE_PRECEDENCE
DECLARE_SOFTback to summary
public static final String DECLARE_SOFT
DECLARE_UNKNONWNback to summary
public static final String DECLARE_UNKNONWN
DECLARE_WARNINGback to summary
public static final String DECLARE_WARNING
DOUBLE_DOTSback to summary
public static final String DOUBLE_DOTS
MAX_MESSAGE_LENGTHback to summary
public static final int MAX_MESSAGE_LENGTH
POINTCUT_ABSTRACTback to summary
public static final String POINTCUT_ABSTRACT
POINTCUT_ANONYMOUSback to summary
public static final String POINTCUT_ANONYMOUS

Constructor Detail

AsmRelationshipUtilsback to summary
public AsmRelationshipUtils()

Method Detail

genDeclareMessageback to summary
public static 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.."'

genPointcutDetailsback to summary
public 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()..'