/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/reflection/ |
D | ModelMethod.java | 23 public abstract ModelClass getDeclaringClass(); in getDeclaringClass() 25 public abstract ModelClass[] getParameterTypes(); in getParameterTypes() 29 public abstract ModelClass getReturnType(List<ModelClass> args); in getReturnType() 68 public boolean acceptsArguments(List<ModelClass> args) { in acceptsArguments() 70 ModelClass[] parameterTypes = getParameterTypes(); in acceptsArguments() 77 ModelClass parameterType = getParameter(i, parameterTypes); in acceptsArguments() 78 ModelClass arg = args.get(i); in acceptsArguments() 87 public boolean isBetterArgMatchThan(ModelMethod other, List<ModelClass> args) { in isBetterArgMatchThan() 88 final ModelClass[] parameterTypes = getParameterTypes(); in isBetterArgMatchThan() 89 final ModelClass[] otherParameterTypes = other.getParameterTypes(); in isBetterArgMatchThan() [all …]
|
D | ModelAnalyzer.java | 73 private ModelClass[] mListTypes; 74 private ModelClass mMapType; 75 private ModelClass mStringType; 76 private ModelClass mObjectType; 77 private ModelClass mObservableType; 78 private ModelClass mObservableListType; 79 private ModelClass mObservableMapType; 80 private ModelClass[] mObservableFieldTypes; 81 private ModelClass mViewBindingType; 82 private ModelClass mViewStubType; [all …]
|
D | ModelClass.java | 30 public abstract class ModelClass { class 45 public abstract ModelClass getComponentType(); in getComponentType() 52 for (ModelClass listType : ModelAnalyzer.getInstance().getListTypes()) { in isList() 136 public abstract List<ModelClass> getTypeArguments(); in getTypeArguments() 192 ModelClass erasure = erasure(); in isObservableField() 193 for (ModelClass observableField : ModelAnalyzer.getInstance().getObservableFieldTypes()) { in isObservableField() 213 public abstract ModelClass unbox(); in unbox() 222 public abstract ModelClass box(); in box() 233 public abstract boolean isAssignableFrom(ModelClass that); in isAssignableFrom() 248 public ModelMethod[] getMethods(String name, List<ModelClass> args, boolean staticOnly) { in getMethods() [all …]
|
D | Callable.java | 35 public final ModelClass resolvedType; 41 public Callable(Type type, String name, String setterName, ModelClass resolvedType, in Callable()
|
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/store/ |
D | SetterStore.java | 20 import android.databinding.tool.reflection.ModelClass; 66 ModelClass view1 = mClassAnalyzer.findClass(o1.mKey.viewType, null).erasure(); 67 ModelClass view2 = mClassAnalyzer.findClass(o2.mKey.viewType, null).erasure(); 95 ModelClass type1 = mClassAnalyzer 97 ModelClass type2 = mClassAnalyzer 267 private static ModelClass eraseType(ModelClass modelClass) { in eraseType() 298 private static boolean hasTypeVar(ModelClass type) { in hasTypeVar() 304 List<ModelClass> typeArguments = type.getTypeArguments(); in hasTypeVar() 308 for (ModelClass arg : typeArguments) { in hasTypeVar() 461 ModelClass viewType, ModelClass[] valueType) { in getMultiAttributeSetterCalls() [all …]
|
/frameworks/data-binding/compiler/src/test/java/android/databinding/tool/reflection/java/ |
D | JavaMethod.java | 18 import android.databinding.tool.reflection.ModelClass; 36 public ModelClass getDeclaringClass() { in getDeclaringClass() 41 public ModelClass[] getParameterTypes() { in getParameterTypes() 43 ModelClass[] parameterClasses = new ModelClass[parameterTypes.length]; in getParameterTypes() 56 public ModelClass getReturnType(List<ModelClass> args) { in getReturnType()
|
D | JavaClass.java | 16 import android.databinding.tool.reflection.ModelClass; 25 public class JavaClass extends ModelClass { 52 public ModelClass getComponentType() { in getComponentType() 118 public List<ModelClass> getTypeArguments() { in getTypeArguments() 143 public ModelClass unbox() { in unbox() 198 public boolean isAssignableFrom(ModelClass that) { in isAssignableFrom() 204 public ModelClass getSuperclass() { in getSuperclass() 217 public ModelClass erasure() { in erasure()
|
D | JavaAnalyzer.java | 22 import android.databinding.tool.reflection.ModelClass; 70 protected ModelClass[] getObservableFieldTypes() { in getObservableFieldTypes() 71 return new ModelClass[0]; in getObservableFieldTypes() 75 public ModelClass findClass(String className, Map<String, String> imports) { in findClass() 111 public ModelClass findClass(Class classType) { in findClass()
|
D | JavaField.java | 17 import android.databinding.tool.reflection.ModelClass; 56 public ModelClass getFieldType() { in getFieldType()
|
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/ |
D | Binding.java | 24 import android.databinding.tool.reflection.ModelClass; 58 final ModelClass listenerParameter = getListenerParameter(mTarget, mName, mExpr); in resolveListeners() 91 ModelClass viewType = mTarget.getResolvedType(); in resolveSetterCall() 95 ModelClass viewStubProxy = modelAnalyzer. in resolveSetterCall() 114 private static ModelClass getListenerParameter(BindingTarget target, String name, Expr expr) { in getListenerParameter() 115 ModelClass viewType = target.getResolvedType(); in getListenerParameter() 118 ModelClass objectParameter = modelAnalyzer.findClass(Object.class); in getListenerParameter() 122 ModelClass viewStubProxy = modelAnalyzer. in getListenerParameter() 140 new ModelClass[] {modelAnalyzer.findClass(Object.class)}); in getListenerParameter() 232 public ModelClass[] getParameterTypes() { in getParameterTypes() [all …]
|
D | BindingTarget.java | 25 import android.databinding.tool.reflection.ModelClass; 42 ModelClass mResolvedClass; 110 public ModelClass getResolvedType() { in getResolvedType() 175 final ModelClass[] types = new ModelClass[mBindings.size()]; in resolveMultiSetters()
|
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/reflection/annotation/ |
D | AnnotationMethod.java | 19 import android.databinding.tool.reflection.ModelClass; 43 ModelClass mReceiverType; 53 public ModelClass getDeclaringClass() { in getDeclaringClass() 64 private ModelClass findReceiverType(DeclaredType subType) { in findReceiverType() 69 ModelClass inSuper = findReceiverType(declaredType); in findReceiverType() 97 public ModelClass[] getParameterTypes() { in getParameterTypes() 99 ModelClass[] parameterTypes = new ModelClass[parameters.size()]; in getParameterTypes() 112 public ModelClass getReturnType(List<ModelClass> args) { in getReturnType()
|
D | AnnotationClass.java | 19 import android.databinding.tool.reflection.ModelClass; 48 class AnnotationClass extends ModelClass { 76 ModelClass parameter = method.getParameterTypes()[0]; in getComponentType() 78 ArrayList<ModelClass> parameters = new ArrayList<ModelClass>(1); in getComponentType() 230 public List<ModelClass> getTypeArguments() { in getTypeArguments() 231 List<ModelClass> types = null; in getTypeArguments() 236 types = new ArrayList<ModelClass>(); in getTypeArguments() 288 public boolean isAssignableFrom(ModelClass that) { in isAssignableFrom() 334 public ModelClass erasure() { in erasure()
|
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/expr/ |
D | InstanceOfExpr.java | 20 import android.databinding.tool.reflection.ModelClass; 27 ModelClass mType; 48 protected ModelClass resolveType(ModelAnalyzer modelAnalyzer) { in resolveType() 62 public ModelClass getType() { in getType()
|
D | BracketExpr.java | 20 import android.databinding.tool.reflection.ModelClass; 40 protected ModelClass resolveType(ModelAnalyzer modelAnalyzer) { in resolveType() 41 ModelClass targetType = getTarget().getResolvedType(); in resolveType() 104 ModelClass listType = ModelAnalyzer.getInstance().findClass(java.util.List.class). in generateCode() 106 ModelClass targetType = getTarget().getResolvedType().erasure(); in generateCode()
|
D | ResourceExpr.java | 19 import android.databinding.tool.reflection.ModelClass; 40 private Map<String, ModelClass> mResourceToTypeMapping; 60 private Map<String, ModelClass> getResourceToTypeMapping(ModelAnalyzer modelAnalyzer) { in getResourceToTypeMapping() 63 mResourceToTypeMapping = new HashMap<String, ModelClass>(); in getResourceToTypeMapping() 99 protected ModelClass resolveType(ModelAnalyzer modelAnalyzer) { in resolveType() 100 final Map<String, ModelClass> mapping = getResourceToTypeMapping( in resolveType() 102 final ModelClass modelClass = mapping.get(mResourceType); in resolveType()
|
D | ListenerExpr.java | 20 import android.databinding.tool.reflection.ModelClass; 38 private final ModelClass mListenerType; 41 ListenerExpr(Expr expr, String name, ModelClass listenerType, ModelMethod method) { in ListenerExpr() 49 protected ModelClass resolveType(ModelAnalyzer modelAnalyzer) { in resolveType()
|
D | ViewFieldExpr.java | 21 import android.databinding.tool.reflection.ModelClass; 49 protected ModelClass resolveType(ModelAnalyzer modelAnalyzer) { in resolveType() 50 final ModelClass type = modelAnalyzer.findClass(mBindingTarget.getInterfaceType(), null); in resolveType()
|
D | BuiltInVariableExpr.java | 20 import android.databinding.tool.reflection.ModelClass; 41 protected ModelClass resolveType(ModelAnalyzer modelAnalyzer) { in resolveType() 42 ModelClass modelClass = super.resolveType(modelAnalyzer); in resolveType()
|
D | FieldAccessExpr.java | 27 import android.databinding.tool.reflection.ModelClass; 114 public Expr resolveListeners(ModelClass listener, Expr parent) { in resolveListeners() 118 final ModelClass childType = getChild().getResolvedType(); in resolveListeners() 143 final ModelClass[] listenerParameters = listenerMethod.getParameterTypes(); in resolveListeners() 181 private boolean acceptsParameters(ModelMethod method, ModelClass[] listenerParameters) { in acceptsParameters() 182 ModelClass[] parameters = method.getParameterTypes(); in acceptsParameters() 242 protected ModelClass resolveType(ModelAnalyzer modelAnalyzer) { in resolveType() 250 ModelClass resolvedType = child.getResolvedType(); in resolveType() 317 final ModelClass targetClass = expr.getResolvedType(); in resolveTwoWayExpressions()
|
D | MethodCallExpr.java | 26 import android.databinding.tool.reflection.ModelClass; 84 protected ModelClass resolveType(ModelAnalyzer modelAnalyzer) { in resolveType() 86 List<ModelClass> args = new ArrayList<ModelClass>(); in resolveType()
|
D | ArgListExpr.java | 20 import android.databinding.tool.reflection.ModelClass; 51 protected ModelClass resolveType(ModelAnalyzer modelAnalyzer) { in resolveType()
|
D | TernaryExpr.java | 20 import android.databinding.tool.reflection.ModelClass; 64 protected ModelClass resolveType(ModelAnalyzer modelAnalyzer) { in resolveType() 77 final ModelClass type = expr.getResolvedType(); in isNullLiteral()
|
D | GroupExpr.java | 20 import android.databinding.tool.reflection.ModelClass; 31 protected ModelClass resolveType(ModelAnalyzer modelAnalyzer) { in resolveType()
|
/frameworks/data-binding/compiler/src/test/java/android/databinding/tool/reflection/ |
D | SdkVersionTest.java | 36 … ModelClass view = ModelAnalyzer.getInstance().findClass("android.widget.TextView", null); in testApiVersionsFromResources() 47 ModelClass view = ModelAnalyzer.getInstance().findClass("android.view.View", null); in testNewApiMethod() 54 ModelClass view = ModelAnalyzer.getInstance() in testCustomCode() 62 ModelClass view = ModelAnalyzer.getInstance() in testSetForeground()
|