public abstract class Declare extends PatternNode
Modifier and Type | Field and Description |
---|---|
static byte |
ANNOTATION |
static byte |
DOMINATES |
static byte |
ERROR_OR_WARNING |
static byte |
PARENTS |
static byte |
PARENTSMIXIN |
static byte |
SOFT |
static byte |
TYPE_ERROR_OR_WARNING |
end, sourceContext, start
Constructor and Description |
---|
Declare() |
Modifier and Type | Method and Description |
---|---|
ResolvedType |
getDeclaringType() |
abstract java.lang.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).
|
abstract boolean |
isAdviceLike()
Indicates if this declare should be treated like advice.
|
abstract Declare |
parameterizeWith(java.util.Map<java.lang.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.
|
static Declare |
read(VersionedDataInputStream s,
ISourceContext context) |
abstract void |
resolve(IScope scope)
Returns this declare mutated
|
void |
setDeclaringType(ResolvedType aType) |
accept, copyLocationFrom, getEnd, getFileName, getSourceContext, getSourceLocation, getStart, readLocation, setLocation, traverse, write, writeLocation
public static final byte ERROR_OR_WARNING
public static final byte PARENTS
public static final byte SOFT
public static final byte DOMINATES
public static final byte ANNOTATION
public static final byte PARENTSMIXIN
public static final byte TYPE_ERROR_OR_WARNING
public static Declare read(VersionedDataInputStream s, ISourceContext context) throws java.io.IOException
java.io.IOException
public abstract void resolve(IScope scope)
public abstract Declare parameterizeWith(java.util.Map<java.lang.String,UnresolvedType> typeVariableBindingMap, World w)
public abstract boolean isAdviceLike()
public abstract java.lang.String getNameSuffix()
public void setDeclaringType(ResolvedType aType)
public ResolvedType getDeclaringType()