org.androidannotations.helper
Class APTCodeModelHelper
java.lang.Object
org.androidannotations.helper.APTCodeModelHelper
public class APTCodeModelHelper
- extends Object
Method Summary |
void |
callSuperMethod(com.sun.codemodel.JMethod superMethod,
GeneratedClassHolder holder,
com.sun.codemodel.JBlock callBlock)
|
com.sun.codemodel.JDefinedClass |
createDelegatingAnonymousRunnableClass(EComponentHolder holder,
com.sun.codemodel.JMethod delegatedMethod)
|
String |
getIdStringFromIdFieldRef(com.sun.codemodel.JFieldRef idRef)
|
List<ExecutableElement> |
getMethods(TypeElement typeElement)
Gets all of the methods of the class and includes the methods of any
implemented interfaces. |
com.sun.codemodel.JMethod |
implementMethod(GeneratedClassHolder holder,
List<ExecutableElement> methods,
String methodName,
String returnType,
String... parameterTypes)
|
com.sun.codemodel.JMethod |
overrideAnnotatedMethod(ExecutableElement executableElement,
GeneratedClassHolder holder)
|
com.sun.codemodel.JBlock |
removeBody(com.sun.codemodel.JMethod method)
|
void |
replaceSuperCall(com.sun.codemodel.JMethod method,
com.sun.codemodel.JBlock replacement)
|
com.sun.codemodel.JClass |
typeBoundsToJClass(GeneratedClassHolder holder,
List<? extends TypeMirror> bounds)
|
com.sun.codemodel.JClass |
typeMirrorToJClass(TypeMirror type,
GeneratedClassHolder holder)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
APTCodeModelHelper
public APTCodeModelHelper()
typeMirrorToJClass
public com.sun.codemodel.JClass typeMirrorToJClass(TypeMirror type,
GeneratedClassHolder holder)
typeBoundsToJClass
public com.sun.codemodel.JClass typeBoundsToJClass(GeneratedClassHolder holder,
List<? extends TypeMirror> bounds)
overrideAnnotatedMethod
public com.sun.codemodel.JMethod overrideAnnotatedMethod(ExecutableElement executableElement,
GeneratedClassHolder holder)
callSuperMethod
public void callSuperMethod(com.sun.codemodel.JMethod superMethod,
GeneratedClassHolder holder,
com.sun.codemodel.JBlock callBlock)
removeBody
public com.sun.codemodel.JBlock removeBody(com.sun.codemodel.JMethod method)
replaceSuperCall
public void replaceSuperCall(com.sun.codemodel.JMethod method,
com.sun.codemodel.JBlock replacement)
getIdStringFromIdFieldRef
public String getIdStringFromIdFieldRef(com.sun.codemodel.JFieldRef idRef)
createDelegatingAnonymousRunnableClass
public com.sun.codemodel.JDefinedClass createDelegatingAnonymousRunnableClass(EComponentHolder holder,
com.sun.codemodel.JMethod delegatedMethod)
getMethods
public List<ExecutableElement> getMethods(TypeElement typeElement)
- Gets all of the methods of the class and includes the methods of any
implemented interfaces.
- Parameters:
typeElement
-
- Returns:
- full list of methods.
implementMethod
public com.sun.codemodel.JMethod implementMethod(GeneratedClassHolder holder,
List<ExecutableElement> methods,
String methodName,
String returnType,
String... parameterTypes)
Copyright © 2010-2014. All Rights Reserved.