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)
TagEndDetectorcheckEnd in interface TagEndDetectorcharacter - The character just read.public ParserErrorImpl getEofError(org.jamon.api.Location startLocation)
TagEndDetectorgetEofError in interface TagEndDetectorstartLocation - The location of the start of this java block (used to report errors)public void resetEndMatch()
TagEndDetectorresetEndMatch in interface TagEndDetectorpublic boolean endedWithHash()
true if the final character read was a hash ("#"), false if it was a "%>"
sequence.Copyright © 2003–2015 Jamon developers. All rights reserved.