public class JTvar extends java.lang.Object implements JType
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
name |
JType[] |
upperbounds |
| Constructor and Description |
|---|
JTvar(java.lang.String name,
JType... upperbounds) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
boolean |
isConcrete()
True if the type contains no type variables nor wildcards.
|
boolean |
isConcreteArray()
True if the type is concrete, and is an array.
|
boolean |
isConcreteCollection() |
boolean |
isConcreteMap() |
boolean |
isUnparameterizedType()
True if the type represents an unparameterized class in Java, such as Integer.
|
JType |
subst(java.util.Map<java.lang.String,JType> substitutions)
Apply the given subsitutions.
|
java.lang.String |
toString() |
public java.lang.String name
public JType[] upperbounds
public JTvar(java.lang.String name,
JType... upperbounds)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean isUnparameterizedType()
JTypeisUnparameterizedType in interface JTypepublic boolean isConcrete()
JTypeisConcrete in interface JTypepublic boolean isConcreteArray()
JTypeisConcreteArray in interface JTypepublic boolean isConcreteCollection()
isConcreteCollection in interface JTypepublic boolean isConcreteMap()
isConcreteMap in interface JType