Tabnine Logo
WebServiceVisitor.getClassMethods
Code IndexAdd Tabnine to your IDE (free)

How to use
getClassMethods
method
in
com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor

Best Java code snippets using com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.getClassMethods (Showing top 8 results out of 315)

origin: javaee/metro-jax-ws

private static List<ExecutableElement> getClassMethods(TypeElement classElement) {
  if (classElement.getQualifiedName().toString().equals(Object.class.getName())) // we don't need Object's methods
    return null;
  TypeElement superclassElement = (TypeElement) ((DeclaredType) classElement.getSuperclass()).asElement();
  List<ExecutableElement> superclassesMethods = getClassMethods(superclassElement);
  List<ExecutableElement> classMethods = ElementFilter.methodsIn(classElement.getEnclosedElements());
  if (superclassesMethods == null)
    return classMethods;
  else
    superclassesMethods.addAll(classMethods);
  return superclassesMethods;
}
origin: com.sun.xml.ws/jaxws-tools

private static List<ExecutableElement> getClassMethods(TypeElement classElement) {
  if (classElement.getQualifiedName().toString().equals(Object.class.getName())) // we don't need Object's methods
    return null;
  TypeElement superclassElement = (TypeElement) ((DeclaredType) classElement.getSuperclass()).asElement();
  List<ExecutableElement> superclassesMethods = getClassMethods(superclassElement);
  List<ExecutableElement> classMethods = ElementFilter.methodsIn(classElement.getEnclosedElements());
  if (superclassesMethods == null)
    return classMethods;
  else
    superclassesMethods.addAll(classMethods);
  return superclassesMethods;
}
origin: org.glassfish.metro/webservices-tools

private static List<ExecutableElement> getClassMethods(TypeElement classElement) {
  if (classElement.getQualifiedName().toString().equals(Object.class.getName())) // we don't need Object's methods
    return null;
  TypeElement superclassElement = (TypeElement) ((DeclaredType) classElement.getSuperclass()).asElement();
  List<ExecutableElement> superclassesMethods = getClassMethods(superclassElement);
  List<ExecutableElement> classMethods = ElementFilter.methodsIn(classElement.getEnclosedElements());
  if (superclassesMethods == null)
    return classMethods;
  else
    superclassesMethods.addAll(classMethods);
  return superclassesMethods;
}
origin: javaee/metro-jax-ws

private static List<ExecutableElement> getClassMethods(TypeElement classElement) {
  if (classElement.getQualifiedName().toString().equals(Object.class.getName())) // we don't need Object's methods
    return null;
  TypeElement superclassElement = (TypeElement) ((DeclaredType) classElement.getSuperclass()).asElement();
  List<ExecutableElement> superclassesMethods = getClassMethods(superclassElement);
  List<ExecutableElement> classMethods = ElementFilter.methodsIn(classElement.getEnclosedElements());
  if (superclassesMethods == null)
    return classMethods;
  else
    superclassesMethods.addAll(classMethods);
  return superclassesMethods;
}
origin: com.sun.xml.ws/jaxws-tools

protected boolean classImplementsSei(TypeElement classElement, TypeElement interfaceElement) {
  for (TypeMirror interfaceType : classElement.getInterfaces()) {
    if (((DeclaredType) interfaceType).asElement().equals(interfaceElement))
      return true;
  }
  List<ExecutableElement> classMethods = getClassMethods(classElement);
  boolean implementsMethod;
  for (ExecutableElement interfaceMethod : ElementFilter.methodsIn(interfaceElement.getEnclosedElements())) {
    implementsMethod = false;
    for (ExecutableElement classMethod : classMethods) {
      if (sameMethod(interfaceMethod, classMethod)) {
        implementsMethod = true;
        classMethods.remove(classMethod);
        break;
      }
    }
    if (!implementsMethod) {
      builder.processError(WebserviceapMessages.WEBSERVICEAP_METHOD_NOT_IMPLEMENTED(interfaceElement.getSimpleName(), classElement.getSimpleName(), interfaceMethod), interfaceMethod);
      return false;
    }
  }
  return true;
}
origin: org.glassfish.metro/webservices-tools

protected boolean classImplementsSei(TypeElement classElement, TypeElement interfaceElement) {
  for (TypeMirror interfaceType : classElement.getInterfaces()) {
    if (((DeclaredType) interfaceType).asElement().equals(interfaceElement))
      return true;
  }
  List<ExecutableElement> classMethods = getClassMethods(classElement);
  boolean implementsMethod;
  for (ExecutableElement interfaceMethod : ElementFilter.methodsIn(interfaceElement.getEnclosedElements())) {
    implementsMethod = false;
    for (ExecutableElement classMethod : classMethods) {
      if (sameMethod(interfaceMethod, classMethod)) {
        implementsMethod = true;
        classMethods.remove(classMethod);
        break;
      }
    }
    if (!implementsMethod) {
      builder.processError(WebserviceapMessages.WEBSERVICEAP_METHOD_NOT_IMPLEMENTED(interfaceElement.getSimpleName(), classElement.getSimpleName(), interfaceMethod), interfaceMethod);
      return false;
    }
  }
  return true;
}
origin: javaee/metro-jax-ws

protected boolean classImplementsSei(TypeElement classElement, TypeElement interfaceElement) {
  for (TypeMirror interfaceType : classElement.getInterfaces()) {
    if (((DeclaredType) interfaceType).asElement().equals(interfaceElement))
      return true;
  }
  List<ExecutableElement> classMethods = getClassMethods(classElement);
  boolean implementsMethod;
  for (ExecutableElement interfaceMethod : ElementFilter.methodsIn(interfaceElement.getEnclosedElements())) {
    implementsMethod = false;
    for (ExecutableElement classMethod : classMethods) {
      if (sameMethod(interfaceMethod, classMethod)) {
        implementsMethod = true;
        classMethods.remove(classMethod);
        break;
      }
    }
    if (!implementsMethod) {
      builder.processError(WebserviceapMessages.WEBSERVICEAP_METHOD_NOT_IMPLEMENTED(interfaceElement.getSimpleName(), classElement.getSimpleName(), interfaceMethod), interfaceMethod);
      return false;
    }
  }
  return true;
}
origin: javaee/metro-jax-ws

protected boolean classImplementsSei(TypeElement classElement, TypeElement interfaceElement) {
  for (TypeMirror interfaceType : classElement.getInterfaces()) {
    if (((DeclaredType) interfaceType).asElement().equals(interfaceElement))
      return true;
  }
  List<ExecutableElement> classMethods = getClassMethods(classElement);
  boolean implementsMethod;
  for (ExecutableElement interfaceMethod : ElementFilter.methodsIn(interfaceElement.getEnclosedElements())) {
    implementsMethod = false;
    for (ExecutableElement classMethod : classMethods) {
      if (sameMethod(interfaceMethod, classMethod)) {
        implementsMethod = true;
        classMethods.remove(classMethod);
        break;
      }
    }
    if (!implementsMethod) {
      builder.processError(WebserviceapMessages.WEBSERVICEAP_METHOD_NOT_IMPLEMENTED(interfaceElement.getSimpleName(), classElement.getSimpleName(), interfaceMethod), interfaceMethod);
      return false;
    }
  }
  return true;
}
com.sun.tools.ws.processor.modeler.annotationWebServiceVisitorgetClassMethods

Popular methods of WebServiceVisitor

  • checkForInvalidImplAnnotation
  • classImplementsSei
  • getEndpointInterfaceElement
  • getModeParameterCount
  • getOutParameter
  • hasWebMethods
  • inspectEndpointInterface
  • isDocLitWrapped
  • isEquivalentModes
  • isLegalImplementation
  • isLegalMethod
  • isLegalParameter
  • isLegalMethod,
  • isLegalParameter,
  • isLegalSei,
  • isLegalType,
  • isStateful,
  • isValidOneWayMethod,
  • methodsAreLegal,
  • popSoapBinding,
  • postProcessWebService

Popular in Java

  • Finding current android device location
  • getSystemService (Context)
  • onCreateOptionsMenu (Activity)
  • putExtra (Intent)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now