public class JspParser extends Object implements JspParserTreeConstants, JspParserConstants
| Modifier and Type | Field and Description |
|---|---|
Token |
jj_nt
Next token.
|
protected JJTJspParserState |
jjtree |
Token |
token
Current token.
|
JspParserTokenManager |
token_source
Generated Token Manager.
|
JJTATTRIBUTE, JJTATTRIBUTEVALUE, JJTCDATA, JJTCOMMENTTAG, JJTCOMPILATIONUNIT, JJTCONTENT, JJTDECLARATION, JJTDOCTYPEDECLARATION, JJTDOCTYPEEXTERNALID, JJTELEMENT, JJTELEXPRESSION, JJTHTMLSCRIPT, JJTJSPCOMMENT, JJTJSPDECLARATION, JJTJSPDIRECTIVE, JJTJSPDIRECTIVEATTRIBUTE, JJTJSPEXPRESSION, JJTJSPEXPRESSIONINATTRIBUTE, JJTJSPSCRIPTLET, jjtNodeName, JJTTEXT, JJTUNPARSEDTEXT, JJTVALUEBINDING, JJTVOIDAfterTagState, ALPHA_CHAR, ALPHANUM_CHAR, ATTR_EQ, ATTR_NAME, AttrValueBetweenDoubleQuotesState, AttrValueBetweenSingleQuotesState, AttrValueNoQuotesState, AttrValueState, CDATA_END, CDATA_START, CDataState, COMMENT_END, COMMENT_START, COMMENT_TEXT, CommentState, DECL_END, DECL_START, DEFAULT, DOCTYPE_DECL_END, DOCTYPE_DECL_START, DocTypeExternalIdState, DocTypeState, DOLLAR_OR_HASH, DOLLAR_OR_HASH_DOUBLE_QUOTE, DOLLAR_OR_HASH_SINGLE_QUOTE, DOUBLE_QUOTE, EL_ESCAPE, EL_EXPRESSION, EL_EXPRESSION_IN_ATTRIBUTE, ENDING_DOUBLE_QUOTE, ENDING_SINGLE_QUOTE, ENDING_WHITESPACE, ENDTAG_START, EOF, HTML_SCRIPT_CONTENT, HTML_SCRIPT_END_TAG, HTML_SCRIPT_START, HtmlScriptContentState, IDENTIFIER, IDENTIFIER_CHAR, IN_ATTR_WHITESPACE, IN_TAG_ERROR, InTagState, JSP_COMMENT_CONTENT, JSP_COMMENT_END, JSP_COMMENT_START, JSP_DECLARATION, JSP_DECLARATION_END, JSP_DECLARATION_START, JSP_DIRECTIVE_ATTRIBUTE_EQUALS, JSP_DIRECTIVE_ATTRIBUTE_NAME, JSP_DIRECTIVE_ATTRIBUTE_VALUE, JSP_DIRECTIVE_END, JSP_DIRECTIVE_NAME, JSP_DIRECTIVE_START, JSP_EXPRESSION, JSP_EXPRESSION_END, JSP_EXPRESSION_IN_ATTRIBUTE, JSP_EXPRESSION_START, JSP_SCRIPTLET, JSP_SCRIPTLET_END, JSP_SCRIPTLET_START, JspCommentState, JspDeclarationState, JspDirectiveAttributesState, JspDirectiveState, JspExpressionState, JspScriptletState, LST_ERROR, NAME, NEWLINE, NO_ENDTAG_START, NO_JSP_COMMENT_END, NO_JSP_TAG_END, NO_LT_OR_DOLLAR_OR_HASH, NO_OPENBRACE, NO_QUOTE_NO_WHITESPACE, NO_WHITESPACE_OR_LT_OR_DOLLAR, NUM_CHAR, PUBLIC, QUOTE, QUOTED_LITERAL, QUOTED_STRING, QUOTED_STRING_NO_BREAKS, SINGLE_QUOTE, StartTagState, SYSTEM, TAG_END, TAG_NAME, TAG_SLASHEND, TAG_START, TEXT_IN_EL, tokenImage, UNPARSED, UNPARSED_TEXT, UNPARSED_TEXT_NO_DOUBLE_QUOTES, UNPARSED_TEXT_NO_SINGLE_QUOTES, UNPARSED_TEXT_NO_WHITESPACE, VALUE_BINDING_IN_ATTRIBUTE, WHITESPACE, WHITESPACES, XMLNAME| Constructor and Description |
|---|
JspParser(CharStream stream)
Constructor with user supplied CharStream.
|
JspParser(JspParserTokenManager tm)
Constructor with generated Token Manager.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Attribute() |
void |
AttributeValue()
The value of an attribute of an element.
|
void |
CData() |
void |
CommentTag() |
ASTCompilationUnit |
CompilationUnit()
The root of the AST of a JSP.
|
void |
Content()
Everything between a start-tag and the corresponding end-tag of an element (if an end tag exists).
|
void |
ContentElement()
A single (non-text) element that can occur between a start-tag and end-tag of an element.
|
void |
Declaration() |
void |
disable_tracing()
Disable tracing.
|
void |
DoctypeDeclaration() |
void |
DoctypeExternalId() |
void |
Element()
A XML element, either with a single empty tag, or with a starting and closing tag
with optional contained content.
|
String |
ElExpression()
An EL expression, not within an attribute value.
|
String |
ElExpressionInAttribute() |
void |
enable_tracing()
Enable tracing.
|
ParseException |
generateParseException()
Generate ParseException.
|
Token |
getNextToken()
Get the next Token.
|
Token |
getToken(int index)
Get the specific Token.
|
void |
HtmlScript() |
void |
JspComment() |
void |
JspDeclaration() |
void |
JspDirective() |
void |
JspDirectiveAttribute() |
void |
JspExpression() |
String |
JspExpressionInAttribute() |
void |
JspScriptlet() |
void |
Prolog()
The optional prolog of a JSP, including (xml) declarations and DTD.
|
String |
QuoteIndependentAttributeValueContent()
Partial content of an attribute value that can contain all quotes.
|
void |
ReInit(CharStream stream)
Reinitialise.
|
void |
ReInit(JspParserTokenManager tm)
Reinitialise.
|
void |
Text()
This production groups all characters between two tags, where
tag is an xml-tag "<...>" or a jsp-page-tag "<%...%>" or CDATA "".
|
String |
UnparsedText() |
String |
UnparsedTextNoDoubleQuotes()
Text that contains no double quotes, and that does not contain the start
of a EL expression or value binding.
|
String |
UnparsedTextNoSingleQuotes()
Text that contains no single quotes, and that does not contain the start
of a EL expression or value binding.
|
String |
UnparsedTextNoWhitespace() |
String |
ValueBindingInAttribute() |
protected JJTJspParserState jjtree
public JspParserTokenManager token_source
public Token token
public Token jj_nt
public JspParser(CharStream stream)
public JspParser(JspParserTokenManager tm)
public final ASTCompilationUnit CompilationUnit() throws ParseException
ParseExceptionpublic final void Prolog()
throws ParseException
ParseExceptionpublic final void Content()
throws ParseException
ParseExceptionpublic final void ContentElement()
throws ParseException
ParseExceptionpublic final void JspDirective()
throws ParseException
ParseExceptionpublic final void JspDirectiveAttribute()
throws ParseException
ParseExceptionpublic final void JspScriptlet()
throws ParseException
ParseExceptionpublic final void JspExpression()
throws ParseException
ParseExceptionpublic final void JspDeclaration()
throws ParseException
ParseExceptionpublic final void JspComment()
throws ParseException
ParseExceptionpublic final void Text()
throws ParseException
ParseExceptionpublic final String UnparsedText() throws ParseException
ParseExceptionpublic final String UnparsedTextNoWhitespace() throws ParseException
ParseExceptionpublic final String UnparsedTextNoSingleQuotes() throws ParseException
ParseExceptionpublic final String UnparsedTextNoDoubleQuotes() throws ParseException
ParseExceptionpublic final String ElExpression() throws ParseException
ParseExceptionpublic final String ValueBindingInAttribute() throws ParseException
ParseExceptionpublic final String ElExpressionInAttribute() throws ParseException
ParseExceptionpublic final void CData()
throws ParseException
ParseExceptionpublic final void Element()
throws ParseException
ParseExceptionpublic final void Attribute()
throws ParseException
ParseExceptionpublic final void AttributeValue()
throws ParseException
ParseExceptionpublic final String QuoteIndependentAttributeValueContent() throws ParseException
ParseExceptionpublic final String JspExpressionInAttribute() throws ParseException
ParseExceptionpublic final void CommentTag()
throws ParseException
ParseExceptionpublic final void Declaration()
throws ParseException
ParseExceptionpublic final void DoctypeDeclaration()
throws ParseException
ParseExceptionpublic final void DoctypeExternalId()
throws ParseException
ParseExceptionpublic final void HtmlScript()
throws ParseException
ParseExceptionpublic void ReInit(CharStream stream)
public void ReInit(JspParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
Copyright © 2002-2014 InfoEther. All Rights Reserved.