Examples of LocationImpl


Examples of org.apache.hivemind.impl.LocationImpl

{
    private Location makeLocation(int line)
    {
        Resource r = new ClasspathResource(new DefaultClassResolver(), "/foo/bar");

        return new LocationImpl(r, line);
    }
View Full Code Here

Examples of org.apache.hivemind.impl.LocationImpl

    }

    public void testParseExceptionWithLocation()
    {
        Resource r = getResource("MethodSubject.class");
        Location l = new LocationImpl(r, 3);

        MethodSubject s = new MethodSubject();
        s.setLocation(l);

        _m.put("*(", s);
View Full Code Here

Examples of org.apache.hivemind.impl.LocationImpl

        if (line != _currentLine || column != _currentColumn)
            _location = null;

        if (_location == null)
            _location = new LocationImpl(_resource, line, column);

        return _location;
    }
View Full Code Here

Examples of org.apache.hivemind.impl.LocationImpl

    protected void beforeParse(char[] templateData, ITemplateParserDelegate delegate,
            Resource resourceLocation)
    {
        _templateData = templateData;
        _resourceLocation = resourceLocation;
        _templateLocation = new LocationImpl(resourceLocation);
        _delegate = delegate;
        _ignoring = false;
        _line = 1;
        _componentAttributeName = delegate.getComponentAttributeName();
    }
View Full Code Here

Examples of org.apache.tapestry.ioc.internal.util.LocationImpl

    private Location getCurrentLocation()
    {
        if (_locator == null) return null;

        return new LocationImpl(_templateResource, _locator.getLineNumber(), _locator
                .getColumnNumber());
    }
View Full Code Here

Examples of org.apache.tapestry5.ioc.internal.util.LocationImpl

        if (cachedLocation != null && cachedLocation.getLine() != lineNumber)
            cachedLocation = null;

        if (cachedLocation == null)
            cachedLocation = new LocationImpl(resource, lineNumber);

        return cachedLocation;
    }
View Full Code Here

Examples of org.apache.tapestry5.ioc.internal.util.LocationImpl

            if (cachedLocation == null)
            {
                // lineOffset accounts for the extra line when a doctype is injected. The line number reported
                // from the XML parser inlcudes the phantom doctype line, the lineOffset is used to subtract one
                // to get the real line number.
                cachedLocation = new LocationImpl(resource, line + lineOffset);
            }

            return cachedLocation;
        }
View Full Code Here

Examples of org.apache.tapestry5.ioc.internal.util.LocationImpl

            if (cachedLocation == null)
            {
                // lineOffset accounts for the extra line when a doctype is injected. The line number reported
                // from the XML parser inlcudes the phantom doctype line, the lineOffset is used to subtract one
                // to get the real line number.
                cachedLocation = new LocationImpl(resource, line + lineOffset);
            }

            return cachedLocation;
        }
View Full Code Here

Examples of org.eclipse.jdi.internal.LocationImpl

  /* (non-Javadoc)
   * @see com.sun.jdi.request.EventRequestManager#createBreakpointRequest(com.sun.jdi.Location)
   */
  public BreakpointRequest createBreakpointRequest(Location location) throws VMMismatchException {
    LocationImpl locImpl = (LocationImpl)location;
    BreakpointRequestImpl req = new BreakpointRequestImpl(virtualMachineImpl());
    req.addLocationFilter(locImpl);
    BREAKPOINT_TYPE.requests.add(req);
    return req;
  }
View Full Code Here

Examples of org.exist.debugger.model.LocationImpl

    //XXX: handle errors
    List<Location> variables = new ArrayList<Location>();
   
    NodeList children = response.getElemetsByName("stack");
    for (int i = 0; i < children.getLength(); i++) {
      variables.add(new LocationImpl(children.item(i)));
    }


    return variables;
  }
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.