Class DescriptorBuilder
- java.lang.Object
-
- javax.lang.model.util.AbstractTypeVisitor6<R,P>
-
- javax.lang.model.util.SimpleTypeVisitor6<java.lang.String,State>
-
- com.google.web.bindery.requestfactory.apt.DescriptorBuilder
-
- All Implemented Interfaces:
javax.lang.model.type.TypeVisitor<java.lang.String,State>
class DescriptorBuilder extends javax.lang.model.util.SimpleTypeVisitor6<java.lang.String,State>
Builds descriptors from TypeMirrors for both simple types and methods. Used byDeobfuscatorBuilderto construct client-to-server method mappings.
-
-
Constructor Summary
Constructors Constructor Description DescriptorBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringdefaultAction(javax.lang.model.type.TypeMirror x, State state)java.lang.StringvisitArray(javax.lang.model.type.ArrayType x, State state)Arrays aren't actually used anywhere in RequestFactory, but it's trivial to implement and might be useful later on.java.lang.StringvisitDeclared(javax.lang.model.type.DeclaredType x, State state)java.lang.StringvisitExecutable(javax.lang.model.type.ExecutableType x, State state)Only generates the method descriptor, which does not include the method's name.java.lang.StringvisitNoType(javax.lang.model.type.NoType x, State state)java.lang.StringvisitPrimitive(javax.lang.model.type.PrimitiveType x, State state)java.lang.StringvisitTypeVariable(javax.lang.model.type.TypeVariable x, State state)java.lang.StringvisitWildcard(javax.lang.model.type.WildcardType x, State state)
-
-
-
Method Detail
-
visitArray
public java.lang.String visitArray(javax.lang.model.type.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
public java.lang.String visitDeclared(javax.lang.model.type.DeclaredType x, State state)
-
visitExecutable
public java.lang.String visitExecutable(javax.lang.model.type.ExecutableType x, State state)Only generates the method descriptor, which does not include the method's name.
-
visitNoType
public java.lang.String visitNoType(javax.lang.model.type.NoType x, State state)
-
visitPrimitive
public java.lang.String visitPrimitive(javax.lang.model.type.PrimitiveType x, State state)
-
visitTypeVariable
public java.lang.String visitTypeVariable(javax.lang.model.type.TypeVariable x, State state)
-
visitWildcard
public java.lang.String visitWildcard(javax.lang.model.type.WildcardType x, State state)
-
-