|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jasper.compiler.JspReader
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.
Field Summary | |
protected Mark |
current
|
Constructor Summary | |
protected |
JspReader(JspCompilationContext ctx,
java.lang.String file,
java.lang.String encoding,
java.io.InputStreamReader reader,
ErrorDispatcher err)
|
Method Summary | |
void |
advance(int n)
|
java.lang.String |
getFile(int fileid)
|
boolean |
hasMoreInput()
|
Mark |
mark()
|
boolean |
matches(java.lang.String string)
search the stream for a match to a string |
boolean |
matchesETag(java.lang.String tagName)
|
boolean |
matchesIgnoreCase(java.lang.String string)
|
int |
nextChar()
|
java.lang.String |
parseToken(boolean quoted)
Parse a space delimited token. |
int |
peekChar()
|
boolean |
popFile()
|
protected int |
registerSourceFile(java.lang.String file)
Register a new source file. |
void |
reset(Mark mark)
|
void |
setSingleFile(boolean val)
|
int |
skipSpaces()
|
Mark |
skipUntil(java.lang.String limit)
Skip until the given string is matched in the stream. |
Mark |
skipUntilETag(java.lang.String tag)
Skip until the given end tag is matched in the stream. |
Mark |
skipUntilIgnoreEsc(java.lang.String limit)
Skip until the given string is matched in the stream, but ignoring chars initially escaped by a '\'. |
protected int |
unregisterSourceFile(java.lang.String file)
Unregister the source file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Mark current
Constructor Detail |
protected JspReader(JspCompilationContext ctx, java.lang.String file, java.lang.String encoding, java.io.InputStreamReader reader, ErrorDispatcher err) throws JasperException, java.io.FileNotFoundException
Method Detail |
public java.lang.String getFile(int fileid)
protected int registerSourceFile(java.lang.String file)
protected int unregisterSourceFile(java.lang.String file)
public boolean popFile() throws JasperException
JasperException
public boolean hasMoreInput() throws JasperException
JasperException
public int nextChar() throws JasperException
JasperException
public int peekChar()
public Mark mark()
public void reset(Mark mark)
public boolean matchesIgnoreCase(java.lang.String string) throws JasperException
JasperException
public boolean matches(java.lang.String string) throws JasperException
string
- The string to match
JasperException
public boolean matchesETag(java.lang.String tagName) throws JasperException
JasperException
public void advance(int n) throws JasperException
JasperException
public int skipSpaces() throws JasperException
JasperException
public Mark skipUntil(java.lang.String limit) throws JasperException
limit
- The String to match.
Mark
instance (positioned immediately
before the search string) if found, null
otherwise.
JasperException
public Mark skipUntilIgnoreEsc(java.lang.String limit) throws JasperException
limit
- The String to match.
Mark
instance (positioned immediately
before the search string) if found, null
otherwise.
JasperException
public Mark skipUntilETag(java.lang.String tag) throws JasperException
tag
- The name of the tag whose ETag () to match.
Mark
instance (positioned immediately
before the ETag) if found, null otherwise.
JasperException
public java.lang.String parseToken(boolean quoted) throws JasperException
quoted
- If true accept quoted strings.
JasperException
public void setSingleFile(boolean val)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |