Top Fields Constructors Methods
org.aspectj.weaver.patterns

public abstract Class Declare

extends PatternNode
Class Inheritance
Known Direct Subclasses
org.aspectj.weaver.patterns.DeclareAnnotation, org.aspectj.weaver.patterns.DeclareErrorOrWarning, org.aspectj.weaver.patterns.DeclareParents, org.aspectj.weaver.patterns.DeclarePrecedence, org.aspectj.weaver.patterns.DeclareSoft, org.aspectj.weaver.patterns.DeclareTypeErrorOrWarning
Imports
java.io.IOException, java.util.Map, org.aspectj.weaver.ISourceContext, .ResolvedType, .UnresolvedType, .VersionedDataInputStream, .World

Field Summary

Modifier and TypeField and Description
public static final byte
private ResolvedType
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
public static final byte
Inherited from org.aspectj.weaver.patterns.PatternNode:
endsourceContextstart

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ResolvedType
public abstract String
getNameSuffix()

Declares have methods in the .class file against which info can be stored (for example, the annotation in the case of declare annotation).

public abstract boolean
isAdviceLike()

Indicates if this declare should be treated like advice.

public abstract Declare
parameterizeWith(Map<String, UnresolvedType> typeVariableBindingMap, World w)

Returns a version of this declare element in which all references to type variables are replaced with their bindings given in the map.

public static Declare
public abstract void
resolve(IScope scope)

Returns this declare mutated

public void
Inherited from org.aspectj.weaver.patterns.PatternNode:
acceptcopyLocationFromgetEndgetFileNamegetSourceContextgetSourceLocationgetStartreadLocationsetLocationtraversewritewriteLocation

Field Detail

ANNOTATIONback to summary
public static final byte ANNOTATION
declaringTypeback to summary
private ResolvedType declaringType
DOMINATESback to summary
public static final byte DOMINATES
ERROR_OR_WARNINGback to summary
public static final byte ERROR_OR_WARNING
PARENTSback to summary
public static final byte PARENTS
PARENTSMIXINback to summary
public static final byte PARENTSMIXIN
SOFTback to summary
public static final byte SOFT
TYPE_ERROR_OR_WARNINGback to summary
public static final byte TYPE_ERROR_OR_WARNING

Constructor Detail

Declareback to summary
public Declare()

Method Detail

getDeclaringTypeback to summary
public ResolvedType getDeclaringType()
getNameSuffixback to summary
public abstract String getNameSuffix()

Declares have methods in the .class file against which info can be stored (for example, the annotation in the case of declare annotation). The name is of the form ajc$declare_XXX_NNN where XXX can optionally be set in this 'getNameSuffix()' method - depending on whether, at weave time, we want to easily differentiate between the declare methods.

isAdviceLikeback to summary
public abstract boolean isAdviceLike()

Indicates if this declare should be treated like advice. If true, the declare will have no effect in an abstract aspect. It will be inherited by any concrete aspects and will have an effect for each concrete aspect it is ultimately inherited by.

parameterizeWithback to summary
public abstract Declare parameterizeWith(Map<String, UnresolvedType> typeVariableBindingMap, World w)

Returns a version of this declare element in which all references to type variables are replaced with their bindings given in the map.

readback to summary
public static Declare read(VersionedDataInputStream s, ISourceContext context) throws IOException
resolveback to summary
public abstract void resolve(IScope scope)

Returns this declare mutated

setDeclaringTypeback to summary
public void setDeclaringType(ResolvedType aType)