public class GenericsType extends ASTNode
ClassNode
Modifier and Type | Class and Description |
---|---|
static class |
GenericsType.GenericsTypeName
Represents GenericsType name
TODO In order to distinguish GenericsType with same name(See GROOVY-8409), we should add a property to keep the declaring class.
|
Modifier and Type | Field and Description |
---|---|
static GenericsType[] |
EMPTY_ARRAY |
Constructor and Description |
---|
GenericsType(ClassNode basicType) |
GenericsType(ClassNode type,
ClassNode[] upperBounds,
ClassNode lowerBound) |
Modifier and Type | Method and Description |
---|---|
ClassNode |
getLowerBound() |
String |
getName() |
ClassNode |
getType() |
ClassNode[] |
getUpperBounds() |
boolean |
isCompatibleWith(ClassNode classNode)
Compares this generics type with the provided class node.
|
boolean |
isPlaceholder() |
boolean |
isResolved() |
boolean |
isWildcard() |
void |
setName(String name) |
void |
setPlaceholder(boolean placeholder) |
void |
setResolved(boolean resolved) |
void |
setType(ClassNode type) |
void |
setWildcard(boolean wildcard) |
String |
toString() |
copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getText, hashCode, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setMetaDataMap, setSourcePosition, visit
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
copyNodeMetaData, getNodeMetaData, getNodeMetaData, getNodeMetaData, putNodeMetaData, removeNodeMetaData, setNodeMetaData
public static final GenericsType[] EMPTY_ARRAY
public GenericsType(ClassNode basicType)
public ClassNode getType()
public void setType(ClassNode type)
public String getName()
public void setName(String name)
public boolean isResolved()
public void setResolved(boolean resolved)
public boolean isPlaceholder()
public void setPlaceholder(boolean placeholder)
public boolean isWildcard()
public void setWildcard(boolean wildcard)
public ClassNode getLowerBound()
public ClassNode[] getUpperBounds()
public boolean isCompatibleWith(ClassNode classNode)
classNode
is or is not compatible with this generics specification