Package com.strobel.reflection
Class Helper.Adapter
- java.lang.Object
-
- com.strobel.reflection.TypeVisitor<P,R>
-
- com.strobel.reflection.DefaultTypeVisitor<P,R>
-
- com.strobel.reflection.SimpleVisitor<Type<?>,java.lang.Void>
-
- com.strobel.reflection.Helper.Adapter
-
- Enclosing class:
- Helper
private static final class Helper.Adapter extends SimpleVisitor<Type<?>,java.lang.Void>
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Set<Helper.TypePair>
cache
(package private) ListBuffer<Type<?>>
from
(package private) java.util.Map<Type<?>,Type<?>>
mapping
(package private) ListBuffer<Type<?>>
to
-
Constructor Summary
Constructors Constructor Description Adapter(ListBuffer<Type<?>> from, ListBuffer<Type<?>> to)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
adapt(Type<?> source, Type<?> target)
private void
adaptRecursive(Type<?> source, Type<?> target)
private void
adaptRecursive(TypeList source, TypeList target)
java.lang.Void
visitArrayType(Type<?> source, Type<?> target)
java.lang.Void
visitClassType(Type<?> source, Type<?> target)
java.lang.Void
visitType(Type<?> source, Type<?> target)
java.lang.Void
visitTypeParameter(Type<?> source, Type<?> target)
java.lang.Void
visitWildcardType(Type<?> source, Type<?> target)
-
Methods inherited from class com.strobel.reflection.SimpleVisitor
visitCapturedType
-
Methods inherited from class com.strobel.reflection.DefaultTypeVisitor
visitPrimitiveType
-
Methods inherited from class com.strobel.reflection.TypeVisitor
visit, visit
-
-
-
-
Field Detail
-
from
ListBuffer<Type<?>> from
-
to
ListBuffer<Type<?>> to
-
cache
private final java.util.Set<Helper.TypePair> cache
-
-
Constructor Detail
-
Adapter
Adapter(ListBuffer<Type<?>> from, ListBuffer<Type<?>> to)
-
-
Method Detail
-
adapt
public void adapt(Type<?> source, Type<?> target) throws Helper.AdaptFailure
- Throws:
Helper.AdaptFailure
-
visitClassType
public java.lang.Void visitClassType(Type<?> source, Type<?> target) throws Helper.AdaptFailure
- Overrides:
visitClassType
in classDefaultTypeVisitor<Type<?>,java.lang.Void>
- Throws:
Helper.AdaptFailure
-
visitArrayType
public java.lang.Void visitArrayType(Type<?> source, Type<?> target) throws Helper.AdaptFailure
- Overrides:
visitArrayType
in classDefaultTypeVisitor<Type<?>,java.lang.Void>
- Throws:
Helper.AdaptFailure
-
visitWildcardType
public java.lang.Void visitWildcardType(Type<?> source, Type<?> target) throws Helper.AdaptFailure
- Overrides:
visitWildcardType
in classDefaultTypeVisitor<Type<?>,java.lang.Void>
- Throws:
Helper.AdaptFailure
-
visitTypeParameter
public java.lang.Void visitTypeParameter(Type<?> source, Type<?> target) throws Helper.AdaptFailure
- Overrides:
visitTypeParameter
in classDefaultTypeVisitor<Type<?>,java.lang.Void>
- Throws:
Helper.AdaptFailure
-
visitType
public java.lang.Void visitType(Type<?> source, Type<?> target)
- Overrides:
visitType
in classTypeVisitor<Type<?>,java.lang.Void>
-
adaptRecursive
private void adaptRecursive(TypeList source, TypeList target) throws Helper.AdaptFailure
- Throws:
Helper.AdaptFailure
-
-