Package org.codehaus.groovy.ast
Class GenericsType
java.lang.Object
org.codehaus.groovy.ast.ASTNode
org.codehaus.groovy.ast.GenericsType
- All Implemented Interfaces:
NodeMetaDataHandler
This class is used to describe generic type signatures for ClassNodes.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGenericsType
(ClassNode basicType) GenericsType
(ClassNode type, ClassNode[] upperBounds, ClassNode lowerBound) -
Method Summary
Modifier and TypeMethodDescriptiongetName()
getType()
boolean
isCompatibleWith
(ClassNode classNode) Determines if the provided type is compatible with this specification.boolean
boolean
boolean
void
void
setPlaceholder
(boolean placeholder) void
setResolved
(boolean resolved) void
void
setWildcard
(boolean wildcard) toString()
Methods inherited from class org.codehaus.groovy.ast.ASTNode
copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getText, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setMetaDataMap, setSourcePosition, visit
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.codehaus.groovy.ast.NodeMetaDataHandler
copyNodeMetaData, getNodeMetaData, getNodeMetaData, getNodeMetaData, newMetaDataMap, putNodeMetaData, removeNodeMetaData, setNodeMetaData
-
Field Details
-
EMPTY_ARRAY
-
-
Constructor Details
-
GenericsType
-
GenericsType
-
-
Method Details
-
getType
-
setType
-
toString
-
getName
-
setName
-
isResolved
public boolean isResolved() -
setResolved
public void setResolved(boolean resolved) -
isPlaceholder
public boolean isPlaceholder() -
setPlaceholder
public void setPlaceholder(boolean placeholder) -
isWildcard
public boolean isWildcard() -
setWildcard
public void setWildcard(boolean wildcard) -
getLowerBound
-
getUpperBounds
-
isCompatibleWith
Determines if the provided type is compatible with this specification. The check is complete, meaning that nested generics are also checked.
-