Class ModelMethod

  • Direct Known Subclasses:
    InjectedMethod

    public abstract class ModelMethod
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ModelMethod()  
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      boolean acceptsArguments​(java.util.List<android.databinding.tool.reflection.ModelClass> args, boolean unwrapObservableFields)  
      android.databinding.tool.BindableCompat getBindableAnnotation()  
      abstract android.databinding.tool.reflection.ModelClass getDeclaringClass()  
      static int getImplicitConversionLevel​(android.databinding.tool.reflection.ModelClass primitive)  
      abstract java.lang.String getJniDescription()
      Returns the JNI description of the method which can be used to lookup it in SDK.
      abstract int getMinApi()
      Since when this method is available.
      abstract java.lang.String getName()  
      android.databinding.tool.reflection.ModelClass getParameterAt​(int index)  
      abstract android.databinding.tool.reflection.ModelClass[] getParameterTypes()  
      android.databinding.tool.reflection.ModelClass getReceiverType()  
      android.databinding.tool.reflection.ModelClass getReturnType()  
      abstract android.databinding.tool.reflection.ModelClass getReturnType​(java.util.List<android.databinding.tool.reflection.ModelClass> args)  
      abstract boolean isAbstract()  
      boolean isBetterArgMatchThan​(ModelMethod other, java.util.List<android.databinding.tool.reflection.ModelClass> args)  
      boolean isBindable()  
      static boolean isBoxingConversion​(android.databinding.tool.reflection.ModelClass class1, android.databinding.tool.reflection.ModelClass class2)  
      static boolean isImplicitConversion​(android.databinding.tool.reflection.ModelClass from, android.databinding.tool.reflection.ModelClass to)  
      abstract boolean isProtected()  
      abstract boolean isPublic()  
      abstract boolean isStatic()  
      abstract boolean isVarArgs()  
      abstract boolean isVoid()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ModelMethod

        public ModelMethod()
    • Method Detail

      • getDeclaringClass

        public abstract android.databinding.tool.reflection.ModelClass getDeclaringClass()
      • getReceiverType

        public android.databinding.tool.reflection.ModelClass getReceiverType()
      • getParameterTypes

        public abstract android.databinding.tool.reflection.ModelClass[] getParameterTypes()
      • getName

        public abstract java.lang.String getName()
      • getReturnType

        public abstract android.databinding.tool.reflection.ModelClass getReturnType​(java.util.List<android.databinding.tool.reflection.ModelClass> args)
      • isVoid

        public abstract boolean isVoid()
      • isPublic

        public abstract boolean isPublic()
      • isProtected

        public abstract boolean isProtected()
      • isStatic

        public abstract boolean isStatic()
      • isAbstract

        public abstract boolean isAbstract()
      • isBindable

        public final boolean isBindable()
        Returns:
        whether or not this method has been given the Bindable annotation.
      • getBindableAnnotation

        public android.databinding.tool.BindableCompat getBindableAnnotation()
        Returns:
        the Bindable annotation on the method or null if it doesn't exist.
      • getMinApi

        public abstract int getMinApi()
        Since when this method is available. Important for Binding expressions so that we don't call non-existing APIs when setting UI.
        Returns:
        The SDK_INT where this method was added. If it is not a framework method, should return 1.
      • getJniDescription

        public abstract java.lang.String getJniDescription()
        Returns the JNI description of the method which can be used to lookup it in SDK.
        See Also:
        TypeUtil
      • isVarArgs

        public abstract boolean isVarArgs()
        Returns:
        true if the final parameter is a varargs parameter.
      • acceptsArguments

        public boolean acceptsArguments​(java.util.List<android.databinding.tool.reflection.ModelClass> args,
                                        boolean unwrapObservableFields)
        Parameters:
        args - The arguments to the method
        unwrapObservableFields - If true, will match against unwrapped observable field arguments as well as exact matches of arguments.
        Returns:
        Whether the arguments would be accepted as parameters to this method.
      • isBetterArgMatchThan

        public boolean isBetterArgMatchThan​(ModelMethod other,
                                            java.util.List<android.databinding.tool.reflection.ModelClass> args)
      • getReturnType

        public android.databinding.tool.reflection.ModelClass getReturnType()
      • getParameterAt

        public android.databinding.tool.reflection.ModelClass getParameterAt​(int index)
      • isBoxingConversion

        public static boolean isBoxingConversion​(android.databinding.tool.reflection.ModelClass class1,
                                                 android.databinding.tool.reflection.ModelClass class2)
      • getImplicitConversionLevel

        public static int getImplicitConversionLevel​(android.databinding.tool.reflection.ModelClass primitive)
      • isImplicitConversion

        public static boolean isImplicitConversion​(android.databinding.tool.reflection.ModelClass from,
                                                   android.databinding.tool.reflection.ModelClass to)