Package org.codehaus.groovy.ast
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.
- Author:
- Jochen Theodorou
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionGenericsType
(ClassNode basicType) GenericsType
(ClassNode type, ClassNode[] upperBounds, ClassNode lowerBound) -
Method Summary
Modifier and TypeMethodDescriptiongetName()
getType()
boolean
isCompatibleWith
(ClassNode classNode) Tells if the provided class node is compatible with this generic type definitionboolean
boolean
boolean
void
void
setPlaceholder
(boolean placeholder) void
setResolved
(boolean res) void
void
setWildcard
(boolean wildcard) toString()
Methods inherited from class org.codehaus.groovy.ast.ASTNode
copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, 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
-
getUpperBounds
-
getName
-
isPlaceholder
public boolean isPlaceholder() -
setPlaceholder
public void setPlaceholder(boolean placeholder) -
isResolved
public boolean isResolved() -
setResolved
public void setResolved(boolean res) -
setName
-
isWildcard
public boolean isWildcard() -
setWildcard
public void setWildcard(boolean wildcard) -
getLowerBound
-
isCompatibleWith
Tells if the provided class node is compatible with this generic type definition- Parameters:
classNode
- the class node to be checked- Returns:
- true if the class node is compatible with this generics type definition
-