Class Helper
java.lang.Object
com.strobel.reflection.Helper
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final classstatic class(package private) static final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static Type<?> private static final SimpleVisitor<MemberInfo, MemberInfo> private static final TypeVisitor<Type<?>, Type<?>> private static final Map<Type<?>, ImmutableList<Type<?>>> private static final TypeRelationprivate static final TypeMappingprivate static final TypeMappingprivate static final TypeMapper<Boolean> private static final UnaryTypeVisitor<Integer> private static final SimpleVisitor<ImmutableList<Type<?>>, ImmutableList<Type<?>>> private static final UnaryTypeVisitor<Boolean> private static final TypeRelationprivate static final TypeRelationprivate static final TypeMapper<Void> private static final TypeBinderprivate static final UnaryTypeVisitor<Type<?>> private static final TypeBinderprivate static final TypeMapper<Void> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidadapt(Type<?> source, Type<?> target, ListBuffer<Type<?>> from, ListBuffer<Type<?>> to) private static voidadaptSelf(Type<?> t, ListBuffer<Type<?>> from, ListBuffer<Type<?>> to) static booleanareSameTypes(TypeList ts, TypeList tp) private static Type<?> static MemberInfoasMemberOf(Type<?> type, MemberInfo member) static Type<?> asOuterSuper(Type<?> t, Type<?> type) static Type<?> static Type<?> static ImmutableList<Type<?>> private static ImmutableList<Type<?>> closureMin(ImmutableList<Type<?>> cl) (package private) static booleancontainsType(ImmutableList<Type<?>> ts, ImmutableList<Type<?>> ss) (package private) static booleancontainsType(Type<?> t, Type<?> p) (package private) static booleancontainsType(TypeList ts, TypeList ss) (package private) static booleancontainsTypeEquivalent(ImmutableList<Type<?>> ts, ImmutableList<Type<?>> tp) private static booleancontainsTypeEquivalent(Type<?> t, Type<?> p) (package private) static booleancontainsTypeEquivalent(TypeList ts, TypeList tp) static booleancovariantReturnType(Type<?> t, Type<?> s) static Type<?> elementType(Type<?> t) static Type<?> private static Type<?> static TypeListstatic Type<?> erasureRecursive(Type<?> t) static TypeListprivate static TypeListfreshTypeVariables(TypeList types) static Type<?> static intstatic booleanhasSameArgs(MethodInfo t, MethodInfo p) static booleanhasSameArgs(TypeList t, TypeList p) static booleaninSamePackage(Type<?> t1, Type<?> t2) static ImmutableList<Type<?>> insert(ImmutableList<Type<?>> cl, Type<?> t) static ImmutableList<Type<?>> interfaces(Type<?> type) static booleanisAssignable(Type<?> sourceType, Type<?> targetType) static booleanisCaptureOf(Type<?> p, Type<?> t) static booleanisConvertible(Type<?> sourceType, Type<?> targetType) static booleanisInheritedIn(Type<?> site, MemberInfo member) private static booleanisOverridableIn(MethodInfo method, Type<?> origin) static booleanisReifiable(Type<?> t) static booleanisSameType(Type<?> t, Type<?> p) static booleanisSameWildcard(Type<?> t, Type<?> p) static booleanstatic booleanstatic booleanstatic booleanisSubtypeNoCapture(Type<?> t, Type<?> p) static booleanisSubtypeUnchecked(Type<?> t, Type<?> s) static booleanisSuperType(Type<?> type, Type<?> other) static Type<?> lowerBound(Type<?> t) static TypeListmap(TypeList ts, TypeMapping f) static booleanoverrides(MethodBase method, MethodBase other, boolean checkResult) static booleanoverrides(MethodInfo baseMethod, MethodInfo ancestorMethod) static booleanoverrides(MethodInfo method, MethodInfo other, boolean checkResult) static booleanstatic intstatic booleanstatic booleanstatic Type<?> substitute(Type<?> type, ImmutableList<Type<?>> genericParameters, ImmutableList<Type<?>> typeArguments) static Type<?> substitute(Type<?> type, TypeBindings bindings) static Type<?> substitute(Type<?> type, TypeList genericParameters, TypeList typeArguments) static Type<?> static ImmutableList<Type<?>> union(ImmutableList<Type<?>> cl1, ImmutableList<Type<?>> cl2) static Type<?> upperBound(Type<?> t)
-
Field Details
-
ErasureFunctor
-
ErasureRecursiveFunctor
-
SubstitutingBinder
-
AsSuperVisitor
-
IsSameTypeRelation
-
UpperBoundVisitor
-
LowerBoundVisitor
-
ErasureVisitor
-
ContainsTypeRelation
-
InterfacesVisitor
private static final SimpleVisitor<ImmutableList<Type<?>>, ImmutableList<Type<?>>> InterfacesVisitor -
SuperTypeVisitor
-
IsSubtypeRelation
-
HashCodeVisitor
-
IsReifiableVisitor
-
_arraySuperType
-
typeBinder
-
asMemberOfVisitor
-
closureCache
-
-
Constructor Details
-
Helper
private Helper()
-
-
Method Details
-
overrides
-
isOverridableIn
-
overrides
-
overrides
-
resultSubtype
-
covariantReturnType
-
isAssignable
-
isConvertible
-
isSubtypeUnchecked
-
returnTypeSubstitutable
-
isSubSignature
-
hasSameArgs
-
hasSameArgs
-
asSuper
-
isSuperType
-
isSubtype
-
isSubtypeNoCapture
-
isSubtype
-
freshTypeVariables
-
capture
-
containsType
-
containsType
-
containsType
-
containsTypeEquivalent
-
containsTypeEquivalent
-
map
-
containsTypeEquivalent
-
areSameTypes
-
isSameType
-
isCaptureOf
-
isSameWildcard
-
glb
-
elementType
-
upperBound
-
lowerBound
-
erasure
-
erasureRecursive
-
erasureRecursive
-
erasure
-
substitute
public static Type<?> substitute(Type<?> type, ImmutableList<Type<?>> genericParameters, ImmutableList<Type<?>> typeArguments) -
substitute
-
substitute
-
erasure
-
interfaces
-
rank
-
precedes
-
union
-
isInheritedIn
-
inSamePackage
-
superType
-
adapt
public static void adapt(Type<?> source, Type<?> target, ListBuffer<Type<?>> from, ListBuffer<Type<?>> to) throws Helper.AdaptFailure - Throws:
Helper.AdaptFailure
-
adaptSelf
-
hashCode
-
isReifiable
-
arraySuperType
-
asOuterSuper
-
asMemberOf
-
insert
-
closureMin
-
closure
-