|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectxtc.tree.Node
xtc.type.Type
xtc.type.Parameter
xtc.type.Wildcard
public class Wildcard
A type wildcard.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class xtc.type.Type |
|---|
Type.Tag |
| Field Summary | |
|---|---|
static Wildcard |
TYPE
The canonical wildcard. |
| Constructor Summary | |
|---|---|
Wildcard()
Create a new wildcard. |
|
Wildcard(Type template)
Create a new wildcard. |
|
| Method Summary | |
|---|---|
void |
bind(Type type)
Bind this wildcard. |
Wildcard |
copy()
Create a deep copy of this type. |
boolean |
equals(java.lang.Object o)
|
int |
hashCode()
|
boolean |
isWildcard()
Determine whether this type is a wildcard. |
Type.Tag |
tag()
Get this type's tag. |
Wildcard |
toWildcard()
Get this type as a wildcard. |
| Methods inherited from class xtc.type.Parameter |
|---|
isParameter, lookup, toParameter |
| Methods inherited from class xtc.tree.Node |
|---|
add, add, addAll, addAll, addAll, addAll, addAllTo, addNode, contains, get, getBoolean, getBooleanProperty, getGeneric, getList, getName, getNode, getProperty, getString, getStringProperty, getTokenText, hasName, hasProperty, hasTraversal, indexOf, isAnnotation, isEmpty, isGeneric, isList, isToken, iterator, lastIndexOf, remove, set, size, strip, toAnnotation, toList, toString, toToken, write |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Wildcard TYPE
| Constructor Detail |
|---|
public Wildcard()
public Wildcard(Type template)
template - The type whose annotations to copy.| Method Detail |
|---|
public Wildcard copy()
Type
copy in class Typepublic Type.Tag tag()
Type
tag in class TypeType.wtag()public boolean isWildcard()
Type
isWildcard in class Typetrue if this type is a wildcard.public Wildcard toWildcard()
Type
toWildcard in class Typepublic void bind(Type type)
bind in class Parametertype - The type.
java.lang.IllegalStateException - Signals that wildcards cannot be
bound.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||