| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private String | |
| private TypePattern |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | accept(PatternNodeVisitor visitor, Object data)
Implements abstract org. |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| public String | |
| public String | |
| public String | getNameSuffix()
Implements abstract org. |
| public TypePattern | |
| public int | |
| public boolean | isAdviceLike()
Implements abstract org. |
| public boolean | |
| public Declare | parameterizeWith(Map<K, V> typeVariableBindingMap, World w)
Implements abstract org. |
| public static Declare | read(VersionedDataInputStream s, ISourceContext context)
|
| public void | resolve(IScope scope)
Implements abstract org. |
| public String | toString()
Overrides java. |
| public Object | traverse(PatternNodeVisitor visitor, Object data)
|
| public void | write(CompressingDataOutputStream s)
Implements abstract org. |
| isError | back to summary |
|---|---|
| private boolean isError | |
| message | back to summary |
|---|---|
| private String message | |
| typePattern | back to summary |
|---|---|
| private TypePattern typePattern | |
| DeclareTypeErrorOrWarning | back to summary |
|---|---|
| public DeclareTypeErrorOrWarning(boolean isError, TypePattern typePattern, String message) | |
| accept | back to summary |
|---|---|
| public Object accept(PatternNodeVisitor visitor, Object data) Implements abstract org. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) 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.
| |
| getMessage | back to summary |
|---|---|
| public String getMessage() | |
| getName | back to summary |
|---|---|
| public String getName() returns "declare type warning" or "declare type error" | |
| getNameSuffix | back to summary |
|---|---|
| public String getNameSuffix() Implements abstract org. Doc from org. 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. | |
| 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
| |
| 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. | |
| isError | back to summary |
|---|---|
| public boolean isError() | |
| parameterizeWith | back to summary |
|---|---|
| public Declare parameterizeWith(Map<K, V> 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 | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. returns "declare warning: <typepattern>: <message>" or "declare error: <typepattern>: <message>"
| |
| 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. | |