net.sourceforge.pmd.jsp.ast
public class JspParser extends Object implements JspParserTreeConstants, JspParserConstants
Field Summary | |
---|---|
protected JJTJspParserState | jjtree |
Token | jj_nt Next token. |
Token | token Current token. |
JspParserTokenManager | token_source Generated Token Manager. |
Constructor Summary | |
---|---|
JspParser(CharStream stream) Constructor with user supplied CharStream. | |
JspParser(JspParserTokenManager tm) Constructor with generated Token Manager. |
Method Summary | |
---|---|
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. |
void | ContentElementPossiblyWithText()
A single (non-text) element that can occur between a start- and end-tag of an element.
|
void | disable_tracing() Disable tracing. |
void | Declaration() |
void | DoctypeDeclaration() |
void | DoctypeExternalId() |
void | enable_tracing() Enable tracing. |
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() |
ParseException | generateParseException() Generate ParseException. |
Token | getNextToken() Get the next Token. |
Token | getToken(int index) Get the specific Token. |
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 | ValueBindingInAttribute() |