Class GenericsType
java.lang.Object
org.codehaus.groovy.ast.ASTNode
org.codehaus.groovy.ast.GenericsType
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()booleanisCompatibleWith(ClassNode classNode) Determines if the provided type is compatible with this specification.booleanbooleanbooleanvoidvoidsetPlaceholder(boolean placeholder) voidsetResolved(boolean resolved) voidvoidsetWildcard(boolean wildcard) toString()Methods inherited from class ASTNode
copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getNodeMetaData, getNodeMetaData, getText, putNodeMetaData, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setNodeMetaData, setSourcePosition, visit
-
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.
-