| java.lang.Object org.apache.jasper.compiler.JspReader
JspReader | 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: Kin-man Chung author: Shawn Bayern author: Mark Roth |
getFile | String getFile(int fileid)(Code) | | Returns the file at the given position in the list.
Parameters: fileid - The file position in the list The file at that position, if found, null otherwise |
getJspCompilationContext | JspCompilationContext getJspCompilationContext()(Code) | | JSP compilation context with which this JspReader is associated |
hasMoreInput | boolean hasMoreInput() throws JasperException(Code) | | Checks if the current file has more input.
True if more reading is possible throws: JasperException - if an error occurs |
matches | 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. |
matchesOptionalSpacesFollowedBy | boolean matchesOptionalSpacesFollowedBy(String s) throws JasperException(Code) | | Looks ahead to see if there are optional spaces followed by
the given String. If so, true is returned and those spaces and
characters are skipped. If not, false is returned and the
position is restored to where we were before.
|
parseToken | 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. |
pushChar | void pushChar()(Code) | | Back up the current cursor by one char, assumes current.cursor > 0,
and that the char to be pushed back is not '\n'.
|
setSingleFile | void setSingleFile(boolean val)(Code) | | |
skipUntil | 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 | 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 | 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. |
|
|