org.jamon.parser
Class AbstractBodyParser.JavaSnippetTagEndDetector

java.lang.Object
  extended by org.jamon.parser.AbstractBodyParser.JavaSnippetTagEndDetector
All Implemented Interfaces:
TagEndDetector
Enclosing class:
AbstractBodyParser<Node extends AbstractBodyNode>

protected static class AbstractBodyParser.JavaSnippetTagEndDetector
extends java.lang.Object


Constructor Summary
protected AbstractBodyParser.JavaSnippetTagEndDetector()
           
 
Method Summary
 int checkEnd(char p_char)
          Check to see if we have reached the end of the current tag.
 ParserErrorImpl getEofError(org.jamon.api.Location p_startLocation)
          Called if we reach end of file while parsing java.
 void resetEndMatch()
          Called after parsing a section which cannot be part of a tag (and which was not passed to the checkEnd method).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractBodyParser.JavaSnippetTagEndDetector

protected AbstractBodyParser.JavaSnippetTagEndDetector()
Method Detail

checkEnd

public int checkEnd(char p_char)
Description copied from interface: TagEndDetector
Check to see if we have reached the end of the current tag.

Specified by:
checkEnd in interface TagEndDetector
Parameters:
p_char - The character just read.
Returns:
The number of characters comprising the end token, or 0 if the tag is not yet done.

getEofError

public ParserErrorImpl getEofError(org.jamon.api.Location p_startLocation)
Description copied from interface: TagEndDetector
Called if we reach end of file while parsing java. This will not be called if EOF is reached while inside a java quote.

Specified by:
getEofError in interface TagEndDetector
Returns:
A ParserError detailing the problem

resetEndMatch

public void resetEndMatch()
Description copied from interface: TagEndDetector
Called after parsing a section which cannot be part of a tag (and which was not passed to the checkEnd method). This method should reset any partial matches for an end token that may have been found.

Specified by:
resetEndMatch in interface TagEndDetector


jamon