Class ClientToDomainMapper
- java.lang.Object
-
- javax.lang.model.util.AbstractTypeVisitor6<R,P>
-
- javax.lang.model.util.SimpleTypeVisitor6<T,State>
-
- com.google.web.bindery.requestfactory.apt.TypeVisitorBase<javax.lang.model.type.TypeMirror>
-
- com.google.web.bindery.requestfactory.apt.ClientToDomainMapper
-
- All Implemented Interfaces:
javax.lang.model.type.TypeVisitor<javax.lang.model.type.TypeMirror,State>
class ClientToDomainMapper extends TypeVisitorBase<javax.lang.model.type.TypeMirror>
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
Nested Classes Modifier and Type Class Description static class
ClientToDomainMapper.UnmappedTypeException
-
Constructor Summary
Constructors Constructor Description ClientToDomainMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.lang.model.type.TypeMirror
convertSingleParamType(javax.lang.model.type.DeclaredType x, javax.lang.model.type.DeclaredType convertTo, int param, State state)
Utility method to convert aFoo<BarProxy> -> BarDomain
.protected javax.lang.model.type.TypeMirror
defaultAction(javax.lang.model.type.TypeMirror x, State state)
javax.lang.model.type.TypeMirror
visitDeclared(javax.lang.model.type.DeclaredType x, State state)
javax.lang.model.type.TypeMirror
visitNoType(javax.lang.model.type.NoType x, State state)
javax.lang.model.type.TypeMirror
visitPrimitive(javax.lang.model.type.PrimitiveType x, State state)
javax.lang.model.type.TypeMirror
visitTypeVariable(javax.lang.model.type.TypeVariable x, State state)
javax.lang.model.type.TypeMirror
visitWildcard(javax.lang.model.type.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
-
-
-
-
Method Detail
-
visitDeclared
public javax.lang.model.type.TypeMirror visitDeclared(javax.lang.model.type.DeclaredType x, State state)
-
visitNoType
public javax.lang.model.type.TypeMirror visitNoType(javax.lang.model.type.NoType x, State state)
-
visitPrimitive
public javax.lang.model.type.TypeMirror visitPrimitive(javax.lang.model.type.PrimitiveType x, State state)
-
visitTypeVariable
public javax.lang.model.type.TypeMirror visitTypeVariable(javax.lang.model.type.TypeVariable x, State state)
-
visitWildcard
public javax.lang.model.type.TypeMirror visitWildcard(javax.lang.model.type.WildcardType x, State state)
-
convertSingleParamType
protected javax.lang.model.type.TypeMirror convertSingleParamType(javax.lang.model.type.DeclaredType x, javax.lang.model.type.DeclaredType convertTo, int param, State state)
Utility method to convert aFoo<BarProxy> -> BarDomain
. Theparam
parameter specifies the index of the type parameter to extract.
-
-