public static class Reflection.ReflectionType extends Object implements TypeAdapter
Constructor and Description |
---|
ReflectionType(Class<?> adaptee) |
Modifier and Type | Method and Description |
---|---|
Class<?> |
adaptee() |
List<MemberAdapter> |
getAllMembers()
Returns members declared by this type and inherited from its superclass(es).
|
List<MethodAdapter> |
getMethods()
Returns methods declared by this type.
|
boolean |
hasNoargConstructor() |
boolean |
isAbstract() |
boolean |
isAnonymousClass() |
boolean |
isArray() |
boolean |
isAssignableFrom(Class<?> type)
Returns
true if variable of this type erasure can be assigned values of
other type erasure. |
boolean |
isEnum() |
boolean |
isInnerClass() |
boolean |
isInterface() |
boolean |
isIterable() |
boolean |
isLocalClass() |
boolean |
isMap() |
boolean |
isPrimitive() |
boolean |
isSameType(Class<?> type) |
io.takari.builder.internal.Reflection.MultivalueFactory |
multivalueFactory() |
String |
qualifiedName() |
String |
simpleName() |
String |
toString() |
public ReflectionType(Class<?> adaptee)
public String simpleName()
simpleName
in interface TypeAdapter
public String qualifiedName()
qualifiedName
in interface TypeAdapter
public Class<?> adaptee()
public boolean isPrimitive()
isPrimitive
in interface TypeAdapter
public boolean isIterable()
isIterable
in interface TypeAdapter
public boolean isMap()
isMap
in interface TypeAdapter
public boolean isEnum()
isEnum
in interface TypeAdapter
public List<MemberAdapter> getAllMembers()
TypeAdapter
getAllMembers
in interface TypeAdapter
public List<MethodAdapter> getMethods()
TypeAdapter
getMethods
in interface TypeAdapter
public boolean isSameType(Class<?> type)
isSameType
in interface TypeAdapter
public boolean isInterface()
isInterface
in interface TypeAdapter
public boolean isLocalClass()
isLocalClass
in interface TypeAdapter
public boolean isAnonymousClass()
isAnonymousClass
in interface TypeAdapter
public boolean isInnerClass()
isInnerClass
in interface TypeAdapter
public boolean isAbstract()
isAbstract
in interface TypeAdapter
public boolean isArray()
isArray
in interface TypeAdapter
public boolean isAssignableFrom(Class<?> type)
TypeAdapter
true
if variable of this type
erasure can be assigned values of
other
type erasure.isAssignableFrom
in interface TypeAdapter
public boolean hasNoargConstructor()
hasNoargConstructor
in interface TypeAdapter
public io.takari.builder.internal.Reflection.MultivalueFactory multivalueFactory()
Copyright © 2021. All rights reserved.