com.sun.tools.ws.processor.modeler.annotation
Class WebServiceAp

java.lang.Object
  extended by javax.annotation.processing.AbstractProcessor
      extended by com.sun.tools.ws.processor.modeler.annotation.WebServiceAp
All Implemented Interfaces:
ModelBuilder, javax.annotation.processing.Processor

@SupportedAnnotationTypes(value={"javax.jws.HandlerChain","javax.jws.Oneway","javax.jws.WebMethod","javax.jws.WebParam","javax.jws.WebResult","javax.jws.WebService","javax.jws.soap.InitParam","javax.jws.soap.SOAPBinding","javax.jws.soap.SOAPMessageHandler","javax.jws.soap.SOAPMessageHandlers","javax.xml.ws.BindingType","javax.xml.ws.RequestWrapper","javax.xml.ws.ResponseWrapper","javax.xml.ws.ServiceMode","javax.xml.ws.WebEndpoint","javax.xml.ws.WebFault","javax.xml.ws.WebServiceClient","javax.xml.ws.WebServiceProvider","javax.xml.ws.WebServiceRef"})
@SupportedOptions(value={"doNotOverWrite","ignoreNoWebServiceFoundWarning"})
public class WebServiceAp
extends javax.annotation.processing.AbstractProcessor
implements ModelBuilder

WebServiceAp is a AnnotationProcessor for processing javax.jws.* and javax.xml.ws.* annotations. This class is used either by the WsGen (CompileTool) tool or indirectly when invoked by javac.


Field Summary
protected  AnnotationProcessorContext context
           
static String DO_NOT_OVERWRITE
           
static String IGNORE_NO_WEB_SERVICE_FOUND_WARNING
           
 
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv
 
Constructor Summary
WebServiceAp()
           
WebServiceAp(WsgenOptions options, PrintStream out)
           
 
Method Summary
 boolean canOverWriteClass(String className)
           
 boolean checkAndSetProcessed(javax.lang.model.element.TypeElement typeElement)
           
 javax.lang.model.type.TypeMirror getHolderValueType(javax.lang.model.type.TypeMirror type)
           
 String getOperationName(javax.lang.model.element.Name messageName)
           
 WsgenOptions getOptions()
           
 javax.annotation.processing.ProcessingEnvironment getProcessingEnvironment()
           
 File getSourceDir()
           
 javax.lang.model.SourceVersion getSupportedSourceVersion()
           
 void init(javax.annotation.processing.ProcessingEnvironment processingEnv)
           
 boolean isRemote(javax.lang.model.element.TypeElement typeElement)
           
 boolean isServiceException(javax.lang.model.type.TypeMirror typeMirror)
          Checks if type is a service specific exception
 void log(String message)
           
 boolean process(Set<? extends javax.lang.model.element.TypeElement> annotations, javax.annotation.processing.RoundEnvironment roundEnv)
           
 void processError(String message)
           
 void processError(String message, javax.lang.model.element.Element element)
           
 void processWarning(String message)
           
protected  void report(String msg)
           
 
Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, isInitialized
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DO_NOT_OVERWRITE

public static final String DO_NOT_OVERWRITE
See Also:
Constant Field Values

IGNORE_NO_WEB_SERVICE_FOUND_WARNING

public static final String IGNORE_NO_WEB_SERVICE_FOUND_WARNING
See Also:
Constant Field Values

context

protected AnnotationProcessorContext context
Constructor Detail

WebServiceAp

public WebServiceAp()

WebServiceAp

public WebServiceAp(WsgenOptions options,
                    PrintStream out)
Method Detail

init

public void init(javax.annotation.processing.ProcessingEnvironment processingEnv)
Specified by:
init in interface javax.annotation.processing.Processor
Overrides:
init in class javax.annotation.processing.AbstractProcessor

process

public boolean process(Set<? extends javax.lang.model.element.TypeElement> annotations,
                       javax.annotation.processing.RoundEnvironment roundEnv)
Specified by:
process in interface javax.annotation.processing.Processor
Specified by:
process in class javax.annotation.processing.AbstractProcessor

processWarning

public void processWarning(String message)
Specified by:
processWarning in interface ModelBuilder

report

protected void report(String msg)

processError

public void processError(String message)
Specified by:
processError in interface ModelBuilder

processError

public void processError(String message,
                         javax.lang.model.element.Element element)
Specified by:
processError in interface ModelBuilder

canOverWriteClass

public boolean canOverWriteClass(String className)
Specified by:
canOverWriteClass in interface ModelBuilder

getSourceDir

public File getSourceDir()
Specified by:
getSourceDir in interface ModelBuilder

isRemote

public boolean isRemote(javax.lang.model.element.TypeElement typeElement)
Specified by:
isRemote in interface ModelBuilder

isServiceException

public boolean isServiceException(javax.lang.model.type.TypeMirror typeMirror)
Description copied from interface: ModelBuilder
Checks if type is a service specific exception

Specified by:
isServiceException in interface ModelBuilder
Parameters:
typeMirror - the given element's type
Returns:
true if is not a service specific exception as defined by JAX-WS specification

getHolderValueType

public javax.lang.model.type.TypeMirror getHolderValueType(javax.lang.model.type.TypeMirror type)
Specified by:
getHolderValueType in interface ModelBuilder

checkAndSetProcessed

public boolean checkAndSetProcessed(javax.lang.model.element.TypeElement typeElement)
Specified by:
checkAndSetProcessed in interface ModelBuilder

log

public void log(String message)
Specified by:
log in interface ModelBuilder

getOptions

public WsgenOptions getOptions()
Specified by:
getOptions in interface ModelBuilder

getProcessingEnvironment

public javax.annotation.processing.ProcessingEnvironment getProcessingEnvironment()
Specified by:
getProcessingEnvironment in interface ModelBuilder

getOperationName

public String getOperationName(javax.lang.model.element.Name messageName)
Specified by:
getOperationName in interface ModelBuilder

getSupportedSourceVersion

public javax.lang.model.SourceVersion getSupportedSourceVersion()
Specified by:
getSupportedSourceVersion in interface javax.annotation.processing.Processor
Overrides:
getSupportedSourceVersion in class javax.annotation.processing.AbstractProcessor


Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.