Class DescriptorBuilder
java.lang.Object
javax.lang.model.util.AbstractTypeVisitor6<String,State>
javax.lang.model.util.SimpleTypeVisitor6<String,State>
com.google.web.bindery.requestfactory.apt.DescriptorBuilder
- All Implemented Interfaces:
TypeVisitor<String,
State>
Builds descriptors from TypeMirrors for both simple types and methods. Used
by
DeobfuscatorBuilder
to construct client-to-server method mappings.-
Field Summary
Fields inherited from class javax.lang.model.util.SimpleTypeVisitor6
DEFAULT_VALUE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
defaultAction
(TypeMirror x, State state) visitArray
(ArrayType x, State state) Arrays aren't actually used anywhere in RequestFactory, but it's trivial to implement and might be useful later on.visitDeclared
(DeclaredType x, State state) visitExecutable
(ExecutableType x, State state) Only generates the method descriptor, which does not include the method's name.visitNoType
(NoType x, State state) visitPrimitive
(PrimitiveType x, State state) visitTypeVariable
(TypeVariable x, State state) visitWildcard
(WildcardType x, State state) Methods inherited from class javax.lang.model.util.SimpleTypeVisitor6
visitError, visitNull
Methods inherited from class javax.lang.model.util.AbstractTypeVisitor6
visit, visit, visitIntersection, visitUnion, visitUnknown
-
Constructor Details
-
DescriptorBuilder
DescriptorBuilder()
-
-
Method Details
-
visitArray
Arrays aren't actually used anywhere in RequestFactory, but it's trivial to implement and might be useful later on.- Specified by:
visitArray
in interfaceTypeVisitor<String,
State> - Overrides:
visitArray
in classSimpleTypeVisitor6<String,
State>
-
visitDeclared
- Specified by:
visitDeclared
in interfaceTypeVisitor<String,
State> - Overrides:
visitDeclared
in classSimpleTypeVisitor6<String,
State>
-
visitExecutable
Only generates the method descriptor, which does not include the method's name.- Specified by:
visitExecutable
in interfaceTypeVisitor<String,
State> - Overrides:
visitExecutable
in classSimpleTypeVisitor6<String,
State>
-
visitNoType
- Specified by:
visitNoType
in interfaceTypeVisitor<String,
State> - Overrides:
visitNoType
in classSimpleTypeVisitor6<String,
State>
-
visitPrimitive
- Specified by:
visitPrimitive
in interfaceTypeVisitor<String,
State> - Overrides:
visitPrimitive
in classSimpleTypeVisitor6<String,
State>
-
visitTypeVariable
- Specified by:
visitTypeVariable
in interfaceTypeVisitor<String,
State> - Overrides:
visitTypeVariable
in classSimpleTypeVisitor6<String,
State>
-
visitWildcard
- Specified by:
visitWildcard
in interfaceTypeVisitor<String,
State> - Overrides:
visitWildcard
in classSimpleTypeVisitor6<String,
State>
-
defaultAction
- Overrides:
defaultAction
in classSimpleTypeVisitor6<String,
State>
-