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<SOAPBinding>soapBindingStackprotected SOAPStylesoapStyleprotected TypeElementtypeElementprotected 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
-
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<SOAPBinding> soapBindingStack
-
typeElementSoapBinding
protected 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(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(WebService webService, TypeElement element)
-
sameStyle
public static boolean sameStyle(SOAPBinding.Style style, SOAPStyle soapStyle)
-
pushSoapBinding
protected boolean pushSoapBinding(SOAPBinding soapBinding, Element bindingElement, TypeElement classElement)
-
popSoapBinding
protected SOAPBinding popSoapBinding()
-
getNamespace
protected String getNamespace(PackageElement packageElement)
-
shouldProcessWebService
protected boolean shouldProcessWebService(WebService webService, TypeElement element)
-
processWebService
protected abstract void processWebService(WebService webService, TypeElement element)
-
postProcessWebService
protected void postProcessWebService(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, WebMethod webMethod)
-
processMethod
protected abstract void processMethod(ExecutableElement method, WebMethod webMethod)
-
isLegalImplementation
protected boolean isLegalImplementation(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, WebParam.Mode mode)
-
isEquivalentModes
protected boolean isEquivalentModes(WebParam.Mode mode1, WebParam.Mode mode2)
-
isHolder
protected boolean isHolder(VariableElement param)
-
isLegalType
protected boolean isLegalType(TypeMirror type)
-
getOutParameter
protected VariableElement getOutParameter(ExecutableElement method)
-
-