Package com.sun.jdi

Examples of com.sun.jdi.Location.declaringType()


    public final static synchronized DroolsStackFrame createCustomFrame(DroolsThread thread,
                                                                        int depth,
                                                                        StackFrame currentFrame) {
        DroolsStackFrame customFrame;
        Location loc = currentFrame.location();
        if ( loc.declaringType().name().equals( "org.drools.core.base.mvel.MVELDebugHandler" ) && loc.method().name().equals( "onBreak" ) ) {
            customFrame = new MVELStackFrame( thread,
                                              currentFrame,
                                              depth );
        } else {
            customFrame = new DroolsStackFrame( thread,
View Full Code Here


    try {
      List<StackFrame> frames = threadRef.frames();
      for (int i=0; i<frames.size(); i++) {
        StackFrame frame = frames.get(i);
        Location loc = frame.location();
        String name = loc.declaringType().name() + "."
            + loc.method().name();
        String frameInfo = name + " line: " + loc.lineNumber();
        if (i == threadStack.getCurFrame()) {
          frameInfo = frameInfo + "  (current frame) ";
        }
View Full Code Here

     
      if (ref.isAtBreakpoint()) {
        Location loc = ref.frame(0).location();
        sb.append("(breakpoint at line ");
        sb.append(loc.lineNumber());
        sb.append(" in ").append(loc.declaringType().name());
        sb.append(") ");
      }
      sb.append(")").append(" uniqueId : ").append(ref.uniqueID());
      sb.append("\n");
     
View Full Code Here

    if (correctRef == null) return "no suspend thread";
    SuspendThreadStack threadStack = SuspendThreadStack.getInstance();
    ReferenceType refType;
    try {
      Location loc = correctRef.frame(0).location();
      refType = loc.declaringType();
      threadStack.setCurRefType(refType);
      threadStack.setCurThreadRef(correctRef);
      changeVimEditSourceLocaton(loc);
      return "success";
    } catch (IncompatibleThreadStateException e) {
View Full Code Here

    if (threadRef == null ) {
      return "no suspended thread";
    }
    try {
      Location loc = threadRef.frame(frameNum).location();
      ReferenceType refType= loc.declaringType();
      threadStack.setCurRefType(refType);
      threadStack.setCurFrame(frameNum);
      changeVimEditSourceLocaton(loc);
      return "success";
    } catch (IncompatibleThreadStateException e) {
View Full Code Here

    BreakpointManager bpm = BreakpointManager.getInstance();
    List<Breakpoint> allBreakpoints = bpm.getAllBreakpoints();
    Breakpoint breakpoint = null;
   
    Location loc = event.location();
    String className = loc.declaringType().name();
    int lineNum = loc.lineNumber();

    for (Breakpoint bp : allBreakpoints) {
      if (bp.getMainClass().equals(className) && bp.getLineNum() == lineNum) {
        breakpoint = bp;
View Full Code Here

    threadStack.setCurRefType(refType);
    threadStack.setCurThreadRef(threadRef);
   
    Location loc = event.location();
    Debugger debugger = Debugger.getInstance();
    String className = loc.declaringType().name();
    int lineNum = loc.lineNumber();

    CompilerContext ctx = debugger.getCompilerContext();
    String abPath = "None";
    try {
View Full Code Here

    public final static synchronized DroolsStackFrame createCustomFrame(DroolsThread thread,
                                                                        int depth,
                                                                        StackFrame currentFrame) {
        DroolsStackFrame customFrame;
        Location loc = currentFrame.location();
        if ( loc.declaringType().name().equals( "org.drools.base.mvel.MVELDebugHandler" ) && loc.method().name().equals( "onBreak" ) ) {
            customFrame = new MVELStackFrame( thread,
                                              currentFrame,
                                              depth );
        } else {
            customFrame = new DroolsStackFrame( thread,
View Full Code Here

    public final static synchronized DroolsStackFrame createCustomFrame(DroolsThread thread,
                                                                        int depth,
                                                                        StackFrame currentFrame) {
        DroolsStackFrame customFrame;
        Location loc = currentFrame.location();
        if ( loc.declaringType().name().equals( "org.drools.core.base.mvel.MVELDebugHandler" ) && loc.method().name().equals( "onBreak" ) ) {
            customFrame = new MVELStackFrame( thread,
                                              currentFrame,
                                              depth );
        } else {
            customFrame = new DroolsStackFrame( thread,
View Full Code Here

      if (getExclusionClassFilters().length >= 1
          || getInclusionClassFilters().length >= 1
          || filtersIncludeDefaultPackage(fInclusionClassFilters)
          || filtersIncludeDefaultPackage(fExclusionClassFilters)) {
        Location location = ((ExceptionEvent) event).location();
        String typeName = location.declaringType().name();
        boolean defaultPackage = typeName.indexOf('.') == -1;
        boolean included = true;
        String[] filters = getInclusionClassFilters();
        if (filters.length > 0) {
          included = matchesFilters(filters, typeName, defaultPackage);
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.