org.androidannotations.helper
Class RestAnnotationHelper

java.lang.Object
  extended by org.androidannotations.helper.AnnotationHelper
      extended by org.androidannotations.helper.TargetAnnotationHelper
          extended by org.androidannotations.helper.RestAnnotationHelper

public class RestAnnotationHelper
extends TargetAnnotationHelper


Constructor Summary
RestAnnotationHelper(ProcessingEnvironment processingEnv, String annotationName)
           
 
Method Summary
 String acceptedHeaders(ExecutableElement executableElement)
           
 com.sun.codemodel.JExpression declareHttpEntity(ProcessHolder holder, com.sun.codemodel.JBlock body, com.sun.codemodel.JVar entitySentToServer, com.sun.codemodel.JVar httpHeaders)
           
 com.sun.codemodel.JVar declareHttpHeaders(ExecutableElement executableElement, RestHolder holder, com.sun.codemodel.JBlock body)
           
 com.sun.codemodel.JVar declareUrlVariables(ExecutableElement element, RestHolder holder, com.sun.codemodel.JBlock methodBody, TreeMap<String,com.sun.codemodel.JVar> methodParams)
           
 Set<String> extractUrlVariableNames(ExecutableElement element)
           
 com.sun.codemodel.JVar getEntitySentToServer(ExecutableElement element, TreeMap<String,com.sun.codemodel.JVar> params)
           
 com.sun.codemodel.JExpression getResponseClass(Element element, RestHolder holder)
           
protected  String plainName(com.sun.codemodel.JClass jClass)
           
 boolean requiredAuthentication(ExecutableElement executableElement)
           
 String[] requiredCookies(ExecutableElement executableElement)
           
 String[] requiredHeaders(ExecutableElement executableElement)
           
static String[] requiredUrlCookies(ExecutableElement executableElement)
           
 com.sun.codemodel.JClass retrieveResponseClass(TypeMirror returnType, RestHolder holder)
           
 String[] settingCookies(ExecutableElement executableElement)
           
 void urlVariableNamesExistInParameters(ExecutableElement element, Set<String> variableNames, IsValid valid)
           
 void urlVariableNamesExistInParametersAndHasNoOneMoreParameter(ExecutableElement element, IsValid valid)
           
 void urlVariableNamesExistInParametersAndHasOnlyOneMoreParameter(ExecutableElement element, IsValid valid)
           
 
Methods inherited from class org.androidannotations.helper.TargetAnnotationHelper
actionName, annotationName, annotationName, annotationName, extractAnnotationClassParameter, extractAnnotationParameter, extractAnnotationValueParameter, getTarget, printAnnotationError, printAnnotationWarning
 
Methods inherited from class org.androidannotations.helper.AnnotationHelper
actionName, defaultResIdValue, defaultResName, enclosingElementHasEnhancedComponentAnnotation, extractAnnotationClassArrayParameter, extractAnnotationClassParameter, extractAnnotationClassParameter, extractAnnotationFieldRefs, extractAnnotationParameter, extractAnnotationResIdValueParameter, extractAnnotationResNameParameter, extractAnnotationResources, extractElementName, findAnnotationMirror, getElementUtils, getTypeUtils, hasOneOfClassAnnotations, hasOneOfClassAnnotations, isAbstract, isAnnotation, isFinal, isInterface, isPrivate, isPublic, isSubtype, isSubtype, isSynchronized, isTopLevel, printAnnotationError, printAnnotationMessage, printAnnotationWarning, printError, typeElementFromQualifiedName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestAnnotationHelper

public RestAnnotationHelper(ProcessingEnvironment processingEnv,
                            String annotationName)
Method Detail

urlVariableNamesExistInParameters

public void urlVariableNamesExistInParameters(ExecutableElement element,
                                              Set<String> variableNames,
                                              IsValid valid)

urlVariableNamesExistInParametersAndHasNoOneMoreParameter

public void urlVariableNamesExistInParametersAndHasNoOneMoreParameter(ExecutableElement element,
                                                                      IsValid valid)

urlVariableNamesExistInParametersAndHasOnlyOneMoreParameter

public void urlVariableNamesExistInParametersAndHasOnlyOneMoreParameter(ExecutableElement element,
                                                                        IsValid valid)

extractUrlVariableNames

public Set<String> extractUrlVariableNames(ExecutableElement element)

declareUrlVariables

public com.sun.codemodel.JVar declareUrlVariables(ExecutableElement element,
                                                  RestHolder holder,
                                                  com.sun.codemodel.JBlock methodBody,
                                                  TreeMap<String,com.sun.codemodel.JVar> methodParams)

acceptedHeaders

public String acceptedHeaders(ExecutableElement executableElement)

requiredHeaders

public String[] requiredHeaders(ExecutableElement executableElement)

requiredCookies

public String[] requiredCookies(ExecutableElement executableElement)

requiredUrlCookies

public static String[] requiredUrlCookies(ExecutableElement executableElement)

settingCookies

public String[] settingCookies(ExecutableElement executableElement)

requiredAuthentication

public boolean requiredAuthentication(ExecutableElement executableElement)

declareHttpHeaders

public com.sun.codemodel.JVar declareHttpHeaders(ExecutableElement executableElement,
                                                 RestHolder holder,
                                                 com.sun.codemodel.JBlock body)

getEntitySentToServer

public com.sun.codemodel.JVar getEntitySentToServer(ExecutableElement element,
                                                    TreeMap<String,com.sun.codemodel.JVar> params)

declareHttpEntity

public com.sun.codemodel.JExpression declareHttpEntity(ProcessHolder holder,
                                                       com.sun.codemodel.JBlock body,
                                                       com.sun.codemodel.JVar entitySentToServer,
                                                       com.sun.codemodel.JVar httpHeaders)

getResponseClass

public com.sun.codemodel.JExpression getResponseClass(Element element,
                                                      RestHolder holder)

retrieveResponseClass

public com.sun.codemodel.JClass retrieveResponseClass(TypeMirror returnType,
                                                      RestHolder holder)

plainName

protected String plainName(com.sun.codemodel.JClass jClass)


Copyright © 2010-2014. All Rights Reserved.