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

java.lang.Object
  extended by SimpleDeclarationVisitor
      extended by com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor
All Implemented Interfaces:
WebServiceConstants
Direct Known Subclasses:
WebServiceWrapperGenerator

public abstract class WebServiceVisitor
extends SimpleDeclarationVisitor
implements WebServiceConstants

Author:
WS Development Team

Nested Class Summary
protected static class WebServiceVisitor.MySOAPBinding
           
 
Field Summary
protected static java.lang.String ANNOTATION_ELEMENT_ERROR
           
protected  ModelBuilder builder
           
protected  AnnotationProcessorContext context
           
protected  java.lang.String endpointInterfaceName
           
protected  boolean endpointReferencesInterface
           
protected  boolean hasWebMethods
           
protected  HandlerChain hChain
           
protected  java.lang.String packageName
           
protected  Port port
           
protected  java.lang.String portName
           
protected  java.util.Set<java.lang.String> processedMethods
           
protected  boolean processingSEI
           
protected  boolean pushedSOAPBinding
           
protected  AnnotationProcessorContext.SEIContext seiContext
           
protected  java.lang.String serviceImplName
           
protected  java.lang.String serviceName
           
protected  JavaSimpleTypeCreator simpleTypeCreator
           
protected  java.util.Stack<SOAPBinding> soapBindingStack
           
protected  SOAPStyle soapStyle
           
protected  SOAPUse soapUse
           
protected  TypeDeclaration typeDecl
           
protected  SOAPBinding typeDeclSOAPBinding
           
protected  java.lang.String typeNamespace
           
protected  boolean wrapped
           
protected  java.lang.String wsdlNamespace
           
 
Fields inherited from interface com.sun.tools.ws.processor.modeler.annotation.WebServiceConstants
BEAN, BINDING, COLLECTION_CLASSNAME, DOT, EMTPY_NAMESPACE_ID, EXCEPTION_CLASSNAME, FAULT_INFO, GET_FAULT_INFO, GET_PREFIX, HANDLER, HANDLER_CHAIN, HANDLER_CHAIN_NAME, HANDLER_CLASS, HANDLER_CONFIG, HANDLER_NAME, HOLDER_CLASSNAME, HTTP_PREFIX, INIT_PARAM, IS_PREFIX, JAVA_LANG_OBJECT, JAXWS, JAXWS_PACKAGE_PD, MAP_CLASSNAME, PARAM_NAME, PARAM_VALUE, PD, PD_JAXWS_PACKAGE_PD, PORT, REMOTE_CLASSNAME, REMOTE_EXCEPTION_CLASSNAME, RESPONSE, RETURN, RETURN_CAPPED, RETURN_VALUE, RUNTIME_EXCEPTION_CLASSNAME, SERIALIZABLE_CLASSNAME, SERVICE, SIGC_INNERCLASS, SIGC_UNDERSCORE, SOAP_HEADER, SOAP_ROLE, WEBSERVICE_NAMESPACE
 
Constructor Summary
WebServiceVisitor(ModelBuilder builder, AnnotationProcessorContext context)
           
 
Method Summary
protected  void annotationError(SourcePosition pos, com.sun.xml.ws.util.localization.Localizable message)
           
protected  void checkForInvalidImplAnnotation(Declaration d, java.lang.Class annotationClass)
           
protected  void checkForInvalidSEIAnnotation(InterfaceDeclaration d, java.lang.Class annotationClass)
           
protected  boolean classImplementsSEI(ClassDeclaration classDecl, InterfaceDeclaration intfDecl)
           
protected  int getModeParameterCount(MethodDeclaration method, WebParam.Mode mode)
           
protected  java.lang.String getNamespace(PackageDeclaration packageDecl)
           
protected  ParameterDeclaration getOutParameter(MethodDeclaration method)
           
protected  boolean hasWebMethods(ClassDeclaration d)
           
protected  boolean isDocLitWrapped()
           
protected  boolean isEquivalentModes(WebParam.Mode mode1, WebParam.Mode mode2)
           
protected  boolean isHolder(ParameterDeclaration param)
           
protected  boolean isLegalImplementation(WebService webService, ClassDeclaration classDecl)
           
protected  boolean isLegalMethod(MethodDeclaration method, TypeDeclaration typeDecl)
           
protected  boolean isLegalParameter(ParameterDeclaration param, MethodDeclaration method, TypeDeclaration typeDecl, int paramIndex)
           
protected  boolean isLegalSEI(InterfaceDeclaration intf)
           
protected  boolean isLegalType(TypeMirror type)
           
protected  boolean isValidOnewayMethod(MethodDeclaration method, TypeDeclaration typeDecl)
           
protected  boolean methodsAreLegal(ClassDeclaration classDecl)
           
protected  boolean methodsAreLegal(InterfaceDeclaration intfDecl)
           
protected  SOAPBinding popSOAPBinding()
           
protected  void postProcessWebService(WebService webService, ClassDeclaration d)
           
protected  void postProcessWebService(WebService webService, InterfaceDeclaration d)
           
protected  void preProcessWebService(WebService webService, TypeDeclaration d)
           
protected  boolean processedMethod(MethodDeclaration method)
           
protected abstract  void processMethod(MethodDeclaration method, WebMethod webMethod)
           
protected  void processMethods(ClassDeclaration d)
           
protected  void processMethods(InterfaceDeclaration d)
           
protected abstract  void processWebService(WebService webService, TypeDeclaration d)
           
protected  boolean pushSOAPBinding(SOAPBinding soapBinding, Declaration bindingDecl, TypeDeclaration classDecl)
           
protected  boolean sameMethod(MethodDeclaration method1, MethodDeclaration method2)
           
static boolean sameStyle(SOAPBinding.Style style, SOAPStyle soapStyle)
           
protected  boolean shouldProcessMethod(MethodDeclaration method, WebMethod webMethod)
           
protected  boolean shouldProcessWebService(WebService webService, ClassDeclaration classDecl)
           
protected  boolean shouldProcessWebService(WebService webService, InterfaceDeclaration intf)
           
protected  void verifyImplAnnotations(ClassDeclaration d)
           
protected  void verifySEIAnnotations(WebService webService, InterfaceDeclaration d)
           
 void visitClassDeclaration(ClassDeclaration d)
           
 void visitInterfaceDeclaration(InterfaceDeclaration d)
           
 void visitMethodDeclaration(MethodDeclaration method)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

builder

protected ModelBuilder builder

wsdlNamespace

protected java.lang.String wsdlNamespace

typeNamespace

protected java.lang.String typeNamespace

soapBindingStack

protected java.util.Stack<SOAPBinding> soapBindingStack

typeDeclSOAPBinding

protected SOAPBinding typeDeclSOAPBinding

soapUse

protected SOAPUse soapUse

soapStyle

protected SOAPStyle soapStyle

wrapped

protected boolean wrapped

hChain

protected HandlerChain hChain

port

protected Port port

serviceImplName

protected java.lang.String serviceImplName

endpointInterfaceName

protected java.lang.String endpointInterfaceName

context

protected AnnotationProcessorContext context

seiContext

protected AnnotationProcessorContext.SEIContext seiContext

processingSEI

protected boolean processingSEI

serviceName

protected java.lang.String serviceName

packageName

protected java.lang.String packageName

portName

protected java.lang.String portName

endpointReferencesInterface

protected boolean endpointReferencesInterface

hasWebMethods

protected boolean hasWebMethods

simpleTypeCreator

protected JavaSimpleTypeCreator simpleTypeCreator

typeDecl

protected TypeDeclaration typeDecl

processedMethods

protected java.util.Set<java.lang.String> processedMethods

pushedSOAPBinding

protected boolean pushedSOAPBinding

ANNOTATION_ELEMENT_ERROR

protected static final java.lang.String ANNOTATION_ELEMENT_ERROR
See Also:
Constant Field Values
Constructor Detail

WebServiceVisitor

public WebServiceVisitor(ModelBuilder builder,
                         AnnotationProcessorContext context)
Method Detail

visitInterfaceDeclaration

public void visitInterfaceDeclaration(InterfaceDeclaration d)

visitClassDeclaration

public void visitClassDeclaration(ClassDeclaration d)

verifySEIAnnotations

protected void verifySEIAnnotations(WebService webService,
                                    InterfaceDeclaration d)

verifyImplAnnotations

protected void verifyImplAnnotations(ClassDeclaration d)

checkForInvalidSEIAnnotation

protected void checkForInvalidSEIAnnotation(InterfaceDeclaration d,
                                            java.lang.Class annotationClass)

checkForInvalidImplAnnotation

protected void checkForInvalidImplAnnotation(Declaration d,
                                             java.lang.Class annotationClass)

annotationError

protected void annotationError(SourcePosition pos,
                               com.sun.xml.ws.util.localization.Localizable message)

preProcessWebService

protected void preProcessWebService(WebService webService,
                                    TypeDeclaration d)

sameStyle

public static boolean sameStyle(SOAPBinding.Style style,
                                SOAPStyle soapStyle)

pushSOAPBinding

protected boolean pushSOAPBinding(SOAPBinding soapBinding,
                                  Declaration bindingDecl,
                                  TypeDeclaration classDecl)

popSOAPBinding

protected SOAPBinding popSOAPBinding()

getNamespace

protected java.lang.String getNamespace(PackageDeclaration packageDecl)

shouldProcessWebService

protected boolean shouldProcessWebService(WebService webService,
                                          InterfaceDeclaration intf)

shouldProcessWebService

protected boolean shouldProcessWebService(WebService webService,
                                          ClassDeclaration classDecl)

processWebService

protected abstract void processWebService(WebService webService,
                                          TypeDeclaration d)

postProcessWebService

protected void postProcessWebService(WebService webService,
                                     InterfaceDeclaration d)

postProcessWebService

protected void postProcessWebService(WebService webService,
                                     ClassDeclaration d)

hasWebMethods

protected boolean hasWebMethods(ClassDeclaration d)

processMethods

protected void processMethods(InterfaceDeclaration d)

processMethods

protected void processMethods(ClassDeclaration d)

visitMethodDeclaration

public void visitMethodDeclaration(MethodDeclaration method)

processedMethod

protected boolean processedMethod(MethodDeclaration method)

shouldProcessMethod

protected boolean shouldProcessMethod(MethodDeclaration method,
                                      WebMethod webMethod)

processMethod

protected abstract void processMethod(MethodDeclaration method,
                                      WebMethod webMethod)

isLegalImplementation

protected boolean isLegalImplementation(WebService webService,
                                        ClassDeclaration classDecl)

classImplementsSEI

protected boolean classImplementsSEI(ClassDeclaration classDecl,
                                     InterfaceDeclaration intfDecl)

sameMethod

protected boolean sameMethod(MethodDeclaration method1,
                             MethodDeclaration method2)

isLegalSEI

protected boolean isLegalSEI(InterfaceDeclaration intf)

methodsAreLegal

protected boolean methodsAreLegal(InterfaceDeclaration intfDecl)

methodsAreLegal

protected boolean methodsAreLegal(ClassDeclaration classDecl)

isLegalMethod

protected boolean isLegalMethod(MethodDeclaration method,
                                TypeDeclaration typeDecl)

isLegalParameter

protected boolean isLegalParameter(ParameterDeclaration param,
                                   MethodDeclaration method,
                                   TypeDeclaration typeDecl,
                                   int paramIndex)

isDocLitWrapped

protected boolean isDocLitWrapped()

isValidOnewayMethod

protected boolean isValidOnewayMethod(MethodDeclaration method,
                                      TypeDeclaration typeDecl)

getModeParameterCount

protected int getModeParameterCount(MethodDeclaration method,
                                    WebParam.Mode mode)

isEquivalentModes

protected boolean isEquivalentModes(WebParam.Mode mode1,
                                    WebParam.Mode mode2)

isHolder

protected boolean isHolder(ParameterDeclaration param)

isLegalType

protected boolean isLegalType(TypeMirror type)

getOutParameter

protected ParameterDeclaration getOutParameter(MethodDeclaration method)


Copyright © 2005-2011 Oracle Corporation. All Rights Reserved.