public final class TypeDescriptor extends Object implements ElementDescriptor
| Modifier and Type | Field and Description |
|---|---|
protected TypeDescriptors |
typeDescriptors |
protected com.google.common.reflect.TypeToken<?> |
typeToken |
static com.google.common.collect.BiMap<Class<?>,Class<?>> |
WRAPPER_TO_PRIMITIVE |
| Constructor and Description |
|---|
TypeDescriptor(TypeDescriptors typeDescriptors,
com.google.common.reflect.TypeToken<?> typeToken) |
public static final com.google.common.collect.BiMap<Class<?>,Class<?>> WRAPPER_TO_PRIMITIVE
protected final com.google.common.reflect.TypeToken<?> typeToken
protected final TypeDescriptors typeDescriptors
public TypeDescriptor(TypeDescriptors typeDescriptors, com.google.common.reflect.TypeToken<?> typeToken)
public List<Annotation> getAnnotations()
getAnnotations in interface ElementDescriptorpublic <A extends Annotation> A getAnnotation(Class<A> annotationClass)
getAnnotation in interface ElementDescriptorpublic <A extends Annotation> boolean hasAnnotation(Class<A> annotationClass)
hasAnnotation in interface ElementDescriptorpublic boolean equalTo(TypeDescriptor type)
public boolean equalTo(Class<?> type)
public Map<String,FieldDescriptor> getFields()
public String getSimpleName()
public Map<ConstructorSignature,ConstructorDescriptor> getConstructors()
public Map<MethodSignature,MethodDescriptor> getMethods()
public Map<String,BeanProperty> getProperties()
public boolean hasField(String fieldName)
public FieldDescriptor getField(String name)
public TypeDescriptor resolveGenericParameter(Class<?> genericClass, int genericParam)
public Class<?> getRawType()
public com.google.common.reflect.TypeToken<?> getTypeToken()
public boolean isPrimitiveOrWrapper()
public boolean isSuperTypeOf(TypeDescriptor type)
public boolean isSuperTypeOf(Class<?> clazz)
public boolean isSubTypeOf(TypeDescriptor type)
public boolean isSubTypeOf(Class<?> clazz)
public boolean isEnum()
public ConstructorDescriptor getDefaultConstructor()
public Object newInstance()
public TypeDescriptors getTypeDescriptors()
public boolean isAbstract()
Copyright © 2016. All rights reserved.