Class InjectedField
- java.lang.Object
-
- android.databinding.tool.reflection.ModelField
-
- android.databinding.tool.reflection.InjectedField
-
public class InjectedField extends ModelField
A class that can be used by ModelAnalyzer without any backing model. This is used for fields on ViewDataBinding subclasses that haven't been generated yet.- See Also:
ModelAnalyzer#injectViewDataBinding(String, Map, Map, java.util.HashMap)
-
-
Constructor Summary
Constructors Constructor Description InjectedField(java.lang.String name, java.lang.String type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description android.databinding.tool.reflection.ModelClassgetFieldType()java.lang.StringgetName()booleanisFinal()booleanisPublic()booleanisStatic()-
Methods inherited from class android.databinding.tool.reflection.ModelField
getBindableAnnotation, isBindable
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getNamein classModelField- Returns:
- The field name.
-
isPublic
public boolean isPublic()
- Specified by:
isPublicin classModelField- Returns:
- true if this field is marked public.
-
isStatic
public boolean isStatic()
- Specified by:
isStaticin classModelField- Returns:
- true if this is a static field.
-
isFinal
public boolean isFinal()
- Specified by:
isFinalin classModelField- Returns:
- true if the field was declared final.
-
getFieldType
public android.databinding.tool.reflection.ModelClass getFieldType()
- Specified by:
getFieldTypein classModelField- Returns:
- The declared type of the field variable.
-
-