public class Jwildcard extends java.lang.Object implements JType
Modifier and Type | Field and Description |
---|---|
JType[] |
lowerbounds
According to Java Specification Language, Java-7, there can only be
maximum one lower or one upper bound.
|
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.
|
void |
setLowerBounds(JType... lowerbounds) |
JType |
subst(java.util.Map<java.lang.String,JType> substitutions)
Apply the given subsitutions.
|
java.lang.String |
toString() |
public JType[] lowerbounds
public JType[] upperbounds
public Jwildcard(JType... upperbounds)
public void setLowerBounds(JType... lowerbounds)
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