Package com.strobel.reflection.emit
Class TypeBuilderInstantiation<T>
- java.lang.Object
-
- com.strobel.reflection.MemberInfo
-
- com.strobel.reflection.Type<T>
-
- com.strobel.reflection.emit.TypeBuilderInstantiation<T>
-
- All Implemented Interfaces:
java.lang.reflect.AnnotatedElement
,java.lang.reflect.Type
final class TypeBuilderInstantiation<T> extends Type<T>
-
-
Field Summary
Fields Modifier and Type Field Description private Type<T>
_baseType
private TypeBuilder<T>
_definition
private TypeBindings
_typeBindings
-
Fields inherited from class com.strobel.reflection.Type
Bottom, DefaultBinder, DefaultLookup, Delimiter, EmptyConstructors, EmptyFields, EmptyMembers, EmptyMethods, EmptyObjects, EmptyStrings, EmptyTypes, FilterMethodOverride, FilterName, FilterNameIgnoreCase, FilterRawMember, NullType, Value
-
-
Constructor Summary
Constructors Modifier Constructor Description private
TypeBuilderInstantiation(TypeBuilder<T> definition, TypeBindings typeBindings)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <P,R>
Raccept(TypeVisitor<P,R> visitor, P parameter)
Type<? super T>
getBaseType()
protected java.lang.String
getClassFullName()
protected java.lang.String
getClassSimpleName()
protected ConstructorList
getDeclaredConstructors()
protected FieldList
getDeclaredFields()
protected MethodList
getDeclaredMethods()
protected TypeList
getDeclaredTypes()
MethodBase
getDeclaringMethod()
Type<?>
getDeclaringType()
java.lang.Class<T>
getErasedClass()
TypeList
getExplicitInterfaces()
Type<?>
getGenericTypeDefinition()
int
getModifiers()
Type<?>
getReflectedType()
protected TypeBindings
getTypeBindings()
boolean
isEquivalentTo(Type<?> other)
boolean
isGenericType()
(package private) static <T> Type<T>
makeGenericType(TypeBuilder<T> type, TypeList typeArguments)
private Type<?>
substitute(TypeList substitutes)
-
Methods inherited from class com.strobel.reflection.Type
_appendClassDescription, _appendClassName, _appendClassSignature, _appendErasedClassSignature, appendBriefDescription, appendDescription, appendErasedDescription, appendErasedSignature, appendGenericSignature, appendSignature, appendSimpleDescription, asSuperTypeOf, bottomType, containsGenericParameter, containsGenericParameters, createArrayType, findMembers, forName, forName, getAnnotation, getAnnotations, getConstructor, getConstructor, getConstructor, getConstructors, getConstructors, getDeclaredAnnotations, 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, getMemberType, getMethod, getMethod, getMethod, getMethods, getMethods, getMethods, getName, getNestedType, getNestedType, getNestedTypes, getNestedTypes, getPackage, getShortName, getSuperBound, getType, getTypeArguments, getUnderlyingType, getUnderlyingTypeCore, hasElementType, hasExtendsBound, hashCode, hasSuperBound, implementsInterface, invalidateCaches, isAbstract, isAnnotationPresent, 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, substitute, toString, unboundedWildcard
-
Methods inherited from class com.strobel.reflection.MemberInfo
emptyAnnotations, equals, getAnnotationsByType, getBriefDescription, getDeclaredAnnotation, getDeclaredAnnotationsByType, getDescription, getErasedDescription, getErasedSignature, getSignature, getSimpleDescription, isFinal, isNonPublic, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic
-
-
-
-
Field Detail
-
_definition
private final TypeBuilder<T> _definition
-
_typeBindings
private final TypeBindings _typeBindings
-
-
Constructor Detail
-
TypeBuilderInstantiation
private TypeBuilderInstantiation(TypeBuilder<T> definition, TypeBindings typeBindings)
-
-
Method Detail
-
makeGenericType
static <T> Type<T> makeGenericType(TypeBuilder<T> type, TypeList typeArguments)
-
getDeclaringType
public Type<?> getDeclaringType()
- Specified by:
getDeclaringType
in classMemberInfo
-
isGenericType
public boolean isGenericType()
- Overrides:
isGenericType
in classType<T>
-
getBaseType
public Type<? super T> getBaseType()
- Overrides:
getBaseType
in classType<T>
-
getExplicitInterfaces
public TypeList getExplicitInterfaces()
- Overrides:
getExplicitInterfaces
in classType<T>
-
getErasedClass
public java.lang.Class<T> getErasedClass()
- Overrides:
getErasedClass
in classType<T>
-
getDeclaringMethod
public MethodBase getDeclaringMethod()
- Overrides:
getDeclaringMethod
in classType<T>
-
getTypeBindings
protected TypeBindings getTypeBindings()
- Overrides:
getTypeBindings
in classType<T>
-
getGenericTypeDefinition
public Type<?> getGenericTypeDefinition()
- Overrides:
getGenericTypeDefinition
in classType<T>
-
getClassSimpleName
protected java.lang.String getClassSimpleName()
- Overrides:
getClassSimpleName
in classType<T>
-
getClassFullName
protected java.lang.String getClassFullName()
- Overrides:
getClassFullName
in classType<T>
-
getDeclaredConstructors
protected ConstructorList getDeclaredConstructors()
- Overrides:
getDeclaredConstructors
in classType<T>
-
getDeclaredMethods
protected MethodList getDeclaredMethods()
- Overrides:
getDeclaredMethods
in classType<T>
-
getDeclaredFields
protected FieldList getDeclaredFields()
- Overrides:
getDeclaredFields
in classType<T>
-
getDeclaredTypes
protected TypeList getDeclaredTypes()
- Overrides:
getDeclaredTypes
in classType<T>
-
getReflectedType
public Type<?> getReflectedType()
- Overrides:
getReflectedType
in classMemberInfo
-
getModifiers
public int getModifiers()
- Specified by:
getModifiers
in classMemberInfo
-
accept
public <P,R> R accept(TypeVisitor<P,R> visitor, P parameter)
-
isEquivalentTo
public boolean isEquivalentTo(Type<?> other)
- Overrides:
isEquivalentTo
in classType<T>
-
-