public class DeclareParents extends Declare
| Modifier and Type | Field and Description |
|---|---|
protected TypePattern |
child |
protected boolean |
isExtends |
protected TypePatternList |
parents |
ANNOTATION, DOMINATES, ERROR_OR_WARNING, PARENTS, PARENTSMIXIN, SOFT, TYPE_ERROR_OR_WARNINGend, sourceContext, start| Modifier | Constructor and Description |
|---|---|
|
DeclareParents(TypePattern child,
java.util.List parents,
boolean isExtends) |
protected |
DeclareParents(TypePattern child,
TypePatternList parents,
boolean isExtends) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
accept(PatternNodeVisitor visitor,
java.lang.Object data) |
boolean |
equals(java.lang.Object other) |
java.util.List<ResolvedType> |
findMatchingNewParents(ResolvedType onType,
boolean reportErrors) |
TypePattern |
getChild() |
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).
|
TypePatternList |
getParents() |
int |
hashCode() |
boolean |
isAdviceLike()
Indicates if this declare should be treated like advice.
|
boolean |
isExtends() |
boolean |
isMixin() |
boolean |
match(ResolvedType typeX) |
Declare |
parameterizeWith(java.util.Map 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.
|
boolean |
parentsIncludeClass(World w) |
boolean |
parentsIncludeInterface(World w) |
static Declare |
read(VersionedDataInputStream s,
ISourceContext context) |
void |
resolve(IScope scope)
Returns this declare mutated
|
java.lang.String |
toString() |
void |
write(CompressingDataOutputStream s) |
getDeclaringType, setDeclaringTypecopyLocationFrom, getEnd, getFileName, getSourceContext, getSourceLocation, getStart, readLocation, setLocation, traverse, writeLocationprotected TypePattern child
protected TypePatternList parents
protected boolean isExtends
public DeclareParents(TypePattern child, java.util.List parents, boolean isExtends)
protected DeclareParents(TypePattern child, TypePatternList parents, boolean isExtends)
public boolean match(ResolvedType typeX)
public java.lang.Object accept(PatternNodeVisitor visitor, java.lang.Object data)
accept in class PatternNodepublic Declare parameterizeWith(java.util.Map typeVariableBindingMap, World w)
DeclareparameterizeWith in class Declarepublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic void write(CompressingDataOutputStream s) throws java.io.IOException
write in class PatternNodejava.io.IOExceptionpublic static Declare read(VersionedDataInputStream s, ISourceContext context) throws java.io.IOException
java.io.IOExceptionpublic boolean parentsIncludeInterface(World w)
public boolean parentsIncludeClass(World w)
public void resolve(IScope scope)
Declarepublic TypePatternList getParents()
public TypePattern getChild()
public boolean isExtends()
public boolean isAdviceLike()
DeclareisAdviceLike in class Declarepublic java.util.List<ResolvedType> findMatchingNewParents(ResolvedType onType, boolean reportErrors)
public java.lang.String getNameSuffix()
DeclaregetNameSuffix in class Declarepublic boolean isMixin()