Class ModelField
- java.lang.Object
-
- android.databinding.tool.reflection.ModelField
-
- Direct Known Subclasses:
InjectedField
public abstract class ModelField extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ModelField()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description android.databinding.tool.BindableCompatgetBindableAnnotation()abstract android.databinding.tool.reflection.ModelClassgetFieldType()abstract java.lang.StringgetName()booleanisBindable()abstract booleanisFinal()abstract booleanisPublic()abstract booleanisStatic()
-
-
-
Method Detail
-
isBindable
public final boolean isBindable()
- Returns:
- Whether this field has been annotated with Bindable.
-
getName
public abstract java.lang.String getName()
- Returns:
- The field name.
-
isPublic
public abstract boolean isPublic()
- Returns:
- true if this field is marked public.
-
isStatic
public abstract boolean isStatic()
- Returns:
- true if this is a static field.
-
isFinal
public abstract boolean isFinal()
- Returns:
- true if the field was declared final.
-
getFieldType
public abstract android.databinding.tool.reflection.ModelClass getFieldType()
- Returns:
- The declared type of the field variable.
-
getBindableAnnotation
public android.databinding.tool.BindableCompat getBindableAnnotation()
- Returns:
- the Bindable annotation on the field or null if there isn't one.
-
-