public T getViewAttribute(MethodIntf methodIntf, final Method method) { assert methodIntf != null : "methodIntf is null"; Method classMethod = resolveRealMethod(method); String[] methodParams = MethodInfoHelper.getCanonicalParameterTypes(classMethod); final String methodName = classMethod.getName(); ArrayKey methodParamsKey = new ArrayKey((Object[]) methodParams); T attr = get(get(get(perViewStyle3, methodIntf), methodName), methodParamsKey); if (attr != null) return attr; attr = get(get(perViewStyle2, methodIntf), methodName); if (attr != null) return attr; attr = get(perViewStyle1, methodIntf); if (attr != null) return attr; return null; }
T attr = get(get(get(perViewStyle3, methodIntf), methodName), methodParamsKey); if (attr != null) return attr; attr = get(get(perViewStyle2, methodIntf), methodName); if (attr != null) return attr; attr = get(perViewStyle1, methodIntf); if (attr != null) return attr; attr = get(get(get(style3, className), methodName), methodParamsKey); if (attr != null) return attr; attr = get(style2, methodName); if (attr != null) return attr; attr = get(style1, className); if (attr != null) return attr;
public List<T> getAllAttributes(MethodIntf methodIntf, Method method) { assert methodIntf != null : "methodIntf is null"; Method classMethod = resolveRealMethod(method); String[] methodParams = MethodInfoHelper.getCanonicalParameterTypes(classMethod); final String methodName = classMethod.getName(); final String className = classMethod.getDeclaringClass().getName(); final List<T> ret = new ArrayList<T>(); ArrayKey methodParamsKey = new ArrayKey((Object[]) methodParams); T attr = get(get(get(perViewStyle3, methodIntf), methodName), methodParamsKey); if (attr != null) ret.add(attr); attr = get(get(perViewStyle2, methodIntf), methodName); if (attr != null) ret.add(attr); attr = get(perViewStyle1, methodIntf); if (attr != null) ret.add(attr); attr = get(get(get(style3, className), methodName), methodParamsKey); if (attr != null) ret.add(attr); attr = get(style2, methodName); if (attr != null) ret.add(attr); attr = get(style1, className); if (attr != null) ret.add(attr); return ret; }
T attr = get(get(get(perViewStyle3, methodIntf), methodName), methodParamsKey); if (attr != null) return true; attr = get(get(perViewStyle2, methodIntf), methodName); if (attr != null) return true; attr = get(perViewStyle1, methodIntf); if (attr != null) return false; attr = get(get(get(style3, className), methodName), methodParamsKey); if (attr != null) return true; attr = get(style2, methodName); if (attr != null) return true; attr = get(style1, className); if (attr != null) return false;
public T getViewAttribute(MethodIntf methodIntf, String methodName, String... methodParams) { assert methodIntf != null : "methodIntf is null"; assert methodName != null : "methodName is null"; assert methodParams != null : "methodParams is null"; ArrayKey methodParamsKey = new ArrayKey((Object[]) methodParams); T attr = get(get(get(perViewStyle3, methodIntf), methodName), methodParamsKey); if (attr != null) return attr; attr = get(get(perViewStyle2, methodIntf), methodName); if (attr != null) return attr; attr = get(perViewStyle1, methodIntf); if (attr != null) return attr; return null; }
public T getAttribute(MethodIntf methodIntf, String className, String methodName, String... methodParams) { assert methodIntf != null : "methodIntf is null"; assert methodName != null : "methodName is null"; assert methodParams != null : "methodParams is null"; ArrayKey methodParamsKey = new ArrayKey((Object[]) methodParams); T attr = get(get(get(perViewStyle3, methodIntf), methodName), methodParamsKey); if (attr != null) return attr; attr = get(get(perViewStyle2, methodIntf), methodName); if (attr != null) return attr; attr = get(perViewStyle1, methodIntf); if (attr != null) return attr; attr = get(get(get(style3, className), methodName), methodParamsKey); if (attr != null) return attr; attr = get(style2, methodName); if (attr != null) return attr; attr = get(style1, className); if (attr != null) return attr; return defaultAttribute; }
public List<T> getAllAttributes(MethodIntf methodIntf, String className, String methodName, String... methodParams) { assert methodIntf != null : "methodIntf is null"; assert methodName != null : "methodName is null"; assert methodParams != null : "methodParams is null"; final List<T> ret = new ArrayList<T>(); ArrayKey methodParamsKey = new ArrayKey((Object[]) methodParams); T attr = get(get(get(perViewStyle3, methodIntf), methodName), methodParamsKey); if (attr != null) ret.add(attr); attr = get(get(perViewStyle2, methodIntf), methodName); if (attr != null) ret.add(attr); attr = get(perViewStyle1, methodIntf); if (attr != null) ret.add(attr); attr = get(get(get(style3, className), methodName), methodParamsKey); if (attr != null) ret.add(attr); attr = get(style2, methodName); if (attr != null) ret.add(attr); attr = get(style1, className); if (attr != null) ret.add(attr); return ret; }