Package com.strobel.reflection
Class RuntimeType<T>
java.lang.Object
com.strobel.reflection.MemberInfo
com.strobel.reflection.Type<T>
com.strobel.reflection.RuntimeType<T>
- All Implemented Interfaces:
AnnotatedElement,Type
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TypeBindingsprivate ConstructorListprivate FieldListprivate TypeListprivate MethodListprivate TypeListprivate final Type<?> private final TypeBindings(package private) static final TypeBinderFields inherited from class com.strobel.reflection.Type
Bottom, CACHE, CACHE_LOCK, DefaultBinder, DefaultLookup, Delimiter, EmptyConstructors, EmptyFields, EmptyMembers, EmptyMethods, EmptyObjects, EmptyStrings, EmptyTypes, FilterMethodOverride, FilterName, FilterNameIgnoreCase, FilterRawMember, NullType, PRIMITIVE_TYPES, RESOLVER, TYPE_BINDER, ValueFields inherited from class com.strobel.reflection.MemberInfo
EMPTY_ANNOTATIONS, ENUM_MODIFIER, VARARGS_MODIFIER -
Constructor Summary
ConstructorsConstructorDescriptionRuntimeType(Type<?> reflectedType, Type<T> basedOn, TypeBindings allBindings) -
Method Summary
Modifier and TypeMethodDescription<P,R> R accept(TypeVisitor<P, R> typeVisitor, P parameter) private voidprivate voidprivate voidprivate voidprivate voidprivate void<A extends Annotation>
AgetAnnotation(Class<A> annotationClass) protected ConstructorListprotected FieldListprotected MethodListprotected TypeListType<?> Type<?> intType<?> booleanisAnnotationPresent(Class<? extends Annotation> annotationClass) booleanisEquivalentTo(Type<?> other) booleanMethods inherited from class com.strobel.reflection.Type
_appendClassDescription, _appendClassName, _appendClassSignature, _appendErasedClassSignature, appendBriefDescription, appendDescription, appendErasedDescription, appendErasedSignature, appendGenericSignature, appendSignature, appendSimpleDescription, asSuperTypeOf, bottomType, containsGenericParameter, containsGenericParameters, createArrayType, filterMethodBase, filterPreCalculate, findMembers, forName, forName, getCache, getClassFullName, getClassSimpleName, getConstructor, getConstructor, getConstructor, getConstructors, getConstructors, getDeclaringMethod, getElementType, getEnumConstants, getEnumNames, getErasedType, getExtendsBound, getField, getField, getFields, getFields, getFullName, getGenericParameterPosition, getGenericSignature, getGenericTypeParameters, getInterfaces, getInternalName, getKind, getMember, getMember, getMember, getMembers, getMembers, getMembers, getMembers, getMembers, getMembersOfType, getMethod, getMethod, getMethod, getMethods, getMethods, getMethods, getMostSpecificType, getName, getNestedType, getNestedType, getNestedTypes, getNestedTypes, getPackage, getRootElementType, getShortName, getSuperBound, getType, getTypeArguments, getUnderlyingType, getUnderlyingTypeCore, hasElementType, hasExtendsBound, hashCode, hasSuperBound, implementsInterface, invalidateCaches, isAbstract, isArray, isAssignableFrom, isBoundedType, isClass, isCompoundType, isEnum, isEquivalentTo, isGenericParameter, isGenericTypeDefinition, isInstance, isInterface, isLocalClass, isNested, isPrimitive, isRawType, isSubTypeOf, isSynthetic, isUnbounded, isVisible, isWildcardType, list, list, list, makeArrayType, makeArrayType, makeCompoundType, makeCompoundType, makeExtendsWildcard, makeGenericType, makeGenericType, makeGenericTypeCore, makeSuperWildcard, makeWildcard, newInstance, nullType, of, of, substitute, toString, tryFind, unboundedWildcardMethods inherited from class com.strobel.reflection.MemberInfo
emptyAnnotations, equals, getAnnotationsByType, getBriefDescription, getDeclaredAnnotation, getDeclaredAnnotationsByType, getDescription, getErasedDescription, getErasedSignature, getSignature, getSimpleDescription, isFinal, isNonPublic, isPackagePrivate, isPrivate, isProtected, isPublic, isStaticMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.reflect.Type
getTypeName
-
Field Details
-
GenericBinder
-
_reflectedType
-
_erasedClass
-
_basedOn
-
_typeBindings
-
_allBindings
-
_baseType
-
_interfaces
-
_fields
-
_constructors
-
_methods
-
_nestedTypes
-
-
Constructor Details
-
RuntimeType
RuntimeType(Type<?> reflectedType, Type<T> basedOn, TypeBindings allBindings)
-
-
Method Details
-
getReflectedType
- Overrides:
getReflectedTypein classMemberInfo
-
ensureBaseType
private void ensureBaseType() -
ensureInterfaces
private void ensureInterfaces() -
ensureFields
private void ensureFields() -
ensureConstructors
private void ensureConstructors() -
ensureMethods
private void ensureMethods() -
ensureNestedTypes
private void ensureNestedTypes() -
getErasedClass
- Overrides:
getErasedClassin classType<T>
-
getExplicitInterfaces
- Overrides:
getExplicitInterfacesin classType<T>
-
getBaseType
- Overrides:
getBaseTypein classType<T>
-
getGenericTypeDefinition
- Overrides:
getGenericTypeDefinitionin classType<T>
-
getMemberType
- Overrides:
getMemberTypein classType<T>
-
getDeclaringType
- Specified by:
getDeclaringTypein classMemberInfo
-
isGenericType
public boolean isGenericType()- Overrides:
isGenericTypein classType<T>
-
getTypeBindings
- Overrides:
getTypeBindingsin classType<T>
-
getModifiers
public int getModifiers()- Specified by:
getModifiersin classMemberInfo
-
isAnnotationPresent
- Specified by:
isAnnotationPresentin interfaceAnnotatedElement- Overrides:
isAnnotationPresentin classType<T>
-
getAnnotation
- Specified by:
getAnnotationin interfaceAnnotatedElement- Overrides:
getAnnotationin classType<T>
-
getAnnotations
- Specified by:
getAnnotationsin interfaceAnnotatedElement- Overrides:
getAnnotationsin classType<T>
-
getDeclaredAnnotations
- Specified by:
getDeclaredAnnotationsin interfaceAnnotatedElement- Overrides:
getDeclaredAnnotationsin classType<T>
-
accept
-
getDeclaredConstructors
- Overrides:
getDeclaredConstructorsin classType<T>
-
getDeclaredMethods
- Overrides:
getDeclaredMethodsin classType<T>
-
getDeclaredFields
- Overrides:
getDeclaredFieldsin classType<T>
-
getDeclaredTypes
- Overrides:
getDeclaredTypesin classType<T>
-
isEquivalentTo
- Overrides:
isEquivalentToin classType<T>
-