Package com.sun.jdi

Examples of com.sun.jdi.InterfaceType


    }
    if (interfaces == null ) return false;
   
    Iterator iter = interfaces.iterator();
    while (iter.hasNext()) {
      InterfaceType interfaze = (InterfaceType) iter.next();
      if (isAssignableTo(interfaze, toType)) {
        return true;
      }
    }
    return false;
View Full Code Here


    } else {
      interfaces = ((InterfaceType) fromType).superinterfaces();
    }
    Iterator iter = interfaces.iterator();
    while (iter.hasNext()) {
      InterfaceType interfaze = (InterfaceType) iter.next();
      if (isAssignableTo(interfaze, toType)) {
        return true;
      }
    }
    return false;
View Full Code Here

            return new StringBuffer();
          }
          if (interfaces.size() != 0) {
            source.append("implements "); //$NON-NLS-1$
            Iterator<InterfaceType> iterator = interfaces.iterator();
            InterfaceType interface_ = iterator
                .next();
            source.append(getDotName(interface_.name()));
            while (iterator.hasNext()) {
              source.append(',')
                  .append(getDotName(iterator
                      .next().name()));
            }
View Full Code Here

      List<InterfaceType> subList = ((InterfaceType) getUnderlyingType())
          .subinterfaces();
      List<JDIType> javaInterfaceTypeList = new ArrayList<JDIType>(subList.size());
      Iterator<InterfaceType> iterator = subList.iterator();
      while (iterator.hasNext()) {
        InterfaceType interfaceType = iterator.next();
        if (interfaceType != null) {
          javaInterfaceTypeList.add(JDIType.createType(
              getJavaDebugTarget(), interfaceType));
        }
      }
View Full Code Here

      List<InterfaceType> superList = ((InterfaceType) getUnderlyingType())
          .superinterfaces();
      List<JDIType> javaInterfaceTypeList = new ArrayList<JDIType>(superList.size());
      Iterator<InterfaceType> iterator = superList.iterator();
      while (iterator.hasNext()) {
        InterfaceType interfaceType = iterator.next();
        if (interfaceType != null) {
          javaInterfaceTypeList.add(JDIType.createType(
              getJavaDebugTarget(), interfaceType));
        }
      }
View Full Code Here

    // inserted.
    HashSet<InterfaceType> allInterfacesSet = new HashSet<InterfaceType>(interfaces());

    // All interfaces of the interfaces it implements.
    Iterator<InterfaceType> interfaces = interfaces().iterator();
    InterfaceType inter;
    while (interfaces.hasNext()) {
      inter = interfaces.next();
      allInterfacesSet.addAll(((InterfaceTypeImpl)inter).allInterfaces());
    }
View Full Code Here

      visibleMethods.add(method);
    }

    // All methods of the interfaces it implements.
    Iterator<InterfaceType> interfaces = interfaces().iterator();
    InterfaceType inter;
    while (interfaces.hasNext()) {
      inter = interfaces.next();
      addVisibleMethods(inter.visibleMethods(), namesAndSignatures,
          visibleMethods);
    }

    // If it is a class, all methods of it's superclass.
    if (this instanceof ClassType) {
View Full Code Here

    // The methods of its own (own methods() command).
    resultSet.addAll(methods());

    // All methods of the interfaces it implements.
    Iterator<InterfaceType> interfaces = interfaces().iterator();
    InterfaceType inter;
    while (interfaces.hasNext()) {
      inter = interfaces.next();
      resultSet.addAll(inter.allMethods());
    }

    // If it is a class, all methods of it's superclass.
    if (this instanceof ClassType) {
      ClassType superclass = ((ClassType) this).superclass();
View Full Code Here

    List<Field> visibleFields = new ArrayList<Field>();
    addVisibleFields(fields(), fieldNames, visibleFields);

    // All fields of the interfaces it implements.
    Iterator<InterfaceType> interfaces = interfaces().iterator();
    InterfaceType inter;
    while (interfaces.hasNext()) {
      inter = interfaces.next();
      addVisibleFields(inter.visibleFields(), fieldNames, visibleFields);
    }

    // If it is a class, all fields of it's superclass.
    if (this instanceof ClassType) {
      ClassType superclass = ((ClassType) this).superclass();
View Full Code Here

    // The fields of its own (own fields() command).
    resultSet.addAll(fields());

    // All fields of the interfaces it implements.
    Iterator<InterfaceType> interfaces = interfaces().iterator();
    InterfaceType inter;
    while (interfaces.hasNext()) {
      inter = interfaces.next();
      resultSet.addAll(inter.allFields());
    }

    // If it is a class, all fields of it's superclass.
    if (this instanceof ClassType) {
      ClassType superclass = ((ClassType) this).superclass();
View Full Code Here

TOP

Related Classes of com.sun.jdi.InterfaceType

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.