| Modifier and Type | Class and Description |
|---|---|
| public static class | DeclareAnnotation.Kind
Captures type of declare annotation (method/type/field/constructor) |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private AnnotationAJ | |
| private int | |
| private List | |
| private int | |
| private List | |
| private ResolvedType | |
| public static final DeclareAnnotation. | |
| public static final DeclareAnnotation. | |
| public static final DeclareAnnotation. | |
| public static final DeclareAnnotation. | |
| public static final DeclareAnnotation. | |
| private ResolvedType | |
| pack-priv boolean | |
| private DeclareAnnotation. | |
| private ISignaturePattern | |
| private TypePattern |
| Access | Constructor and Description |
|---|---|
| public | DeclareAnnotation(DeclareAnnotation.
Constructor for declare atType. |
| public | DeclareAnnotation(DeclareAnnotation.
Constructor for declare atMethod/atField/atConstructor. |
| Modifier and Type | Method and Description |
|---|---|
| public Object | accept(PatternNodeVisitor visitor, Object data)
Implements abstract org. |
| public void | |
| public boolean | couldEverMatch(ResolvedType type)
Return true if this declare annotation could ever match something in the specified type - only really able to make intelligent decision if a type was specified in the sig/type pattern signature. |
| private void | ensureAnnotationDiscovered()
The annotation specified in the declare @type is stored against a simple method of the form "ajc$declare_<nn>", this method finds that method and retrieves the annotation. |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public AnnotationAJ | Returns: declared annotation; can be null for annotations with SOURCE retention, which of course are not present in the byte code
|
| public String | |
| public int | |
| public int | |
| public String | |
| public ResolvedType | Returns: the type of the annotation; can be null for annotations with SOURCE retention, which of course are not present in the byte code
|
| public UnresolvedType | |
| public DeclareAnnotation. | |
| public String | getNameSuffix()
Implements abstract org. |
| public String | |
| public ISignaturePattern | |
| public TypePattern | |
| public int | |
| private void | |
| public boolean | isAdviceLike()
Implements abstract org. |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public Declare | parameterizeWith(Map<String, UnresolvedType> typeVariableBindingMap, World w)
Implements abstract org. |
| public static Declare | read(VersionedDataInputStream s, ISourceContext context)
|
| public void | resolve(IScope scope)
Implements abstract org. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public String | |
| public Object | traverse(PatternNodeVisitor visitor, Object data)
|
| public void | write(CompressingDataOutputStream s)
Implements abstract org. |
| AJC_DECLARE_ANNOTATION | back to summary |
|---|---|
| private static final String AJC_DECLARE_ANNOTATION | |
| annotation | back to summary |
|---|---|
| private AnnotationAJ annotation | |
| annotationEnd | back to summary |
|---|---|
| private int annotationEnd | |
| annotationMethods | back to summary |
|---|---|
| private List<String> annotationMethods | |
| annotationStart | back to summary |
|---|---|
| private int annotationStart | |
| annotationStrings | back to summary |
|---|---|
| private List<String> annotationStrings | |
| annotationType | back to summary |
|---|---|
| private ResolvedType annotationType | |
| AT_CONSTRUCTOR | back to summary |
|---|---|
| public static final DeclareAnnotation. | |
| AT_FIELD | back to summary |
|---|---|
| public static final DeclareAnnotation. | |
| AT_METHOD | back to summary |
|---|---|
| public static final DeclareAnnotation. | |
| AT_REMOVE_FROM_FIELD | back to summary |
|---|---|
| public static final DeclareAnnotation. | |
| AT_TYPE | back to summary |
|---|---|
| public static final DeclareAnnotation. | |
| containingAspect | back to summary |
|---|---|
| private ResolvedType containingAspect | |
| isRemover | back to summary |
|---|---|
| pack-priv boolean isRemover | |
| kind | back to summary |
|---|---|
| private DeclareAnnotation. | |
| signaturePattern | back to summary |
|---|---|
| private ISignaturePattern signaturePattern | |
| typePattern | back to summary |
|---|---|
| private TypePattern typePattern | |
| DeclareAnnotation | back to summary |
|---|---|
| public DeclareAnnotation(DeclareAnnotation. Constructor for declare atType. | |
| DeclareAnnotation | back to summary |
|---|---|
| public DeclareAnnotation(DeclareAnnotation. Constructor for declare atMethod/atField/atConstructor. | |
| accept | back to summary |
|---|---|
| public Object accept(PatternNodeVisitor visitor, Object data) Implements abstract org.
| |
| copyAnnotationTo | back to summary |
|---|---|
| public void copyAnnotationTo(ResolvedType onType) | |
| couldEverMatch | back to summary |
|---|---|
| public boolean couldEverMatch(ResolvedType type) Return true if this declare annotation could ever match something in the specified type - only really able to make intelligent decision if a type was specified in the sig/type pattern signature. | |
| ensureAnnotationDiscovered | back to summary |
|---|---|
| private void ensureAnnotationDiscovered() The annotation specified in the declare @type is stored against a simple method of the form "ajc$declare_
Caveat: Nothing will be found for annotations with SOURCE retention, which of course are not present in the byte
code.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getAnnotation | back to summary |
|---|---|
public AnnotationAJ getAnnotation()
| |
| getAnnotationMethod | back to summary |
|---|---|
| public String getAnnotationMethod() | |
| getAnnotationSourceEnd | back to summary |
|---|---|
| public int getAnnotationSourceEnd() | |
| getAnnotationSourceStart | back to summary |
|---|---|
| public int getAnnotationSourceStart() | |
| getAnnotationString | back to summary |
|---|---|
| public String getAnnotationString() Returns the string, useful before the real annotation has been resolved | |
| getAnnotationType | back to summary |
|---|---|
public ResolvedType getAnnotationType()
| |
| getAspect | back to summary |
|---|---|
| public UnresolvedType getAspect() | |
| getKind | back to summary |
|---|---|
| public DeclareAnnotation. | |
| getNameSuffix | back to summary |
|---|---|
| public String getNameSuffix() Implements abstract org. Provide a name suffix so that we can tell the different declare annotations forms apart in the AjProblemReporter
| |
| getPatternAsString | back to summary |
|---|---|
| public String getPatternAsString() | |
| getSignaturePattern | back to summary |
|---|---|
| public ISignaturePattern getSignaturePattern() | |
| getTypePattern | back to summary |
|---|---|
| public TypePattern getTypePattern() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| init | back to summary |
|---|---|
| private void init() | |
| isAdviceLike | back to summary |
|---|---|
| public boolean isAdviceLike() Implements abstract org. Doc from org. 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.
| |
| isAnnotationAllowedOnField | back to summary |
|---|---|
public boolean isAnnotationAllowedOnField()
| |
| isDeclareAtConstuctor | back to summary |
|---|---|
| public boolean isDeclareAtConstuctor() | |
| isDeclareAtField | back to summary |
|---|---|
| public boolean isDeclareAtField() | |
| isDeclareAtMethod | back to summary |
|---|---|
| public boolean isDeclareAtMethod() | |
| isDeclareAtType | back to summary |
|---|---|
| public boolean isDeclareAtType() | |
| isExactPattern | back to summary |
|---|---|
| public boolean isExactPattern() | |
| isRemover | back to summary |
|---|---|
| public boolean isRemover() | |
| isStarredAnnotationPattern | back to summary |
|---|---|
| public boolean isStarredAnnotationPattern() | |
| matches | back to summary |
|---|---|
| public boolean matches(ResolvedMember resolvedmember, World world) For declare atConstructor, atMethod, atField | |
| matches | back to summary |
|---|---|
| public boolean matches(ResolvedType type) For declare atType. | |
| parameterizeWith | back to summary |
|---|---|
| public Declare parameterizeWith(Map<String, UnresolvedType> typeVariableBindingMap, World w) Implements abstract org. Doc from org. Returns a version of this declare element in which all references to type variables are replaced with their bindings given in the map.
| |
| read | back to summary |
|---|---|
| public static Declare read(VersionedDataInputStream s, ISourceContext context) throws IOException | |
| resolve | back to summary |
|---|---|
| public void resolve(IScope scope) Implements abstract org. Doc from org. Returns this declare mutated
| |
| setAnnotationLocation | back to summary |
|---|---|
| public void setAnnotationLocation(int start, int end) | |
| setAnnotationMethod | back to summary |
|---|---|
| public void setAnnotationMethod(String methodName) | |
| setAnnotationString | back to summary |
|---|---|
| public void setAnnotationString(String annotationString) | |
| setAspect | back to summary |
|---|---|
| public void setAspect(ResolvedType typeX) | |
| setRemover | back to summary |
|---|---|
| public void setRemover(boolean b) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| traverse | back to summary |
|---|---|
| public Object traverse(PatternNodeVisitor visitor, Object data) | |
| write | back to summary |
|---|---|
| public void write(CompressingDataOutputStream s) throws IOException Implements abstract org.
| |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public int | |
| public String |
| Kind | back to summary |
|---|---|
| private Kind(int n, String name) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |