Package com.sun.jdi

Examples of com.sun.jdi.ObjectReference


   * (non-Javadoc)
   *
   * @see org.eclipse.jdt.debug.core.IJavaFieldVariable#getObject()
   */
  public IJavaObject getReceiver() {
    ObjectReference objectReference = getObjectReference();
    if (objectReference == null) {
      return null;
    }
    return (IJavaObject) JDIValue.createValue(getJavaDebugTarget(),
        objectReference);
View Full Code Here


            return array.length() > 0;
        }
        // handle objects
        if (getType() == TYPE_OBJECT) { // this also rules out null
            // check if this object has any fields
            ObjectReference obj = (ObjectReference) value;
            return !obj.referenceType().visibleFields().isEmpty();
        }

        return false;
    }
View Full Code Here

                && exception.getStatus().getException() instanceof InvocationException) {
              // print the stack trace for the exception if an
              // *explicit* evaluation
              InvocationException invocationException = (InvocationException) exception
                  .getStatus().getException();
              ObjectReference exObject = invocationException
                  .exception();
              IJavaObject modelObject = (IJavaObject) JDIValue
                  .createValue(
                      (JDIDebugTarget) getDebugTarget(),
                      exObject);
View Full Code Here

                && exception.getStatus().getException() instanceof InvocationException) {
              // print the stack trace for the exception if an
              // *explicit* evaluation
              InvocationException invocationException = (InvocationException) exception
                  .getStatus().getException();
              ObjectReference exObject = invocationException
                  .exception();
              IJavaObject modelObject = (IJavaObject) JDIValue
                  .createValue(
                      (JDIDebugTarget) getDebugTarget(),
                      exObject);
View Full Code Here

        {
            return type.cast( value );
        }
        if ( value instanceof ObjectReference )
        {
            ObjectReference reference = (ObjectReference) value;
            if ( boxedType.getName().equals( reference.type().name() ) )
            {
                for ( Field field : reference.referenceType().fields() )
                {
                    try
                    {
                        if ( field.isStatic() && field.type() instanceof PrimitiveType )
                        {
                            return type.cast( reference.getValue( field ) );
                        }
                    }
                    catch ( ClassNotLoadedException e )
                    {
                        throw new IllegalStateException( e );
View Full Code Here

TOP

Related Classes of com.sun.jdi.ObjectReference

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.