Package com.sun.jdi

Examples of com.sun.jdi.ClassType


      resultSet.addAll(inter.allMethods());
    }

    // If it is a class, all methods of it's superclass.
    if (this instanceof ClassType) {
      ClassType superclass = ((ClassType) this).superclass();
      if (superclass != null)
        resultSet.addAll(superclass.allMethods());
    }

    fAllMethods = new ArrayList<Method>(resultSet);
    return fAllMethods;
  }
View Full Code Here


      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();
      if (superclass != null)
        addVisibleFields(superclass.visibleFields(), fieldNames,
            visibleFields);
    }

    fVisibleFields = visibleFields;
    return fVisibleFields;
View Full Code Here

      resultSet.addAll(inter.allFields());
    }

    // If it is a class, all fields of it's superclass.
    if (this instanceof ClassType) {
      ClassType superclass = ((ClassType) this).superclass();
      if (superclass != null)
        resultSet.addAll(superclass.allFields());
    }

    fAllFields = new ArrayList<Field>(resultSet);
    return fAllFields;
  }
View Full Code Here

   * org.eclipse.jdt.debug.core.IJavaThread)
   */
  public IJavaObject newInstance(String signature, IJavaValue[] args,
      IJavaThread thread) throws DebugException {
    if (getUnderlyingType() instanceof ClassType) {
      ClassType clazz = (ClassType) getUnderlyingType();
      JDIThread javaThread = (JDIThread) thread;
      List<Value> arguments = convertArguments(args);
      Method method = null;
      try {
        List<Method> methods = clazz.methodsByName("<init>", signature); //$NON-NLS-1$
        if (methods.isEmpty()) {
          requestFailed(
              MessageFormat.format(
                  JDIDebugModelMessages.JDIClassType_Type_does_not_implement_cosntructor,
                  signature), null);
View Full Code Here

   * org.eclipse.jdt.debug.core.IJavaThread)
   */
  public IJavaValue sendMessage(String selector, String signature,
      IJavaValue[] args, IJavaThread thread) throws DebugException {
    if (getUnderlyingType() instanceof ClassType) {
      ClassType clazz = (ClassType) getUnderlyingType();
      JDIThread javaThread = (JDIThread) thread;
      List<Value> arguments = convertArguments(args);
      Method method = null;
      try {
        List<Method> methods = clazz.methodsByName(selector, signature);
        if (methods.isEmpty()) {
          requestFailed(
              MessageFormat.format(
                  JDIDebugModelMessages.JDIClassType_Type_does_not_implement_selector,
                  selector, signature), null);
View Full Code Here

   *
   * @see org.eclipse.jdt.debug.core.IJavaClassType#getSuperclass()
   */
  public IJavaClassType getSuperclass() throws DebugException {
    try {
      ClassType superclazz = ((ClassType) getUnderlyingType())
          .superclass();
      if (superclazz != null) {
        return (IJavaClassType) JDIType.createType(
            getJavaDebugTarget(), superclazz);
      }
View Full Code Here

TOP

Related Classes of com.sun.jdi.ClassType

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.