Package com.strobel.reflection
Class Helper
java.lang.Object
com.strobel.reflection.Helper
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
static 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 TypeRelation
private static final TypeMapping
private static final TypeMapping
private 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 TypeRelation
private static final TypeRelation
private static final TypeMapper
<Void> private static final TypeBinder
private static final UnaryTypeVisitor
<Type<?>> private static final TypeBinder
private static final TypeMapper
<Void> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
adapt
(Type<?> source, Type<?> target, ListBuffer<Type<?>> from, ListBuffer<Type<?>> to) private static void
adaptSelf
(Type<?> t, ListBuffer<Type<?>> from, ListBuffer<Type<?>> to) static boolean
areSameTypes
(TypeList ts, TypeList tp) private static Type
<?> static MemberInfo
asMemberOf
(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 boolean
containsType
(ImmutableList<Type<?>> ts, ImmutableList<Type<?>> ss) (package private) static boolean
containsType
(Type<?> t, Type<?> p) (package private) static boolean
containsType
(TypeList ts, TypeList ss) (package private) static boolean
containsTypeEquivalent
(ImmutableList<Type<?>> ts, ImmutableList<Type<?>> tp) private static boolean
containsTypeEquivalent
(Type<?> t, Type<?> p) (package private) static boolean
containsTypeEquivalent
(TypeList ts, TypeList tp) static boolean
covariantReturnType
(Type<?> t, Type<?> s) static Type
<?> elementType
(Type<?> t) static Type
<?> private static Type
<?> static TypeList
static Type
<?> erasureRecursive
(Type<?> t) static TypeList
private static TypeList
freshTypeVariables
(TypeList types) static Type
<?> static int
static boolean
hasSameArgs
(MethodInfo t, MethodInfo p) static boolean
hasSameArgs
(TypeList t, TypeList p) static boolean
inSamePackage
(Type<?> t1, Type<?> t2) static ImmutableList
<Type<?>> insert
(ImmutableList<Type<?>> cl, Type<?> t) static ImmutableList
<Type<?>> interfaces
(Type<?> type) static boolean
isAssignable
(Type<?> sourceType, Type<?> targetType) static boolean
isCaptureOf
(Type<?> p, Type<?> t) static boolean
isConvertible
(Type<?> sourceType, Type<?> targetType) static boolean
isInheritedIn
(Type<?> site, MemberInfo member) private static boolean
isOverridableIn
(MethodInfo method, Type<?> origin) static boolean
isReifiable
(Type<?> t) static boolean
isSameType
(Type<?> t, Type<?> p) static boolean
isSameWildcard
(Type<?> t, Type<?> p) static boolean
static boolean
static boolean
static boolean
isSubtypeNoCapture
(Type<?> t, Type<?> p) static boolean
isSubtypeUnchecked
(Type<?> t, Type<?> s) static boolean
isSuperType
(Type<?> type, Type<?> other) static Type
<?> lowerBound
(Type<?> t) static TypeList
map
(TypeList ts, TypeMapping f) static boolean
overrides
(MethodBase method, MethodBase other, boolean checkResult) static boolean
overrides
(MethodInfo baseMethod, MethodInfo ancestorMethod) static boolean
overrides
(MethodInfo method, MethodInfo other, boolean checkResult) static boolean
static int
static boolean
static boolean
static 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
-
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
-