com.googlecode.androidannotations.processing.rest
Class PostProcessor

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

public class PostProcessor
extends MethodProcessor


Field Summary
 
Fields inherited from class com.googlecode.androidannotations.processing.rest.MethodProcessor
restAnnotationHelper, restImplementationsHolder
 
Constructor Summary
PostProcessor(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, 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)
           
 Class<? extends Annotation> getTarget()
           
 void process(Element element, com.sun.codemodel.JCodeModel codeModel, EBeanHolder holder)
           
 
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

PostProcessor

public PostProcessor(ProcessingEnvironment processingEnv,
                     RestImplementationsHolder restImplementationHolder)
Method Detail

getTarget

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

process

public void process(Element element,
                    com.sun.codemodel.JCodeModel codeModel,
                    EBeanHolder holder)
Specified by:
process in interface DecoratingElementProcessor
Specified by:
process 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

addResultCallMethod

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

addHttpHeadersVar

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


Copyright © 2010-2013. All Rights Reserved.