Package org.apache.tapestry

Examples of org.apache.tapestry.Location


            throw new TemplateParseException(
                Tapestry.format(
                    "TemplateParser.nested-ignore",
                    tagName,
                    Integer.toString(startLine)),
                new Location(_resourceLocation, startLine));

        if (!emptyTag)
            pushNewTag(tagName, startLine, isRemoveId, ignoreBody);

        // End any open block.
View Full Code Here


            throw new TemplateParseException(
                Tapestry.format(
                    "TemplateParser.content-block-may-not-be-ignored",
                    tagName,
                    Integer.toString(startLine)),
                new Location(_resourceLocation, startLine));

        if (emptyTag)
            throw new TemplateParseException(
                Tapestry.format(
                    "TemplateParser.content-block-may-not-be-empty",
                    tagName,
                    Integer.toString(startLine)),
                new Location(_resourceLocation, startLine));

        _tokens.clear();
        _blockStart = -1;

        Tag tag = new Tag(tagName, startLine);
View Full Code Here

     **/
   
    protected ILocation getCurrentLocation()
    {
      if (_currentLocation == null)
      _currentLocation = new Location(_resourceLocation, _line);
     
      return _currentLocation;
    }
View Full Code Here

        if (_lastLocation == null)
        {
            _lastLine = line;
            _lastColumn = column;
            _lastLocation = new Location(_resourceLocation, line, column);
        }

        return _lastLocation;
    }
View Full Code Here

            _line = line;
            _column = column;
        }

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

        return _location;
    }
View Full Code Here

            _line = line;
            _column = column;
        }

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

        return _location;
    }
View Full Code Here

            _line = line;
            _column = column;
        }

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

        return _location;
    }
View Full Code Here

        ITemplateParserDelegate delegate,
        IResourceLocation resourceLocation)
    {
        _templateData = templateData;
        _resourceLocation = resourceLocation;
        _templateLocation = new Location(resourceLocation);
        _delegate = delegate;
        _ignoring = false;
        _line = 1;
    }
View Full Code Here

        while (true)
        {
            if (_cursor >= length)
                templateParseProblem(
                    Tapestry.format("TemplateParser.comment-not-ended", Integer.toString(startLine)),
                    new Location(_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;
        ILocation startLocation = new Location(_resourceLocation, startLine);

        tagBeginEvent(startLine, _cursor);

        advance();
View Full Code Here

TOP

Related Classes of org.apache.tapestry.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.