Examples of IJavaType


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

    throws DebugException
  {
    String refTypeName = value.getReferenceTypeName();
    String valueString = value.getValueString();
    boolean isString = ViewUtils.isStringValue(value);
    IJavaType type = value.getJavaType();
    String signature = null;
    if (type != null) {
      signature = type.getSignature();
    }
    if ("V".equals(signature)) {
      valueString = ViewUtils.NO_EXPLICIT_RETURN_VALUE;
    }
    boolean isObject = isObjectValue(signature);
View Full Code Here

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

        if (!(value instanceof IJavaObject)) {
            return null;
        }
        IJavaObject javaValue = (IJavaObject) value;
        try {
            IJavaType type = javaValue.getJavaType();
            if (!(type instanceof IJavaClassType)) {
                return null;
            }
            IJavaStackFrame stackFrame = getStackFrame(javaValue);
            if (stackFrame == null) {
View Full Code Here

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

    // args are in reverse order
    for (int i = fArgCount - 1; i >= 0; i--) {
      args[i] = popValue();
    }

    IJavaType receiver = getType(fTypeName);
    IJavaValue result;
    if (receiver instanceof IJavaClassType) {
      result = ((IJavaClassType) receiver).sendMessage(fSelector,
          fSignature, args, getContext().getThread());
    } else {
View Full Code Here

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

    Object sourceElement = null;
    try {
      if (locator instanceof ISourceLookupDirector
          && !stackFrame.isStatic()) {
        IJavaType thisType = stackFrame.getThis().getJavaType();
        if (thisType instanceof IJavaReferenceType) {
          String[] sourcePaths = ((IJavaReferenceType) thisType)
              .getSourcePaths(null);
          if (sourcePaths != null && sourcePaths.length > 0) {
            sourceElement = ((ISourceLookupDirector) locator)
View Full Code Here

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

      IJavaProject javaProject = getJavaProject();
      // replace all occurrences of 'this' with '_a_t'
      String newSnippet = replaceThisReferences(snippet);

      int dimension = 1;
      IJavaType componentType = arrayType.getComponentType();
      while (componentType instanceof IJavaArrayType) {
        componentType = ((IJavaArrayType) componentType)
            .getComponentType();
        dimension++;
      }
View Full Code Here

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

  /**
   * @see Instruction#execute()
   */
  @Override
  public void execute() throws CoreException {
    IJavaType type = (IJavaType) pop();
    push(getClassObject(type));
  }
View Full Code Here

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

  /**
   * @see org.eclipse.jdt.internal.debug.eval.ast.instructions.Instruction#execute()
   */
  @Override
  public void execute() throws CoreException {
    IJavaType type;
    if (fIsPrimitiveType) {
      JDIDebugTarget debugTarget = (JDIDebugTarget) getVM();
      VirtualMachine vm = debugTarget.getVM();
      if (vm == null) {
        debugTarget
View Full Code Here

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

   */
  protected boolean queryInstallListeners(JDIDebugTarget target,
      ReferenceType type) {
    JDIDebugPlugin plugin = JDIDebugPlugin.getDefault();
    if (plugin != null) {
      IJavaType jt = null;
      if (type != null) {
        jt = JDIType.createType(target, type);
      }
      return plugin.fireInstalling(target, this, jt);
    }
View Full Code Here

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

  /*
   * @see Instruction#execute()
   */
  @Override
  public void execute() throws CoreException {
    IJavaType type = (IJavaType) pop();
    IJavaValue value = popValue();
    if (value instanceof JDINullValue) {
      pushNewValue(false);
      return;
    }
    IJavaObject object = (IJavaObject) value;

    IJavaObject classObject = getClassObject(type);
    if (classObject == null) {
      throw new CoreException(
          new Status(
              IStatus.ERROR,
              JDIDebugPlugin.getUniqueIdentifier(),
              IStatus.OK,
              NLS.bind(InstructionsEvaluationMessages.InstanceOfOperator_No_class_object,
                      new String[] { type.getName() }),
              null));
    }
    push(classObject.sendMessage(IS_INSTANCE, IS_INSTANCE_SIGNATURE,
        new IJavaValue[] { object }, getContext().getThread(), false));
  }
View Full Code Here

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

      for (int i = fExprDimension - 1; i >= 0; i--) {
        exprDimensions[i] = ((IJavaPrimitiveValue) popValue())
            .getIntValue();
      }

      IJavaType type = (IJavaType) pop();

      fCachedArrayTypes = new IJavaArrayType[fDimension + 1];

      for (int i = fDimension, lim = fDimension - fExprDimension; i > lim; i--) {
        fCachedArrayTypes[i] = (IJavaArrayType) 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.