com.googlecode.androidannotations.processing.rest
Class OptionsProcessor

java.lang.Object
  extended by com.googlecode.androidannotations.processing.rest.MethodProcessor
      extended by com.googlecode.androidannotations.processing.rest.OptionsProcessor
All Implemented Interfaces:
HasTarget, ElementProcessor

public class OptionsProcessor
extends MethodProcessor


Field Summary
 
Fields inherited from class com.googlecode.androidannotations.processing.rest.MethodProcessor
restAnnotationHelper, restImplementationsHolder
 
Constructor Summary
OptionsProcessor(javax.annotation.processing.ProcessingEnvironment processingEnv, RestImplementationsHolder restImplementationHolder)
           
 
Method Summary
protected  com.sun.codemodel.JInvocation addHttpEntityVar(com.sun.codemodel.JInvocation restCall, MethodProcessorHolder methodHolder)
           
protected  com.sun.codemodel.JVar addHttpHeadersVar(com.sun.codemodel.JBlock body, javax.lang.model.element.ExecutableElement executableElement)
           
protected  com.sun.codemodel.JInvocation addResponseEntityArg(com.sun.codemodel.JInvocation restCall, MethodProcessorHolder methodHolder)
           
protected  com.sun.codemodel.JInvocation addResultCallMethod(com.sun.codemodel.JInvocation restCall, MethodProcessorHolder methodHolder)
           
 java.lang.Class<? extends java.lang.annotation.Annotation> getTarget()
           
 void process(javax.lang.model.element.Element element, com.sun.codemodel.JCodeModel codeModel, EBeansHolder activitiesHolder)
           
 
Methods inherited from class com.googlecode.androidannotations.processing.rest.MethodProcessor
generateHttpEntityVar, generateHttpHeadersVar, generateRestTemplateCallBlock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OptionsProcessor

public OptionsProcessor(javax.annotation.processing.ProcessingEnvironment processingEnv,
                        RestImplementationsHolder restImplementationHolder)
Method Detail

getTarget

public java.lang.Class<? extends java.lang.annotation.Annotation> getTarget()
Specified by:
getTarget in interface HasTarget
Specified by:
getTarget in class MethodProcessor

process

public void process(javax.lang.model.element.Element element,
                    com.sun.codemodel.JCodeModel codeModel,
                    EBeansHolder activitiesHolder)
             throws java.lang.Exception
Specified by:
process in interface ElementProcessor
Specified by:
process in class MethodProcessor
Throws:
java.lang.Exception

addResultCallMethod

protected com.sun.codemodel.JInvocation addResultCallMethod(com.sun.codemodel.JInvocation restCall,
                                                            MethodProcessorHolder methodHolder)
Specified by:
addResultCallMethod in class MethodProcessor

addHttpEntityVar

protected com.sun.codemodel.JInvocation addHttpEntityVar(com.sun.codemodel.JInvocation restCall,
                                                         MethodProcessorHolder methodHolder)
Specified by:
addHttpEntityVar in class MethodProcessor

addResponseEntityArg

protected com.sun.codemodel.JInvocation addResponseEntityArg(com.sun.codemodel.JInvocation restCall,
                                                             MethodProcessorHolder methodHolder)
Specified by:
addResponseEntityArg in class MethodProcessor

addHttpHeadersVar

protected com.sun.codemodel.JVar addHttpHeadersVar(com.sun.codemodel.JBlock body,
                                                   javax.lang.model.element.ExecutableElement executableElement)
Specified by:
addHttpHeadersVar in class MethodProcessor


Copyright © 2010-2012. All Rights Reserved.