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.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isUnparameterizedType()
JType
isUnparameterizedType
in interface JType
public boolean isConcrete()
JType
isConcrete
in interface JType
public boolean isConcreteArray()
JType
isConcreteArray
in interface JType
public boolean isConcreteCollection()
isConcreteCollection
in interface JType
public boolean isConcreteMap()
isConcreteMap
in interface JType