org.aspectj.weaver.model
Class AsmRelationshipUtils

java.lang.Object
  extended by 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)


Field Summary
static java.lang.String DEC_LABEL
           
static java.lang.String DECLARE_ERROR
           
static java.lang.String DECLARE_PARENTS
           
static java.lang.String DECLARE_PRECEDENCE
           
static java.lang.String DECLARE_SOFT
           
static java.lang.String DECLARE_UNKNONWN
           
static java.lang.String DECLARE_WARNING
           
static java.lang.String DOUBLE_DOTS
           
static int MAX_MESSAGE_LENGTH
           
static java.lang.String POINTCUT_ABSTRACT
           
static java.lang.String POINTCUT_ANONYMOUS
           
 
Constructor Summary
AsmRelationshipUtils()
           
 
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
 

Field Detail

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
Constructor Detail

AsmRelationshipUtils

public AsmRelationshipUtils()
Method Detail

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