android.databinding.tool
Class CallbackWrapper
java.lang.Object
android.databinding.tool.CallbackWrapper
public class CallbackWrapper
- extends java.lang.Object
As data-binding finds lambda expressions, it creates classes that can wrap those callbacks
into methods that can be called into the ViewDataBinding classes.
The model keeps track of these wrappers and at the end data-binding generates all of them.
These are stripped from library projects and re-generated.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SOURCE_ID
public static java.lang.String SOURCE_ID
ARG_PREFIX
public static java.lang.String ARG_PREFIX
klass
public final ModelClass klass
method
public final ModelMethod method
key
public final java.lang.String key
CallbackWrapper
public CallbackWrapper(ModelClass klass,
ModelMethod method)
prepare
public void prepare(java.lang.String className,
java.lang.String listenerMethodName)
getPackage
public java.lang.String getPackage()
getClassName
public java.lang.String getClassName()
getListenerInterfaceName
public java.lang.String getListenerInterfaceName()
getListenerMethodName
public java.lang.String getListenerMethodName()
uniqueKey
public static java.lang.String uniqueKey(ModelClass klass,
ModelMethod method)
getCannonicalName
public java.lang.String getCannonicalName()
getCannonicalListenerName
public java.lang.String getCannonicalListenerName()
constructForIdentifier
public java.lang.String constructForIdentifier(int listenerId)
getMinApi
public int getMinApi()