| java.lang.Object com.rimfaxe.webserver.compiler.jsp.JspReader
JspReader | public class JspReader (Code) | | JspReader is an input buffer for the JSP parser. It should allow
unlimited lookahead and pushback. It also has a bunch of parsing
utility methods for understanding htmlesque thingies.
author: Anil K. Vijendran author: Anselm Baird-Smith author: Harish Prabandham author: Rajiv Mordani author: Mandar Raje author: Danno Ferrin author: Lars Andersen |
currFileId | int currFileId(Code) | | |
singleFile | boolean singleFile(Code) | | |
isSpace | final boolean isSpace()(Code) | | |
matches | public boolean matches(String string) throws JasperException(Code) | | search the stream for a match to a string
Parameters: string - The string to match true is one is found, the current positionin stream is positioned after the search string, false otherwise, position in stream unchanged. |
nextContent | char[] nextContent()(Code) | | Gets Content until the next potential JSP element. Because all elements
begin with a '<' we can just move until we see the next one.
|
parseToken | public String parseToken(boolean quoted) throws JasperException(Code) | | Parse a space delimited token.
If quoted the token will consume all characters up to a matching quote,
otherwise, it consumes up to the first delimiter character.
Parameters: quoted - If true accept quoted strings. |
peekChar | public int peekChar()(Code) | | |
registerSourceFile | protected int registerSourceFile(String file)(Code) | | Register a new source file.
This method is used to implement file inclusion. Each included file
gets a uniq identifier (which is the index in the array of source files).
The index of the now registered file. |
setSingleFile | public void setSingleFile(boolean val)(Code) | | |
skipUntil | public Mark skipUntil(String limit) throws JasperException(Code) | | Skip until the given string is matched in the stream.
When returned, the context is positioned past the end of the match.
Parameters: s - The String to match. A non-null Mark instance (positioned immediatelybefore the search string) if found, nullotherwise. |
skipUntilETag | public Mark skipUntilETag(String tag) throws JasperException(Code) | | Skip until the given end tag is matched in the stream.
When returned, the context is positioned past the end of the tag.
Parameters: tag - The name of the tag whose ETag () to match. A non-null Mark instance (positioned immediatelybefore the ETag) if found, null otherwise. |
skipUntilIgnoreEsc | public Mark skipUntilIgnoreEsc(String limit) throws JasperException(Code) | | Skip until the given string is matched in the stream, but ignoring
chars initially escaped by a '\'.
When returned, the context is positioned past the end of the match.
Parameters: s - The String to match. A non-null Mark instance (positioned immediatelybefore the search string) if found, nullotherwise. |
unregisterSourceFile | protected int unregisterSourceFile(String file)(Code) | | Unregister the source file.
This method is used to implement file inclusion. Each included file
gets a uniq identifier (which is the index in the array of source
files).
The index of the now registered file. |
|
|