Examples of IJavaClassObject


Examples of org.eclipse.jdt.debug.core.IJavaClassObject

  }

  protected IJavaType getType(String qualifiedName) throws CoreException {
    // Force the class to be loaded, and record the class reference
    // for later use if there are multiple classes with the same name.
    IJavaClassObject classReference = getContext().classForName(
        qualifiedName);
    // Found many classes, look for the right one for this scope.
    if (classReference == null) {
      throw new CoreException(new Status(IStatus.ERROR,
          JDIDebugPlugin.getUniqueIdentifier(), IStatus.OK,
          NLS.bind(
              InstructionsEvaluationMessages.Instruction_No_type,
              new String[] { qualifiedName }), null));
    }
    return classReference.getInstanceType();
  }
View Full Code Here

Examples of org.eclipse.jdt.debug.core.IJavaClassObject

    } else if ("void".equals(name)) { //$NON-NLS-1$
      type = (IJavaReferenceType) getType("java.lang.Void"); //$NON-NLS-1$
    }
    if (type != null) {
      IJavaFieldVariable field = type.getField("TYPE"); //$NON-NLS-1$
      IJavaClassObject clazz = (IJavaClassObject) field.getValue();
      return clazz.getInstanceType();
    }
    throw new CoreException(new Status(IStatus.ERROR,
        JDIDebugPlugin.getUniqueIdentifier(), IStatus.OK,
        NLS.bind(
            InstructionsEvaluationMessages.Instruction_No_type,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.