org.jamon.parser
Interface TagEndDetector

All Known Implementing Classes:
AbstractBodyParser.JavaSnippetTagEndDetector, HashEndDetector

public interface TagEndDetector

A class to detect when we are done reading a tag.


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).
 

Method Detail

checkEnd

int checkEnd(char p_char)
Check to see if we have reached the end of the current tag.

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

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

Parameters:
startLocation - The location of the start of this java block (used to report errors)
Returns:
A ParserError detailing the problem

resetEndMatch

void resetEndMatch()
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.



jamon