|
JSPTemplates | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.tp23.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(java.lang.String file,
JspCompilationContext ctx,
java.lang.String encoding)
|
Method Summary | |
void |
advance(int n)
|
static JspReader |
createJspReader(java.lang.String file,
JspCompilationContext ctx,
java.lang.String encoding)
|
java.lang.String |
getFile(int fileid)
|
boolean |
hasMoreInput()
|
Mark |
mark()
|
boolean |
matches(java.lang.String string)
|
boolean |
matchesIgnoreCase(java.lang.String string)
|
int |
nextChar()
|
void |
parseParamTag(java.util.Hashtable into)
Parse PARAM tag attributes into the given hashtable. |
void |
parsePluginParamTag(java.util.Hashtable into)
Parse jsp:param tag attributes into the given hashtable. |
java.util.Hashtable |
parseTagAttributes()
Parse some tag attributes. |
java.util.Hashtable |
parseTagAttributesBean()
Parse some tag attributes for Beans. |
java.lang.String |
parseToken(boolean quoted)
Parse a space delimited token. |
int |
peekChar()
|
boolean |
popFile()
|
void |
pushFile(java.lang.String name,
java.lang.String encoding)
Push a new file onto the stack. |
protected int |
registerSourceFile(java.lang.String file)
Register a new source file. |
void |
reset(Mark mark)
|
int |
skipSpaces()
|
Mark |
skipUntil(java.lang.String limit)
Skip until the given string is matched in the stream. |
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(java.lang.String file, JspCompilationContext ctx, java.lang.String encoding) throws ParseException, 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 void pushFile(java.lang.String name, java.lang.String encoding) throws ParseException, java.io.FileNotFoundException
name
- The name of the file.encoding
- The optional encoding for the file.public boolean popFile() throws ParseException
public static JspReader createJspReader(java.lang.String file, JspCompilationContext ctx, java.lang.String encoding) throws ParseException, java.io.FileNotFoundException
public boolean hasMoreInput() throws ParseException
public int nextChar() throws ParseException
public int peekChar()
public Mark mark()
public void reset(Mark mark)
public boolean matchesIgnoreCase(java.lang.String string) throws ParseException
public boolean matches(java.lang.String string) throws ParseException
public void advance(int n) throws ParseException
public int skipSpaces() throws ParseException
public Mark skipUntil(java.lang.String limit) throws ParseException
s
- The String to match.Mark
instance if found,
null otherwise.public java.lang.String parseToken(boolean quoted) throws ParseException
quoted
- If true accept quoted strings.public java.util.Hashtable parseTagAttributesBean() throws ParseException
tag-attrs := empty | attr-list (">" | "-->" | %>) attr-list := empty | av spaces attr-list empty := spacesWhere av is defined by
parseAttributeValue
.public java.util.Hashtable parseTagAttributes() throws ParseException
tag-attrs := empty | attr-list (">" | "-->" | %>) attr-list := empty | av spaces attr-list empty := spacesWhere av is defined by
parseAttributeValue
.public void parseParamTag(java.util.Hashtable into) throws ParseException
<PARAM tag-attributes %gt;Two special tag attributes are recognized here:
into
- Storage for parameter values.public void parsePluginParamTag(java.util.Hashtable into) throws ParseException
<jsp:param tag-attributes %gt;Two special tag attributes are recognized here:
into
- Storage for parameter values.
|
JSPTemplates | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |