Class WebServiceVisitor
- java.lang.Object
-
- javax.lang.model.util.AbstractElementVisitor6<R,P>
-
- javax.lang.model.util.SimpleElementVisitor6<Void,Object>
-
- com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor
-
- All Implemented Interfaces:
ElementVisitor<Void,Object>
- Direct Known Subclasses:
WebServiceWrapperGenerator
public abstract class WebServiceVisitor extends SimpleElementVisitor6<Void,Object>
- Author:
- WS Development Team
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classWebServiceVisitor.MySoapBinding
-
Field Summary
Fields Modifier and Type Field Description protected ModelBuilderbuilderprotected AnnotationProcessorContextcontextprotected NameendpointInterfaceNameprotected booleanendpointReferencesInterfaceprotected booleanhasWebMethodsprotected NamepackageNameprotected Portportprotected StringportNameprotected Set<String>processedMethodsprotected booleanprocessingSeiprotected booleanpushedSoapBindingprotected AnnotationProcessorContext.SeiContextseiContextprotected NameserviceImplNameprotected StringserviceNameprotected Stack<javax.jws.soap.SOAPBinding>soapBindingStackprotected SOAPStylesoapStyleprotected TypeElementtypeElementprotected javax.jws.soap.SOAPBindingtypeElementSoapBindingprotected StringtypeNamespaceprotected booleanwrappedprotected StringwsdlNamespace-
Fields inherited from class javax.lang.model.util.SimpleElementVisitor6
DEFAULT_VALUE
-
-
Constructor Summary
Constructors Constructor Description WebServiceVisitor(ModelBuilder builder, AnnotationProcessorContext context)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidcheckForInvalidImplAnnotation(Element element, Class annotationClass)protected voidcheckForInvalidSeiAnnotation(TypeElement element, Class annotationClass)protected booleanclassImplementsSei(TypeElement classElement, TypeElement interfaceElement)protected intgetModeParameterCount(ExecutableElement method, javax.jws.WebParam.Mode mode)protected StringgetNamespace(PackageElement packageElement)protected VariableElementgetOutParameter(ExecutableElement method)protected booleanhasWebMethods(TypeElement element)protected booleanisDocLitWrapped()protected booleanisEquivalentModes(javax.jws.WebParam.Mode mode1, javax.jws.WebParam.Mode mode2)protected booleanisHolder(VariableElement param)protected booleanisLegalImplementation(javax.jws.WebService webService, TypeElement classElement)protected booleanisLegalMethod(ExecutableElement method, TypeElement typeElement)protected booleanisLegalParameter(VariableElement param, ExecutableElement method, TypeElement typeElement, int paramIndex)protected booleanisLegalSei(TypeElement interfaceElement)protected booleanisLegalType(TypeMirror type)protected booleanisValidOneWayMethod(ExecutableElement method, TypeElement typeElement)protected booleanmethodsAreLegal(TypeElement element)protected javax.jws.soap.SOAPBindingpopSoapBinding()protected voidpostProcessWebService(javax.jws.WebService webService, TypeElement element)protected voidpreProcessWebService(javax.jws.WebService webService, TypeElement element)protected booleanprocessedMethod(ExecutableElement method)protected abstract voidprocessMethod(ExecutableElement method, javax.jws.WebMethod webMethod)protected voidprocessMethods(TypeElement element)protected abstract voidprocessWebService(javax.jws.WebService webService, TypeElement element)protected booleanpushSoapBinding(javax.jws.soap.SOAPBinding soapBinding, Element bindingElement, TypeElement classElement)protected booleansameMethod(ExecutableElement method1, ExecutableElement method2)static booleansameStyle(javax.jws.soap.SOAPBinding.Style style, SOAPStyle soapStyle)protected booleanshouldProcessMethod(ExecutableElement method, javax.jws.WebMethod webMethod)protected booleanshouldProcessWebService(javax.jws.WebService webService, TypeElement element)protected voidverifyImplAnnotations(TypeElement d)protected voidverifySeiAnnotations(javax.jws.WebService webService, TypeElement d)VoidvisitExecutable(ExecutableElement method, Object o)VoidvisitType(TypeElement e, Object o)-
Methods inherited from class javax.lang.model.util.SimpleElementVisitor6
defaultAction, visitPackage, visitTypeParameter, visitVariable
-
Methods inherited from class javax.lang.model.util.AbstractElementVisitor6
visit, visit, visitModule, visitUnknown
-
-
-
-
Field Detail
-
builder
protected ModelBuilder builder
-
wsdlNamespace
protected String wsdlNamespace
-
typeNamespace
protected String typeNamespace
-
soapBindingStack
protected Stack<javax.jws.soap.SOAPBinding> soapBindingStack
-
typeElementSoapBinding
protected javax.jws.soap.SOAPBinding typeElementSoapBinding
-
soapStyle
protected SOAPStyle soapStyle
-
wrapped
protected boolean wrapped
-
port
protected Port port
-
serviceImplName
protected Name serviceImplName
-
endpointInterfaceName
protected Name endpointInterfaceName
-
context
protected AnnotationProcessorContext context
-
seiContext
protected AnnotationProcessorContext.SeiContext seiContext
-
processingSei
protected boolean processingSei
-
serviceName
protected String serviceName
-
packageName
protected Name packageName
-
portName
protected String portName
-
endpointReferencesInterface
protected boolean endpointReferencesInterface
-
hasWebMethods
protected boolean hasWebMethods
-
typeElement
protected TypeElement typeElement
-
pushedSoapBinding
protected boolean pushedSoapBinding
-
-
Constructor Detail
-
WebServiceVisitor
public WebServiceVisitor(ModelBuilder builder, AnnotationProcessorContext context)
-
-
Method Detail
-
visitType
public Void visitType(TypeElement e, Object o)
- Specified by:
visitTypein interfaceElementVisitor<Void,Object>- Overrides:
visitTypein classSimpleElementVisitor6<Void,Object>
-
verifySeiAnnotations
protected void verifySeiAnnotations(javax.jws.WebService webService, TypeElement d)
-
verifyImplAnnotations
protected void verifyImplAnnotations(TypeElement d)
-
checkForInvalidSeiAnnotation
protected void checkForInvalidSeiAnnotation(TypeElement element, Class annotationClass)
-
checkForInvalidImplAnnotation
protected void checkForInvalidImplAnnotation(Element element, Class annotationClass)
-
preProcessWebService
protected void preProcessWebService(javax.jws.WebService webService, TypeElement element)
-
sameStyle
public static boolean sameStyle(javax.jws.soap.SOAPBinding.Style style, SOAPStyle soapStyle)
-
pushSoapBinding
protected boolean pushSoapBinding(javax.jws.soap.SOAPBinding soapBinding, Element bindingElement, TypeElement classElement)
-
popSoapBinding
protected javax.jws.soap.SOAPBinding popSoapBinding()
-
getNamespace
protected String getNamespace(PackageElement packageElement)
-
shouldProcessWebService
protected boolean shouldProcessWebService(javax.jws.WebService webService, TypeElement element)
-
processWebService
protected abstract void processWebService(javax.jws.WebService webService, TypeElement element)
-
postProcessWebService
protected void postProcessWebService(javax.jws.WebService webService, TypeElement element)
-
hasWebMethods
protected boolean hasWebMethods(TypeElement element)
-
processMethods
protected void processMethods(TypeElement element)
-
visitExecutable
public Void visitExecutable(ExecutableElement method, Object o)
- Specified by:
visitExecutablein interfaceElementVisitor<Void,Object>- Overrides:
visitExecutablein classSimpleElementVisitor6<Void,Object>
-
processedMethod
protected boolean processedMethod(ExecutableElement method)
-
shouldProcessMethod
protected boolean shouldProcessMethod(ExecutableElement method, javax.jws.WebMethod webMethod)
-
processMethod
protected abstract void processMethod(ExecutableElement method, javax.jws.WebMethod webMethod)
-
isLegalImplementation
protected boolean isLegalImplementation(javax.jws.WebService webService, TypeElement classElement)
-
classImplementsSei
protected boolean classImplementsSei(TypeElement classElement, TypeElement interfaceElement)
-
sameMethod
protected boolean sameMethod(ExecutableElement method1, ExecutableElement method2)
-
isLegalSei
protected boolean isLegalSei(TypeElement interfaceElement)
-
methodsAreLegal
protected boolean methodsAreLegal(TypeElement element)
-
isLegalMethod
protected boolean isLegalMethod(ExecutableElement method, TypeElement typeElement)
-
isLegalParameter
protected boolean isLegalParameter(VariableElement param, ExecutableElement method, TypeElement typeElement, int paramIndex)
-
isDocLitWrapped
protected boolean isDocLitWrapped()
-
isValidOneWayMethod
protected boolean isValidOneWayMethod(ExecutableElement method, TypeElement typeElement)
-
getModeParameterCount
protected int getModeParameterCount(ExecutableElement method, javax.jws.WebParam.Mode mode)
-
isEquivalentModes
protected boolean isEquivalentModes(javax.jws.WebParam.Mode mode1, javax.jws.WebParam.Mode mode2)
-
isHolder
protected boolean isHolder(VariableElement param)
-
isLegalType
protected boolean isLegalType(TypeMirror type)
-
getOutParameter
protected VariableElement getOutParameter(ExecutableElement method)
-
-