Class ClientToDomainMapper
java.lang.Object
javax.lang.model.util.AbstractTypeVisitor6<TypeMirror,State>
javax.lang.model.util.SimpleTypeVisitor6<TypeMirror,State>
com.google.web.bindery.requestfactory.apt.TypeVisitorBase<TypeMirror>
com.google.web.bindery.requestfactory.apt.ClientToDomainMapper
- All Implemented Interfaces:
TypeVisitor<TypeMirror,
State>
Uses information in a State object to convert client types to their domain
equivalents. This types assumes that any incoming type has already been
determined to be a transportable type.
-
Nested Class Summary
-
Field Summary
Fields inherited from class javax.lang.model.util.SimpleTypeVisitor6
DEFAULT_VALUE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected TypeMirror
convertSingleParamType
(DeclaredType x, DeclaredType convertTo, int param, State state) Utility method to convert aFoo<BarProxy> -> BarDomain
.protected TypeMirror
defaultAction
(TypeMirror x, State state) visitDeclared
(DeclaredType x, State state) visitNoType
(NoType x, State state) visitPrimitive
(PrimitiveType x, State state) visitTypeVariable
(TypeVariable x, State state) visitWildcard
(WildcardType x, State state) Methods inherited from class com.google.web.bindery.requestfactory.apt.TypeVisitorBase
getValueTypes
Methods inherited from class javax.lang.model.util.SimpleTypeVisitor6
visitArray, visitError, visitExecutable, visitNull
Methods inherited from class javax.lang.model.util.AbstractTypeVisitor6
visit, visit, visitIntersection, visitUnion, visitUnknown
-
Constructor Details
-
ClientToDomainMapper
ClientToDomainMapper()
-
-
Method Details
-
visitDeclared
- Specified by:
visitDeclared
in interfaceTypeVisitor<TypeMirror,
State> - Overrides:
visitDeclared
in classSimpleTypeVisitor6<TypeMirror,
State>
-
visitNoType
- Specified by:
visitNoType
in interfaceTypeVisitor<TypeMirror,
State> - Overrides:
visitNoType
in classSimpleTypeVisitor6<TypeMirror,
State>
-
visitPrimitive
- Specified by:
visitPrimitive
in interfaceTypeVisitor<TypeMirror,
State> - Overrides:
visitPrimitive
in classSimpleTypeVisitor6<TypeMirror,
State>
-
visitTypeVariable
- Specified by:
visitTypeVariable
in interfaceTypeVisitor<TypeMirror,
State> - Overrides:
visitTypeVariable
in classSimpleTypeVisitor6<TypeMirror,
State>
-
visitWildcard
- Specified by:
visitWildcard
in interfaceTypeVisitor<TypeMirror,
State> - Overrides:
visitWildcard
in classSimpleTypeVisitor6<TypeMirror,
State>
-
convertSingleParamType
protected TypeMirror convertSingleParamType(DeclaredType x, DeclaredType convertTo, int param, State state) Utility method to convert aFoo<BarProxy> -> BarDomain
. Theparam
parameter specifies the index of the type parameter to extract. -
defaultAction
- Overrides:
defaultAction
in classSimpleTypeVisitor6<TypeMirror,
State>
-