Package org.codehaus.groovy.ast
Class GenericsType
- java.lang.Object
-
- org.codehaus.groovy.ast.ASTNode
-
- org.codehaus.groovy.ast.GenericsType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GenericsType.GenericsTypeName
-
Field Summary
Fields Modifier and Type Field Description static GenericsType[]
EMPTY_ARRAY
-
Constructor Summary
Constructors Constructor Description GenericsType(ClassNode basicType)
GenericsType(ClassNode type, ClassNode[] upperBounds, ClassNode lowerBound)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassNode
getLowerBound()
java.lang.String
getName()
ClassNode
getType()
ClassNode[]
getUpperBounds()
boolean
isCompatibleWith(ClassNode classNode)
Determines if the provided type is compatible with this specification.boolean
isPlaceholder()
boolean
isResolved()
boolean
isWildcard()
void
setName(java.lang.String name)
void
setPlaceholder(boolean placeholder)
void
setResolved(boolean resolved)
void
setType(ClassNode type)
void
setWildcard(boolean wildcard)
java.lang.String
toString()
-
Methods inherited from class org.codehaus.groovy.ast.ASTNode
copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getNodeMetaData, getNodeMetaData, getText, putNodeMetaData, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setNodeMetaData, setSourcePosition, visit
-
-
-
-
Field Detail
-
EMPTY_ARRAY
public static final GenericsType[] EMPTY_ARRAY
-
-
Method Detail
-
getType
public ClassNode getType()
-
setType
public void setType(ClassNode type)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getName
public java.lang.String getName()
-
setName
public void setName(java.lang.String name)
-
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
public ClassNode getLowerBound()
-
getUpperBounds
public ClassNode[] getUpperBounds()
-
isCompatibleWith
public boolean isCompatibleWith(ClassNode classNode)
Determines if the provided type is compatible with this specification. The check is complete, meaning that nested generics are also checked.
-
-