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, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getNodeMetaData, getNodeMetaData, getText, 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