Class InjectedMethod
- java.lang.Object
-
- android.databinding.tool.reflection.ModelMethod
-
- android.databinding.tool.reflection.InjectedMethod
-
public class InjectedMethod extends ModelMethod
A class that can be used by ModelAnalyzer without any backing model. This is used for methods on ViewDataBinding subclasses that haven't been generated yet.- See Also:
ModelAnalyzer#injectViewDataBinding(String, Map, Map, java.util.Map)
-
-
Constructor Summary
Constructors Constructor Description InjectedMethod(android.databinding.tool.reflection.InjectedClass containingClass, boolean isStatic, java.lang.String name, android.databinding.tool.reflection.ImportBag imports, java.lang.String returnType, java.lang.String... parameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description android.databinding.tool.reflection.ModelClassgetDeclaringClass()java.lang.StringgetJniDescription()Returns the JNI description of the method which can be used to lookup it in SDK.intgetMinApi()Since when this method is available.java.lang.StringgetName()android.databinding.tool.reflection.ModelClass[]getParameterTypes()android.databinding.tool.reflection.ModelClassgetReturnType(java.util.List<android.databinding.tool.reflection.ModelClass> args)booleanisAbstract()booleanisProtected()booleanisPublic()booleanisStatic()booleanisVarArgs()booleanisVoid()java.lang.StringtoString()-
Methods inherited from class android.databinding.tool.reflection.ModelMethod
acceptsArguments, getBindableAnnotation, getImplicitConversionLevel, getParameterAt, getReceiverType, getReturnType, isBetterArgMatchThan, isBindable, isBoxingConversion, isImplicitConversion
-
-
-
-
Method Detail
-
getDeclaringClass
public android.databinding.tool.reflection.ModelClass getDeclaringClass()
- Specified by:
getDeclaringClassin classModelMethod
-
getParameterTypes
public android.databinding.tool.reflection.ModelClass[] getParameterTypes()
- Specified by:
getParameterTypesin classModelMethod
-
getName
public java.lang.String getName()
- Specified by:
getNamein classModelMethod
-
getReturnType
public android.databinding.tool.reflection.ModelClass getReturnType(java.util.List<android.databinding.tool.reflection.ModelClass> args)
- Specified by:
getReturnTypein classModelMethod
-
isVoid
public boolean isVoid()
- Specified by:
isVoidin classModelMethod
-
isPublic
public boolean isPublic()
- Specified by:
isPublicin classModelMethod
-
isProtected
public boolean isProtected()
- Specified by:
isProtectedin classModelMethod
-
isStatic
public boolean isStatic()
- Specified by:
isStaticin classModelMethod
-
isAbstract
public boolean isAbstract()
- Specified by:
isAbstractin classModelMethod
-
getMinApi
public int getMinApi()
Description copied from class:ModelMethodSince when this method is available. Important for Binding expressions so that we don't call non-existing APIs when setting UI.- Specified by:
getMinApiin classModelMethod- Returns:
- The SDK_INT where this method was added. If it is not a framework method, should return 1.
-
getJniDescription
public java.lang.String getJniDescription()
Description copied from class:ModelMethodReturns the JNI description of the method which can be used to lookup it in SDK.- Specified by:
getJniDescriptionin classModelMethod- See Also:
TypeUtil
-
isVarArgs
public boolean isVarArgs()
- Specified by:
isVarArgsin classModelMethod- Returns:
- true if the final parameter is a varargs parameter.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-