@Accessor("mFlags") void setFlags(int flags); }
private AccessorMethodWriter(Method method, Accessor accessor) { super(method); targetFieldName = accessor.value(); this.fieldRefName = "field$" + targetFieldName; String methodName = method.getName(); if (methodName.startsWith("get")) { if (method.getReturnType().equals(void.class)) { throw new IllegalArgumentException(method + " should have a non-void return type"); } if (method.getParameterCount() != 0) { throw new IllegalArgumentException(method + " should take no parameters"); } isSetter = false; } else if (methodName.startsWith("set")) { if (!method.getReturnType().equals(void.class)) { throw new IllegalArgumentException(method + " should have a void return type"); } if (method.getParameterCount() != 1) { throw new IllegalArgumentException(method + " should take a single parameter"); } isSetter = true; } else { throw new IllegalArgumentException( methodName + " doesn't appear to be a setter or a getter"); } }
private AccessorMethodWriter(Method method, Accessor accessor) { super(method); targetFieldName = accessor.value(); this.fieldRefName = "field$" + targetFieldName; String methodName = method.getName(); if (methodName.startsWith("get")) { if (method.getReturnType().equals(void.class)) { throw new IllegalArgumentException(method + " should have a non-void return type"); } if (method.getParameterCount() != 0) { throw new IllegalArgumentException(method + " should take no parameters"); } isSetter = false; } else if (methodName.startsWith("set")) { if (!method.getReturnType().equals(void.class)) { throw new IllegalArgumentException(method + " should have a void return type"); } if (method.getParameterCount() != 1) { throw new IllegalArgumentException(method + " should take a single parameter"); } isSetter = true; } else { throw new IllegalArgumentException( methodName + " doesn't appear to be a setter or a getter"); } }
@Accessor("SYSTEM_SERVICE_FETCHERS") Map<String, Object> getSystemServiceFetchers(); }
@Accessor("mMessages") void setMessages(Message msg); }
@Accessor("mWindowId") void setWindowId(WindowId windowId); }
@Accessor("mInstrumentation") void setInstrumentation(Instrumentation instrumentation); }
@Accessor("mWindow") void setWindow(Window window); }
@Accessor("mResources") void setResources(Resources resources); }
@Accessor("mCachedInstance") void setCachedInstance(Object o); }
@Accessor("mCachedInstance") void setCachedInstance(Object o); }
@Accessor("mCachedInstance") void setCachedInstance(Object o); }
@Accessor("mIWindowId") void setIWindowId(IWindowId iWindowId);
@Accessor("mApplication") void setApplication(Application application);
@Accessor("percent") void setPercent(char c);
@Accessor("activity") Object getActivity(); }
@Accessor("mExternalStorageAndroidData") void setExternalStorageAndroidData(File file); }
@Accessor("processName") void setProcessName(String name); }
@Accessor("mPath") String getPath(); }
@Accessor("mNativePtr") long getNativePtr(); }