Package org.apache.hivemind.impl

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


            _blockStart = _cursor;

        while (true)
        {
            if (_cursor >= length)
                templateParseProblem(ParseMessages.commentNotEnded(startLine), new LocationImpl(
                        _resourceLocation, startLine), startLine, _cursor);

            if (lookahead(COMMENT_END))
                break;
View Full Code Here

        int length = _templateData.length;
        String tagName = null;
        boolean endOfTag = false;
        boolean emptyTag = false;
        int startLine = _line;
        Location startLocation = new LocationImpl(_resourceLocation, startLine);

        tagBeginEvent(startLine, _cursor);

        advance();
View Full Code Here

        // a body.

        boolean ignoreBody = !emptyTag && (isRemoveId || !allowBody);

        if (_ignoring && ignoreBody)
            templateParseProblem(ParseMessages.nestedIgnore(tagName, startLine), new LocationImpl(
                    _resourceLocation, startLine), startLine, cursorStart);

        if (!emptyTag)
            pushNewTag(tagName, startLine, isRemoveId, ignoreBody);
View Full Code Here

            throws TemplateParseException
    {
        if (_ignoring)
            templateParseProblem(
                    ParseMessages.contentBlockMayNotBeIgnored(tagName, startLine),
                    new LocationImpl(_resourceLocation, startLine),
                    startLine,
                    cursorStart);

        if (emptyTag)
            templateParseProblem(
                    ParseMessages.contentBlockMayNotBeEmpty(tagName, startLine),
                    new LocationImpl(_resourceLocation, startLine),
                    startLine,
                    cursorStart);

        _tokens.clear();
        _blockStart = -1;
View Full Code Here

     */

    protected Location getCurrentLocation()
    {
        if (_currentLocation == null)
            _currentLocation = new LocationImpl(_resourceLocation, _line);

        return _currentLocation;
    }
View Full Code Here

        if (componentResource.getResourceURL() == null) {
           
            componentResource = new ClasspathResource(_classResolver, componentClass.getName().replace('.', '/'));
        }

        Location location = new LocationImpl(componentResource);

        spec.setLocation(location);
        spec.setSpecificationLocation(componentResource);
        spec.setComponentClassName(componentClass.getName());
View Full Code Here

            _line = line;
            _column = column;
        }

        if (_location == null)
            _location = new LocationImpl(_documentLocation, _line, _column);

        return _location;
    }
View Full Code Here

    public void test_Create_Relative_Directory_Asset()
    {
        IEngineService assetService = newService();
        Resource shell = new ClasspathResource(getClassResolver(),
            "/org/apache/tapestry/html/Shell.jwc");
        Location l = new LocationImpl(shell);
        IComponentSpecification spec = newSpec();
       
        replay();
       
        ClasspathAssetFactory factory = new ClasspathAssetFactory();
View Full Code Here

    public void test_Create_Relative_Directory_Missing_Asset()
    {
        IEngineService assetService = newService();
        Resource shell = new ClasspathResource(getClassResolver(),
            "/org/apache/tapestry/html/Shell.jwc");
        Location l = new LocationImpl(shell);
        IComponentSpecification spec = newSpec();
       
        replay();
       
        ClasspathAssetFactory factory = new ClasspathAssetFactory();
View Full Code Here

TOP

Related Classes of org.apache.hivemind.impl.LocationImpl

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.