android.databinding.tool.reflection
Class InjectedBindingClassMethod
java.lang.Object
android.databinding.tool.reflection.ModelMethod
android.databinding.tool.reflection.InjectedBindingClassMethod
public class InjectedBindingClassMethod
- 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)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InjectedBindingClassMethod
public InjectedBindingClassMethod(InjectedBindingClass containingClass,
java.lang.String name,
java.lang.String returnType,
java.lang.String parameter)
getDeclaringClass
public ModelClass getDeclaringClass()
- Specified by:
getDeclaringClass
in class ModelMethod
getParameterTypes
public ModelClass[] getParameterTypes()
- Specified by:
getParameterTypes
in class ModelMethod
getName
public java.lang.String getName()
- Specified by:
getName
in class ModelMethod
getReturnType
public ModelClass getReturnType(java.util.List<ModelClass> args)
- Specified by:
getReturnType
in class ModelMethod
isVoid
public boolean isVoid()
- Specified by:
isVoid
in class ModelMethod
isPublic
public boolean isPublic()
- Specified by:
isPublic
in class ModelMethod
isProtected
public boolean isProtected()
- Specified by:
isProtected
in class ModelMethod
isStatic
public boolean isStatic()
- Specified by:
isStatic
in class ModelMethod
isAbstract
public boolean isAbstract()
- Specified by:
isAbstract
in class ModelMethod
isBindable
public boolean isBindable()
- Specified by:
isBindable
in class ModelMethod
- Returns:
- whether or not this method has been given the
Bindable
annotation.
getMinApi
public int getMinApi()
- Description copied from class:
ModelMethod
- Since when this method is available. Important for Binding expressions so that we don't
call non-existing APIs when setting UI.
- Specified by:
getMinApi
in class ModelMethod
- 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:
ModelMethod
- Returns the JNI description of the method which can be used to lookup it in SDK.
- Specified by:
getJniDescription
in class ModelMethod
- See Also:
TypeUtil
isVarArgs
public boolean isVarArgs()
- Specified by:
isVarArgs
in class ModelMethod
- Returns:
- true if the final parameter is a varargs parameter.