This class is used to describe generic type signatures for ClassNodes.
Modifiers | Name | 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. |
Modifiers | Name | Description |
---|---|---|
static GenericsType[] |
EMPTY_ARRAY |
Constructor and description |
---|
GenericsType
(ClassNode type, ClassNode[] upperBounds, ClassNode lowerBound) |
GenericsType
(ClassNode basicType) |
Type Params | Return Type | Name 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() |
Methods inherited from class | Name |
---|---|
class ASTNode |
copyNodeMetaData, equals, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getNodeMetaData, getNodeMetaData, getText, hashCode, putNodeMetaData, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setNodeMetaData, setSourcePosition, visit |
Tells if the provided class node is compatible with this generic type definition
classNode
- the class node to be checkedCopyright © 2003-2019 The Apache Software Foundation. All rights reserved.