public class HashEndDetector extends Object implements TagEndDetector
TagEndDetector
which will end either on a "%>" sequence or a hash sign ("#").Constructor and Description |
---|
HashEndDetector() |
Modifier and Type | Method and Description |
---|---|
int |
checkEnd(char character)
Check to see if we have reached the end of the current tag.
|
boolean |
endedWithHash() |
ParserErrorImpl |
getEofError(org.jamon.api.Location 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).
|
public int checkEnd(char character)
TagEndDetector
checkEnd
in interface TagEndDetector
character
- The character just read.public ParserErrorImpl getEofError(org.jamon.api.Location startLocation)
TagEndDetector
getEofError
in interface TagEndDetector
startLocation
- The location of the start of this java block (used to report errors)public void resetEndMatch()
TagEndDetector
resetEndMatch
in interface TagEndDetector
public boolean endedWithHash()
true
if the final character read was a hash ("#"), false if it was a "%>"
sequence.Copyright © 2003–2017 Jamon developers. All rights reserved.