public class APTCodeModelHelper extends Object
Constructor and Description |
---|
APTCodeModelHelper() |
Modifier and Type | Method and Description |
---|---|
void |
addAnnotation(com.sun.codemodel.JAnnotatable annotatable,
AnnotationMirror annotationMirror,
GeneratedClassHolder holder) |
void |
addNonAAAnotations(com.sun.codemodel.JAnnotatable annotatable,
List<? extends AnnotationMirror> annotationMirrors,
GeneratedClassHolder holder) |
void |
addSuppressWarnings(com.sun.codemodel.JAnnotatable generatedElement,
String annotationValue) |
void |
callSuperMethod(com.sun.codemodel.JMethod superMethod,
GeneratedClassHolder holder,
com.sun.codemodel.JBlock callBlock) |
void |
copy(com.sun.codemodel.JBlock body,
com.sun.codemodel.JBlock newBody) |
com.sun.codemodel.JDefinedClass |
createDelegatingAnonymousRunnableClass(EComponentHolder holder,
com.sun.codemodel.JBlock previousBody) |
void |
generifyStaticHelper(GeneratedClassHolder holder,
com.sun.codemodel.JMethod staticHelper,
TypeElement annotatedClass) |
TypeMirror |
getActualType(Element element,
GeneratedClassHolder holder) |
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.JInvocation |
getSuperCall(GeneratedClassHolder holder,
com.sun.codemodel.JMethod superMethod) |
boolean |
hasAnnotation(com.sun.codemodel.JAnnotatable annotatable,
Class<? extends Annotation> annotationClass) |
com.sun.codemodel.JMethod |
implementMethod(GeneratedClassHolder holder,
List<ExecutableElement> methods,
String methodName,
String returnType,
boolean finalParams,
String... parameterTypes) |
com.sun.codemodel.JMethod |
implementMethod(GeneratedClassHolder holder,
List<ExecutableElement> methods,
String methodName,
String returnType,
String... parameterTypes) |
com.sun.codemodel.JExpression |
litObject(Object o) |
com.sun.codemodel.JInvocation |
newBeanOrEBean(GeneratedClassHolder holder,
DeclaredType beanType,
com.sun.codemodel.JVar contextVar) |
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) |
public com.sun.codemodel.JClass typeMirrorToJClass(TypeMirror type, GeneratedClassHolder holder)
public com.sun.codemodel.JClass typeBoundsToJClass(GeneratedClassHolder holder, List<? extends TypeMirror> bounds)
public com.sun.codemodel.JMethod overrideAnnotatedMethod(ExecutableElement executableElement, GeneratedClassHolder holder)
public void generifyStaticHelper(GeneratedClassHolder holder, com.sun.codemodel.JMethod staticHelper, TypeElement annotatedClass)
public void addNonAAAnotations(com.sun.codemodel.JAnnotatable annotatable, List<? extends AnnotationMirror> annotationMirrors, GeneratedClassHolder holder)
public void addAnnotation(com.sun.codemodel.JAnnotatable annotatable, AnnotationMirror annotationMirror, GeneratedClassHolder holder)
public boolean hasAnnotation(com.sun.codemodel.JAnnotatable annotatable, Class<? extends Annotation> annotationClass)
public com.sun.codemodel.JInvocation getSuperCall(GeneratedClassHolder holder, com.sun.codemodel.JMethod superMethod)
public void callSuperMethod(com.sun.codemodel.JMethod superMethod, GeneratedClassHolder holder, com.sun.codemodel.JBlock callBlock)
public com.sun.codemodel.JBlock removeBody(com.sun.codemodel.JMethod method)
public void copy(com.sun.codemodel.JBlock body, com.sun.codemodel.JBlock newBody)
public void replaceSuperCall(com.sun.codemodel.JMethod method, com.sun.codemodel.JBlock replacement)
public String getIdStringFromIdFieldRef(com.sun.codemodel.JFieldRef idRef)
public com.sun.codemodel.JDefinedClass createDelegatingAnonymousRunnableClass(EComponentHolder holder, com.sun.codemodel.JBlock previousBody)
public List<ExecutableElement> getMethods(TypeElement typeElement)
typeElement
- public com.sun.codemodel.JMethod implementMethod(GeneratedClassHolder holder, List<ExecutableElement> methods, String methodName, String returnType, String... parameterTypes)
public com.sun.codemodel.JMethod implementMethod(GeneratedClassHolder holder, List<ExecutableElement> methods, String methodName, String returnType, boolean finalParams, String... parameterTypes)
public com.sun.codemodel.JInvocation newBeanOrEBean(GeneratedClassHolder holder, DeclaredType beanType, com.sun.codemodel.JVar contextVar)
public com.sun.codemodel.JExpression litObject(Object o)
public TypeMirror getActualType(Element element, GeneratedClassHolder holder)
public void addSuppressWarnings(com.sun.codemodel.JAnnotatable generatedElement, String annotationValue)
Copyright © 2010-2015. All Rights Reserved.