Package org.eclipse.jdt.core.dom

Examples of org.eclipse.jdt.core.dom.Type


            // accept the empty field (stands for java.lang.Object)
            return status;
        }

        if (root != null) {
            Type type = TypeContextChecker.parseSuperClass(sclassName);
            if (type == null) {
                status.setError(NewWizardMessages.NewTypeWizardPage_error_InvalidSuperClassName);
                return status;
            }
            if (type instanceof ParameterizedType && !JavaModelUtil.is50OrHigher(root.getJavaProject())) {
View Full Code Here


        if (root != null) {
            List<InterfaceWrapper> elements = fSuperInterfacesDialogField.getElements();
            int nElements = elements.size();
            for (int i = 0; i < nElements; i++) {
                String intfname = elements.get(i).interfaceName;
                Type type = TypeContextChecker.parseSuperInterface(intfname);
                if (type == null) {
                    status.setError(Messages.format(NewWizardMessages.NewTypeWizardPage_error_InvalidSuperInterfaceName, BasicElementLabels.getJavaElementName(intfname)));
                    return status;
                }
                if (type instanceof ParameterizedType && !JavaModelUtil.is50OrHigher(root.getJavaProject())) {
View Full Code Here

    insert(containment, getParent(), ownValue);
   
    IValueList implementedInterfaces = new IValueList(values);
    if (!node.superInterfaceTypes().isEmpty()) {
      for (Iterator it = node.superInterfaceTypes().iterator(); it.hasNext();) {
        Type t = (Type) it.next();
        implementedInterfaces.add(resolveBinding(t));
      }
    }
    insert(implementsRelations, ownValue, implementedInterfaces);
   
View Full Code Here

      if (node.getSuperclassType() != null) {
        extendsClass.add(resolveBinding(node.getSuperclassType()));
      }
      if (!node.superInterfaceTypes().isEmpty()) {
        for (Iterator it = node.superInterfaceTypes().iterator(); it.hasNext();) {
          Type t = (Type) it.next();
          implementsInterfaces.add(resolveBinding(t));
        }
      }
    }
   
View Full Code Here

 
  public boolean visit(TypeParameter node) {
    IValueList extendsList = new IValueList(values);
    if (!node.typeBounds().isEmpty()) {
      for (Iterator it = node.typeBounds().iterator(); it.hasNext();) {
        Type t = (Type) it.next();
        extendsList.add(resolveBinding(t));
      }
    }
   
    insert(containment, getParent(), ownValue);
View Full Code Here

    else {
      type = visitChild(node.getType());
 
      if (!node.typeArguments().isEmpty()) {
        for (Iterator it = node.typeArguments().iterator(); it.hasNext();) {
          Type t = (Type) it.next();
          genericTypes.add(visitChild(t));
        }
      }
    }
 
View Full Code Here

    IValueList types = new IValueList(values);
    if (node.getAST().apiLevel() >= AST.JLS3) {
      if (!node.typeArguments().isEmpty()) {
 
        for (Iterator it = node.typeArguments().iterator(); it.hasNext();) {
          Type t = (Type) it.next();
          types.add(visitChild(t));
        }
      }
    }
 
View Full Code Here

    IValue name = values.string(node.getName().getFullyQualifiedName());
 
    IValueList implementedInterfaces = new IValueList(values);
    if (!node.superInterfaceTypes().isEmpty()) {
      for (Iterator it = node.superInterfaceTypes().iterator(); it.hasNext();) {
        Type t = (Type) it.next();
        implementedInterfaces.add(visitChild(t));
      }
    }
 
    IValueList enumConstants = new IValueList(values);
View Full Code Here

   
    IValueList genericTypes = new IValueList(values);
    if (node.getAST().apiLevel() >= AST.JLS3) {
      if (!node.typeArguments().isEmpty()) {
        for (Iterator it = node.typeArguments().iterator(); it.hasNext();) {
          Type t = (Type) it.next();
          genericTypes.add(visitChild(t));
        }
      }
    }
 
View Full Code Here

   
    IValue type = visitChild(node.getType());
 
    IValueList genericTypes = new IValueList(values);
    for (Iterator it = node.typeArguments().iterator(); it.hasNext();) {
      Type t = (Type) it.next();
      genericTypes.add(visitChild(t));
    }
 
    ownValue = constructTypeNode("parameterizedType", type);
    setAnnotation("typeParameters", genericTypes);
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.core.dom.Type

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.