| java.lang.Object com.sun.portal.providers.jsp.jasper3.jasper.compiler.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 |
currFileId | int currFileId(Code) | | |
isSpace | final boolean isSpace()(Code) | | |
nextContent | String 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.
|
parseParamTag | public void parseParamTag(Hashtable into) throws ParseException(Code) | | Parse PARAM tag attributes into the given hashtable.
Parses the PARAM tag as defined by:
<PARAM tag-attributes %gt;
Two special tag attributes are recognized here:
- The name attribute,
- The value attribute.
The resulting name, value pair is stored in the provided hash table.
Parameters: into - Storage for parameter values. |
parsePluginParamTag | public void parsePluginParamTag(Hashtable into) throws ParseException(Code) | | Parse jsp:param tag attributes into the given hashtable.
Parses the jsp:param tag as defined by:
<jsp:param tag-attributes %gt;
Two special tag attributes are recognized here:
- The name attribute,
- The value attribute.
The resulting name, value pair is stored in the provided hash table.
Parameters: into - Storage for parameter values. |
parseTagAttributes | public Hashtable parseTagAttributes() throws ParseException(Code) | | Parse some tag attributes.
The stream is assumed to be positioned right after the tag name. The
syntax recognized is:
tag-attrs := empty | attr-list (">" | "-->" | %>)
attr-list := empty | av spaces attr-list
empty := spaces
Where av is defined by parseAttributeValue .
A Hashtable mapping String instances (variable names) intoString instances (variable values). |
parseTagAttributesBean | public Hashtable parseTagAttributesBean() throws ParseException(Code) | | Parse some tag attributes for Beans.
The stream is assumed to be positioned right after the tag name. The
syntax recognized is:
tag-attrs := empty | attr-list (">" | "-->" | %>)
attr-list := empty | av spaces attr-list
empty := spaces
Where av is defined by parseAttributeValue .
A Hashtable mapping String instances (variable names) intoString instances (variable values). |
parseToken | public String parseToken(boolean quoted) throws ParseException(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) | | |
pushFile | public void pushFile(String name, String encoding) throws ParseException, FileNotFoundException(Code) | | Push a new file to be parsed onto the stack.
Parameters: inputFile - The fully qualified path of the file. Parameters: encoding - Optional encoding to read the file. |
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. |
skipUntil | public Mark skipUntil(String limit) throws ParseException(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 if found,null otherwise. |
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. |
|
|