public Token()
public Token(Type type)
type - public Class<? super T> getRawType()
getRawType in interface JavaToken<T>public boolean isInterface()
isInterface in interface JavaToken<T>public boolean isAbstract()
isAbstract in interface JavaToken<T>public boolean isParameterizedType()
true if type is instance of ParameterizedType.
Otherwise false.public boolean isTypeVariable()
true if type is instance of TypeVariable.
Otherwise false.public boolean isWildcardType()
true if type is instance of WildcardType.
Otherwise false.public boolean isCollection()
public boolean isMap()
public Collection<FieldToken> getDeclaredFields()
public static Collection<FieldToken> getDeclaredFields(Class<?> type)
type - public static Type resolveBounds(WildcardType wt)
wt - public static Type getType(Type context, Class<?> contextRawType)
context - contextRawType - public Type getGenericSuperType(Class<?> toResolve)
toResolve - public static Type getGenericSuperType(Type contextType, Class<?> rawType, Class<?> resolved)
contextType - rawType - resolved - public static Type resolve(Type contextType, Class<?> contextRawType, Type toResolve)
contextType - contextRawType - toResolve - public static ParameterizedType newParameterizedTypeWithOwner(Type ownerType, Type rawType, Type... typeArguments)
ownerType - rawType - typeArguments - public static GenericArrayType arrayOf(Type componentType)
componentType - serializable generic array type.public static WildcardType subtypeOf(Type bound)
bound - public static WildcardType supertypeOf(Type bound)
bound - public Type resolveTypeVariable(TypeVariable typeVariable)
typeVariable - public static Type resolveTypeVariable(Type context, Class<?> contextRawType, TypeVariable<?> unknown)
context - contextRawType - unknown - public static Class<?> declaringClassOf(TypeVariable<?> typeVariable)
typeVariable - public static Type getSupertype(Type context, Class<?> contextRawType, Class<?> supertype)
context - contextRawType - supertype - public Type getSuperParameterType(Class<?> subclass)
subclass - Copyright © 2018 Terra Software Informatics LLC.. All rights reserved.