Package com.strobel.reflection
Class TypeBinder
- java.lang.Object
-
- com.strobel.reflection.TypeVisitor<P,R>
-
- com.strobel.reflection.DefaultTypeVisitor<T,Type<?>>
-
- com.strobel.reflection.TypeMapper<TypeBindings>
-
- com.strobel.reflection.TypeBinder
-
- Direct Known Subclasses:
TypeEraser
public class TypeBinder extends TypeMapper<TypeBindings>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
TypeBinder.CacheEntry
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.ThreadLocal<java.util.Map<TypeBinder.CacheEntry,TypeBinder.CacheEntry>>
CACHE
(package private) static TypeBinder
DEFAULT_BINDER
(package private) static java.lang.reflect.Method
GET_CLASS_METHOD
-
Constructor Summary
Constructors Constructor Description TypeBinder()
-
Method Summary
-
Methods inherited from class com.strobel.reflection.TypeMapper
visit, visit, visitType
-
Methods inherited from class com.strobel.reflection.DefaultTypeVisitor
visitCapturedType, visitPrimitiveType
-
Methods inherited from class com.strobel.reflection.TypeVisitor
visit, visit
-
-
-
-
Field Detail
-
GET_CLASS_METHOD
static final java.lang.reflect.Method GET_CLASS_METHOD
-
DEFAULT_BINDER
static final TypeBinder DEFAULT_BINDER
-
CACHE
private static final java.lang.ThreadLocal<java.util.Map<TypeBinder.CacheEntry,TypeBinder.CacheEntry>> CACHE
-
-
Method Detail
-
defaultBinder
public static TypeBinder defaultBinder()
-
visit
public ConstructorList visit(Type<?> declaringType, ConstructorList constructors, TypeBindings bindings)
-
visit
public FieldList visit(Type<?> declaringType, FieldList fields, TypeBindings bindings)
-
visit
public MethodList visit(Type<?> declaringType, MethodList methods, TypeBindings bindings)
-
visitTypeBindings
public TypeBindings visitTypeBindings(TypeBindings typeBindings, TypeBindings bindings)
-
visitField
public FieldInfo visitField(Type<?> declaringType, FieldInfo field, TypeBindings bindings)
-
visitParameters
public ParameterList visitParameters(ParameterList parameters, TypeBindings bindings)
-
visitMember
public MemberInfo visitMember(Type<?> declaringType, MemberInfo member, TypeBindings bindings)
-
visitMethod
public MethodInfo visitMethod(Type<?> declaringType, MethodInfo method, TypeBindings bindings)
-
visitConstructor
public ConstructorInfo visitConstructor(Type<?> declaringType, ConstructorInfo constructor, TypeBindings bindings)
-
visitClassType
public Type<?> visitClassType(Type<?> type, TypeBindings bindings)
- Overrides:
visitClassType
in classDefaultTypeVisitor<TypeBindings,Type<?>>
-
visitTypeParameter
public Type<?> visitTypeParameter(Type<?> type, TypeBindings bindings)
- Overrides:
visitTypeParameter
in classDefaultTypeVisitor<TypeBindings,Type<?>>
-
visitTypeParameterCore
protected Type<?> visitTypeParameterCore(Type<?> type, TypeBindings bindings)
-
visitWildcardType
public Type<?> visitWildcardType(Type<?> type, TypeBindings bindings)
- Overrides:
visitWildcardType
in classDefaultTypeVisitor<TypeBindings,Type<?>>
-
visitArrayType
public Type<?> visitArrayType(Type<?> type, TypeBindings bindings)
- Overrides:
visitArrayType
in classDefaultTypeVisitor<TypeBindings,Type<?>>
-
cache
private static java.util.Map<TypeBinder.CacheEntry,TypeBinder.CacheEntry> cache()
-
-