congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
TypeModeler.isSubElement
Code IndexAdd Tabnine to your IDE (free)

How to use
isSubElement
method
in
com.sun.tools.ws.processor.modeler.annotation.TypeModeler

Best Java code snippets using com.sun.tools.ws.processor.modeler.annotation.TypeModeler.isSubElement (Showing top 16 results out of 315)

origin: javaee/metro-jax-ws

public static boolean isSubclass(TypeElement subType, TypeElement superType, ProcessingEnvironment env) {
  return !subType.equals(superType) && isSubElement(subType, superType);
}
origin: com.sun.xml.ws/jaxws-tools

public static boolean isSubclass(TypeElement subType, TypeElement superType, ProcessingEnvironment env) {
  return !subType.equals(superType) && isSubElement(subType, superType);
}
origin: javaee/metro-jax-ws

public static boolean isSubclass(TypeElement subType, TypeElement superType, ProcessingEnvironment env) {
  return !subType.equals(superType) && isSubElement(subType, superType);
}
origin: org.glassfish.metro/webservices-tools

public static boolean isSubclass(TypeElement subType, TypeElement superType, ProcessingEnvironment env) {
  return !subType.equals(superType) && isSubElement(subType, superType);
}
origin: javaee/metro-jax-ws

@Override
public TypeMirror visitDeclared(DeclaredType t, Types types) {
  if (TypeModeler.isSubElement((TypeElement) t.asElement(), collectionType)
      || TypeModeler.isSubElement((TypeElement) t.asElement(), mapType)) {
    Collection<? extends TypeMirror> args = t.getTypeArguments();
    TypeMirror[] safeArgs = new TypeMirror[args.size()];
    int i = 0;
    for (TypeMirror arg : args) {
      safeArgs[i++] = visit(arg, types);
    }
    return types.getDeclaredType((TypeElement) t.asElement(), safeArgs);
  }
  return types.erasure(t);
}
origin: com.sun.xml.ws/jaxws-tools

@Override
public TypeMirror visitDeclared(DeclaredType t, Types types) {
  if (TypeModeler.isSubElement((TypeElement) t.asElement(), collectionType)
      || TypeModeler.isSubElement((TypeElement) t.asElement(), mapType)) {
    Collection<? extends TypeMirror> args = t.getTypeArguments();
    TypeMirror[] safeArgs = new TypeMirror[args.size()];
    int i = 0;
    for (TypeMirror arg : args) {
      safeArgs[i++] = visit(arg, types);
    }
    return types.getDeclaredType((TypeElement) t.asElement(), safeArgs);
  }
  return types.erasure(t);
}
origin: javaee/metro-jax-ws

@Override
public TypeMirror visitDeclared(DeclaredType t, Types types) {
  if (TypeModeler.isSubElement((TypeElement) t.asElement(), collectionType)
      || TypeModeler.isSubElement((TypeElement) t.asElement(), mapType)) {
    Collection<? extends TypeMirror> args = t.getTypeArguments();
    TypeMirror[] safeArgs = new TypeMirror[args.size()];
    int i = 0;
    for (TypeMirror arg : args) {
      safeArgs[i++] = visit(arg, types);
    }
    return types.getDeclaredType((TypeElement) t.asElement(), safeArgs);
  }
  return types.erasure(t);
}
origin: org.glassfish.metro/webservices-tools

@Override
public TypeMirror visitDeclared(DeclaredType t, Types types) {
  if (TypeModeler.isSubElement((TypeElement) t.asElement(), collectionType)
      || TypeModeler.isSubElement((TypeElement) t.asElement(), mapType)) {
    Collection<? extends TypeMirror> args = t.getTypeArguments();
    TypeMirror[] safeArgs = new TypeMirror[args.size()];
    int i = 0;
    for (TypeMirror arg : args) {
      safeArgs[i++] = visit(arg, types);
    }
    return types.getDeclaredType((TypeElement) t.asElement(), safeArgs);
  }
  return types.erasure(t);
}
origin: javaee/metro-jax-ws

public static boolean isSubElement(TypeElement d1, TypeElement d2) {
  if (d1.equals(d2))
    return true;
  TypeElement superClassDecl = null;
  if (d1.getKind().equals(ElementKind.CLASS)) {
    TypeMirror superClass = d1.getSuperclass();
    if (!superClass.getKind().equals(TypeKind.NONE)) {
      superClassDecl = (TypeElement) ((DeclaredType) superClass).asElement();
      if (superClassDecl.equals(d2))
        return true;
    }
  }
  for (TypeMirror superIntf : d1.getInterfaces()) {
    DeclaredType declaredSuperIntf = (DeclaredType) superIntf;
    if (declaredSuperIntf.asElement().equals(d2)) {
      return true;
    }
    if (isSubElement((TypeElement) declaredSuperIntf.asElement(), d2)) {
      return true;
    } else if (superClassDecl != null && isSubElement(superClassDecl, d2)) {
      return true;
    }
  }
  return false;
}
origin: com.sun.xml.ws/jaxws-tools

public static boolean isSubElement(TypeElement d1, TypeElement d2) {
  if (d1.equals(d2))
    return true;
  TypeElement superClassDecl = null;
  if (d1.getKind().equals(ElementKind.CLASS)) {
    TypeMirror superClass = d1.getSuperclass();
    if (!superClass.getKind().equals(TypeKind.NONE)) {
      superClassDecl = (TypeElement) ((DeclaredType) superClass).asElement();
      if (superClassDecl.equals(d2))
        return true;
    }
  }
  for (TypeMirror superIntf : d1.getInterfaces()) {
    DeclaredType declaredSuperIntf = (DeclaredType) superIntf;
    if (declaredSuperIntf.asElement().equals(d2)) {
      return true;
    }
    if (isSubElement((TypeElement) declaredSuperIntf.asElement(), d2)) {
      return true;
    } else if (superClassDecl != null && isSubElement(superClassDecl, d2)) {
      return true;
    }
  }
  return false;
}
origin: javaee/metro-jax-ws

public static TypeMirror getHolderValueType(TypeMirror type, TypeElement defHolder, ProcessingEnvironment env) {
  TypeElement typeElement = getDeclaration(type);
  if (typeElement == null)
    return null;
  if (isSubElement(typeElement, defHolder)) {
    if (type.getKind().equals(TypeKind.DECLARED)) {
      Collection<? extends TypeMirror> argTypes = ((DeclaredType) type).getTypeArguments();
      if (argTypes.size() == 1) {
        return argTypes.iterator().next();
      } else if (argTypes.isEmpty()) {
        VariableElement member = getValueMember(typeElement);
        if (member != null) {
          return member.asType();
        }
      }
    }
  }
  return null;
}
origin: org.glassfish.metro/webservices-tools

public static TypeMirror getHolderValueType(TypeMirror type, TypeElement defHolder, ProcessingEnvironment env) {
  TypeElement typeElement = getDeclaration(type);
  if (typeElement == null)
    return null;
  if (isSubElement(typeElement, defHolder)) {
    if (type.getKind().equals(TypeKind.DECLARED)) {
      Collection<? extends TypeMirror> argTypes = ((DeclaredType) type).getTypeArguments();
      if (argTypes.size() == 1) {
        return argTypes.iterator().next();
      } else if (argTypes.isEmpty()) {
        VariableElement member = getValueMember(typeElement);
        if (member != null) {
          return member.asType();
        }
      }
    }
  }
  return null;
}
origin: org.glassfish.metro/webservices-tools

public static boolean isSubElement(TypeElement d1, TypeElement d2) {
  if (d1.equals(d2))
    return true;
  TypeElement superClassDecl = null;
  if (d1.getKind().equals(ElementKind.CLASS)) {
    TypeMirror superClass = d1.getSuperclass();
    if (!superClass.getKind().equals(TypeKind.NONE)) {
      superClassDecl = (TypeElement) ((DeclaredType) superClass).asElement();
      if (superClassDecl.equals(d2))
        return true;
    }
  }
  for (TypeMirror superIntf : d1.getInterfaces()) {
    DeclaredType declaredSuperIntf = (DeclaredType) superIntf;
    if (declaredSuperIntf.asElement().equals(d2)) {
      return true;
    }
    if (isSubElement((TypeElement) declaredSuperIntf.asElement(), d2)) {
      return true;
    } else if (superClassDecl != null && isSubElement(superClassDecl, d2)) {
      return true;
    }
  }
  return false;
}
origin: javaee/metro-jax-ws

public static boolean isSubElement(TypeElement d1, TypeElement d2) {
  if (d1.equals(d2))
    return true;
  TypeElement superClassDecl = null;
  if (d1.getKind().equals(ElementKind.CLASS)) {
    TypeMirror superClass = d1.getSuperclass();
    if (!superClass.getKind().equals(TypeKind.NONE)) {
      superClassDecl = (TypeElement) ((DeclaredType) superClass).asElement();
      if (superClassDecl.equals(d2))
        return true;
    }
  }
  for (TypeMirror superIntf : d1.getInterfaces()) {
    DeclaredType declaredSuperIntf = (DeclaredType) superIntf;
    if (declaredSuperIntf.asElement().equals(d2)) {
      return true;
    }
    if (isSubElement((TypeElement) declaredSuperIntf.asElement(), d2)) {
      return true;
    } else if (superClassDecl != null && isSubElement(superClassDecl, d2)) {
      return true;
    }
  }
  return false;
}
origin: com.sun.xml.ws/jaxws-tools

public static TypeMirror getHolderValueType(TypeMirror type, TypeElement defHolder, ProcessingEnvironment env) {
  TypeElement typeElement = getDeclaration(type);
  if (typeElement == null)
    return null;
  if (isSubElement(typeElement, defHolder)) {
    if (type.getKind().equals(TypeKind.DECLARED)) {
      Collection<? extends TypeMirror> argTypes = ((DeclaredType) type).getTypeArguments();
      if (argTypes.size() == 1) {
        return argTypes.iterator().next();
      } else if (argTypes.isEmpty()) {
        VariableElement member = getValueMember(typeElement);
        if (member != null) {
          return member.asType();
        }
      }
    }
  }
  return null;
}
origin: javaee/metro-jax-ws

public static TypeMirror getHolderValueType(TypeMirror type, TypeElement defHolder, ProcessingEnvironment env) {
  TypeElement typeElement = getDeclaration(type);
  if (typeElement == null)
    return null;
  if (isSubElement(typeElement, defHolder)) {
    if (type.getKind().equals(TypeKind.DECLARED)) {
      Collection<? extends TypeMirror> argTypes = ((DeclaredType) type).getTypeArguments();
      if (argTypes.size() == 1) {
        return argTypes.iterator().next();
      } else if (argTypes.isEmpty()) {
        VariableElement member = getValueMember(typeElement);
        if (member != null) {
          return member.asType();
        }
      }
    }
  }
  return null;
}
com.sun.tools.ws.processor.modeler.annotationTypeModelerisSubElement

Popular methods of TypeModeler

  • collectInterfaces
  • getDeclaration
  • getDeclaringClassMethod
  • getHolderValueType
  • getValueMember
  • isRemote
  • isRemoteException
  • isSubclass

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • startActivity (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top PhpStorm plugins
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