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)
Tells if the provided class node is compatible with this generic type definition
|
boolean |
isPlaceholder() |
boolean |
isResolved() |
boolean |
isWildcard() |
void |
setName(String name) |
void |
setPlaceholder(boolean placeholder) |
void |
setResolved(boolean res) |
void |
setType(ClassNode type) |
void |
setWildcard(boolean wildcard) |
String |
toString() |
copyNodeMetaData, equals, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getNodeMetaData, getNodeMetaData, getText, hashCode, putNodeMetaData, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setNodeMetaData, setSourcePosition, visit
public static final GenericsType[] EMPTY_ARRAY
public GenericsType(ClassNode basicType)
public ClassNode getType()
public void setType(ClassNode type)
public ClassNode[] getUpperBounds()
public String getName()
public boolean isPlaceholder()
public void setPlaceholder(boolean placeholder)
public boolean isResolved()
public void setResolved(boolean res)
public void setName(String name)
public boolean isWildcard()
public void setWildcard(boolean wildcard)
public ClassNode getLowerBound()
public boolean isCompatibleWith(ClassNode classNode)
classNode
- the class node to be checked