Class AnnotationTypeUtil
- java.lang.Object
-
- android.databinding.tool.reflection.TypeUtil
-
- android.databinding.tool.reflection.annotation.AnnotationTypeUtil
-
public class AnnotationTypeUtil extends TypeUtil
-
-
Constructor Summary
Constructors Constructor Description AnnotationTypeUtil(AnnotationAnalyzer annotationAnalyzer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDescription(android.databinding.tool.reflection.ModelClass modelClass)java.lang.StringgetDescription(ModelMethod modelMethod)static AnnotationTypeUtilgetInstance()java.lang.StringtoJava(javax.lang.model.element.ExecutableElement executableElement, javax.lang.model.type.ExecutableType executableType)java.lang.StringtoJava(javax.lang.model.type.TypeMirror typeMirror)Returns the java representation of a TypeMirror type.-
Methods inherited from class android.databinding.tool.reflection.TypeUtil
toBinaryName
-
-
-
-
Constructor Detail
-
AnnotationTypeUtil
public AnnotationTypeUtil(AnnotationAnalyzer annotationAnalyzer)
-
-
Method Detail
-
getInstance
public static AnnotationTypeUtil getInstance()
-
getDescription
public java.lang.String getDescription(android.databinding.tool.reflection.ModelClass modelClass)
- Specified by:
getDescriptionin classTypeUtil
-
getDescription
public java.lang.String getDescription(ModelMethod modelMethod)
- Specified by:
getDescriptionin classTypeUtil
-
toJava
public java.lang.String toJava(@NonNull javax.lang.model.type.TypeMirror typeMirror)Returns the java representation of a TypeMirror type. For example, this may return "java.util.Set<java.lang.String>"
-
toJava
public java.lang.String toJava(javax.lang.model.element.ExecutableElement executableElement, javax.lang.model.type.ExecutableType executableType)
-
-