|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.fasterxml.classmate.TypeBindings
public final class TypeBindings
Helper class used for storing binding of local type variables to matching resolved types, in context of a single class.
Method Summary | |
---|---|
static TypeBindings |
create(Class<?> erasedType,
List<ResolvedType> typeList)
Factory method for constructing bindings for given class using specified type parameters. |
static TypeBindings |
create(Class<?> erasedType,
ResolvedType[] types)
|
static TypeBindings |
emptyBindings()
|
boolean |
equals(Object o)
|
ResolvedType |
findBoundType(String name)
Find type bound to specified name, if there is one; returns bound type if so, null if not. |
String |
getBoundName(int index)
|
ResolvedType |
getBoundType(int index)
|
List<ResolvedType> |
getTypeParameters()
Accessor for getting bound types in declaration order |
int |
hashCode()
|
boolean |
isEmpty()
|
int |
size()
Returns number of bindings contained |
String |
toString()
|
protected ResolvedType[] |
typeParameterArray()
|
TypeBindings |
withAdditionalBinding(String name,
ResolvedType type)
Method for creating an instance that has same bindings as this object, plus one additional binding |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static TypeBindings emptyBindings()
public static TypeBindings create(Class<?> erasedType, List<ResolvedType> typeList)
public static TypeBindings create(Class<?> erasedType, ResolvedType[] types)
public TypeBindings withAdditionalBinding(String name, ResolvedType type)
public ResolvedType findBoundType(String name)
public boolean isEmpty()
public int size()
public String getBoundName(int index)
public ResolvedType getBoundType(int index)
public List<ResolvedType> getTypeParameters()
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object o)
equals
in class Object
protected ResolvedType[] typeParameterArray()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |