Package com.sun.jdi

Examples of com.sun.jdi.Location


      setExceptionName(name);
      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


        Method method = clazz.concreteMethodByName(getMethodName(),
            getMethodSignature());
        if (method == null) {
          return null;
        }
        Location location = method.location();
        if (location == null || location.codeIndex() == -1) {
          return null;
        }
        BreakpointRequest req = type.virtualMachine()
            .eventRequestManager()
            .createBreakpointRequest(location);
View Full Code Here

      return false;
    }
    if (getOriginalStepStackDepth() != getUnderlyingFrameCount()) {
      return false;
    }
    Location origLocation = getOriginalStepLocation();
    if (origLocation == null) {
      return false;
    }
    // We cannot simply check if the two Locations are equal using the
    // equals()
    // method, since this checks the code index within the method. Even if
    // the
    // code indices are different, the line numbers may be the same, in
    // which case
    // we need to do the extra step into.
    Method origMethod = origLocation.method();
    Method currMethod = location.method();
    if (!origMethod.equals(currMethod)) {
      return false;
    }
    if (origLocation.lineNumber() != location.lineNumber()) {
      return false;
    }
    return true;
  }
View Full Code Here

        JDIStackFrame top = (JDIStackFrame) getTopStackFrame();
        if (top == null) {
          return;
        }
        setOriginalStepKind(getStepKind());
        Location location = top.getUnderlyingStackFrame().location();
        setOriginalStepLocation(location);
        setOriginalStepStackDepth(computeStackFrames().size());
        setStepRequest(createStepRequest());
        setPendingStepHandler(this);
        addJDIEventListener(this, getStepRequest());
View Full Code Here

     *            the request to augment
     */
    protected void attachFiltersToStepRequest(StepRequest request) {

      if (applyStepFilters() && isStepFiltersEnabled()) {
        Location currentLocation = getOriginalStepLocation();
        if (currentLocation == null
            || !JAVA_STRATUM_CONSTANT.equals(currentLocation
                .declaringType().defaultStratum())) {
          return;
        }
        // Removed the fix for bug 5587, to address bug 41510
        // //check if the user has already stopped in a filtered
View Full Code Here

     */
    public boolean handleEvent(Event event, JDIDebugTarget target,
        boolean suspendVote, EventSet eventSet) {
      try {
        StepEvent stepEvent = (StepEvent) event;
        Location currentLocation = stepEvent.location();

        if (!target.isStepThruFilters()) {
          if (shouldDoStepReturn()) {
            deleteStepRequest();
            createSecondaryStepRequest(StepRequest.STEP_OUT);
View Full Code Here

     *             if an exception occurs
     */
    protected boolean locationShouldBeFiltered(Location location)
        throws DebugException {
      if (applyStepFilters()) {
        Location origLocation = getOriginalStepLocation();
        if (origLocation != null) {
          return !locationIsFiltered(origLocation.method())
              && locationIsFiltered(location.method());
        }
      }
      return false;
    }
View Full Code Here

        // mark as invalid
        fDepth = -1;
        fStackFrame = null;
        return null;
      } else if (fDepth == depth) {
        Location location = frame.location();
        Method method = location.method();
        if (method.equals(fLocation.method())) {
          try {
            if (method.declaringType().defaultStratum()
                .equals("Java") || //$NON-NLS-1$
                equals(getSourceName(location),
View Full Code Here

        try
        {
            out.println( "Thread: \"" + thread.name() + '"' );
            for ( StackFrame frame : thread.frames() )
            {
                Location location = frame.location();
                StackTraceElement trace = new StackTraceElement( location.declaringType().name(),
                                                                 location.method().name(),
                                                                 sourceFileName( location ),
                                                                 location.lineNumber() );
                out.println( "\tat " + trace );
            }
        }
        catch ( IncompatibleThreadStateException e )
        {
View Full Code Here

TOP

Related Classes of com.sun.jdi.Location

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.