Package com.sun.jdi

Examples of com.sun.jdi.IntegerValue


      ClassLoaderReference clr = rt.classLoader();
      if(clr==null) return; //don't deal with bootstrap classloader
     
      try {
      String classLoaderClassName = clr.referenceType().name();
      IntegerValue vHashCode = (IntegerValue) simpleInvokeVMMethod(thr, clr, "hashCode");
      String iHashCode = Integer.toHexString(vHashCode.value());

      classJarsDebug(rt, thr, clr, classLoaderClassName, iHashCode);
      classloaderGetParentDebug(thr, clr, classLoaderClassName, iHashCode);
      } catch(Exception e) {
      e.printStackTrace();
View Full Code Here


      ObjectReference oParent = (ObjectReference) vParent;
     
      if(oParent!=null) {
        StringReference vParentToString = (StringReference) simpleInvokeVMMethod(thr, oParent, "toString");
        String parentToString = vParentToString.value();
        IntegerValue vParentHashCode = (IntegerValue) simpleInvokeVMMethod(thr, oParent, "hashCode");
        String iParentHashCode = Integer.toHexString(vParentHashCode.value());
        parentClassLoaders.put(iHashCode, iParentHashCode);
        classLoaderNames.put(iParentHashCode, parentToString);
      }
    }
    catch(NoSuchMethodException nsme) {
View Full Code Here

        }

        ReferenceType refType = (ReferenceType) debugHandlerClass;
        Method m = (Method) refType.methodsByName( "registerBreakpoint" ).iterator().next();
        List args = new ArrayList();
        IntegerValue lineVal = getVM().mirrorOf( line );
        StringReference nameVal = getVM().mirrorOf( sourceName );
        JDIObjectValue val = (JDIObjectValue) newValue( sourceName );
        ObjectReference realVal = val.getUnderlyingObject();
        args.add( nameVal );
        args.add( lineVal );
View Full Code Here

        }

        ReferenceType refType = (ReferenceType) debugHandlerClass;
        Method m = (Method) refType.methodsByName( "removeBreakpoint" ).iterator().next();
        List args = new ArrayList();
        IntegerValue lineVal = getVM().mirrorOf( line );
        StringReference nameVal = getVM().mirrorOf( sourceName );
        JDIObjectValue val = (JDIObjectValue) newValue( sourceName );
        ObjectReference realVal = val.getUnderlyingObject();
        args.add( nameVal );
        args.add( lineVal );
View Full Code Here

        try {
            Object o = getRemoteVar( "lineNumber" );
            if ( o == null ) {
                return -1;
            }
            IntegerValue val = (IntegerValue) o;
            int realval = val.value();
            ctxCache.setCacheBreakpointLineNumber( realval );
            return realval;
        } catch ( NullPointerException e ) {
            // Drools 5+
        } catch ( Throwable e ) {
            DroolsEclipsePlugin.log( e );
        }

        // Drools 5
        try {
            Object o = getRemoteVar( "label" );
            if ( o == null ) {
                return -1;
            }
            ObjectReference obj = (ObjectReference) o;
            ClassType frameType = (ClassType) obj.type();
            Field field = frameType.fieldByName( "lineNumber" );
            o = obj.getValue( field );
            if ( o == null ) {
                return -1;
            }
            IntegerValue val = (IntegerValue) o;
            int realval = val.value();
            ctxCache.setCacheBreakpointLineNumber( realval );
            return realval;
        } catch ( NullPointerException e ) {
            // Drools 5+
        } catch ( Throwable e ) {
View Full Code Here

        int line = step_over;

        ReferenceType refType = (ReferenceType) debugHandlerClass;
        Method m = (Method) refType.methodsByName( "setOnBreakReturn" ).iterator().next();
        List args = new ArrayList();
        IntegerValue lineVal = getVM().mirrorOf( line );
        //ObjectReference realVal = val.getUnderlyingObject();
        args.add( lineVal );

        try {
            ClassType tt = (ClassType) debugHandlerClass;
View Full Code Here

TOP

Related Classes of com.sun.jdi.IntegerValue

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.