public class TypeAdapter extends Object implements Type
Constructor and Description |
---|
TypeAdapter(Type type) |
Modifier and Type | Method and Description |
---|---|
Type |
as(TypeCategory category) |
Type |
asArrayType() |
boolean |
equals(Object o) |
TypeCategory |
getCategory() |
Type |
getComponentType() |
Type |
getEnclosingType() |
String |
getFullName() |
String |
getGenericName(boolean asArgType) |
String |
getGenericName(boolean asArgType,
Set<String> packages,
Set<String> classes) |
Class<?> |
getJavaClass() |
String |
getPackageName() |
List<Type> |
getParameters() |
String |
getRawName(Set<String> packages,
Set<String> classes) |
String |
getSimpleName() |
protected Type |
getType() |
int |
hashCode() |
boolean |
isFinal() |
boolean |
isMember() |
boolean |
isPrimitive() |
String |
toString() |
protected final Type type
public TypeAdapter(Type type)
public Type as(TypeCategory category)
public Type asArrayType()
asArrayType
in interface Type
public Type getComponentType()
getComponentType
in interface Type
public Type getEnclosingType()
getEnclosingType
in interface Type
public TypeCategory getCategory()
getCategory
in interface Type
public String getFullName()
getFullName
in interface Type
public String getGenericName(boolean asArgType)
getGenericName
in interface Type
public String getGenericName(boolean asArgType, Set<String> packages, Set<String> classes)
getGenericName
in interface Type
public Class<?> getJavaClass()
getJavaClass
in interface Type
public String getPackageName()
getPackageName
in interface Type
public List<Type> getParameters()
getParameters
in interface Type
public String getRawName(Set<String> packages, Set<String> classes)
getRawName
in interface Type
public String getSimpleName()
getSimpleName
in interface Type
protected Type getType()
public boolean isPrimitive()
isPrimitive
in interface Type
Copyright © 2010–2024. All rights reserved.