Package net.sourceforge.pmd.lang.jsp.ast
Class JspParser
- java.lang.Object
-
- net.sourceforge.pmd.lang.jsp.ast.JspParser
-
- All Implemented Interfaces:
JspParserConstants
,JspParserTreeConstants
@Deprecated @InternalApi public class JspParser extends Object implements JspParserTreeConstants, JspParserConstants
Deprecated.JSP Parser for PMD.- Author:
- Pieter, Application Engineers NV/SA, http://www.ae.be
-
-
Field Summary
Fields Modifier and Type Field Description Token
jj_nt
Deprecated.Next token.protected JJTJspParserState
jjtree
Deprecated.Token
token
Deprecated.Current token.JspParserTokenManager
token_source
Deprecated.Generated Token Manager.-
Fields inherited from interface net.sourceforge.pmd.lang.jsp.ast.JspParserConstants
AfterTagState, 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_JSP_TAG_END_EXCEPT_QUOTED, 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
-
Fields inherited from interface net.sourceforge.pmd.lang.jsp.ast.JspParserTreeConstants
JJTATTRIBUTE, JJTATTRIBUTEVALUE, JJTCDATA, JJTCOMMENTTAG, JJTCOMPILATIONUNIT, JJTCONTENT, JJTDECLARATION, JJTDOCTYPEDECLARATION, JJTDOCTYPEEXTERNALID, JJTELEMENT, JJTELEXPRESSION, JJTHTMLSCRIPT, JJTJSPCOMMENT, JJTJSPDECLARATION, JJTJSPDIRECTIVE, JJTJSPDIRECTIVEATTRIBUTE, JJTJSPEXPRESSION, JJTJSPEXPRESSIONINATTRIBUTE, JJTJSPSCRIPTLET, jjtNodeName, JJTTEXT, JJTUNPARSEDTEXT, JJTVALUEBINDING, JJTVOID
-
-
Constructor Summary
Constructors Constructor Description JspParser(CharStream stream)
Deprecated.Constructor with user supplied CharStream.JspParser(JspParserTokenManager tm)
Deprecated.Constructor with generated Token Manager.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
Attribute()
Deprecated.void
AttributeValue()
Deprecated.The value of an attribute of an element.void
CData()
Deprecated.void
CommentTag()
Deprecated.ASTCompilationUnit
CompilationUnit()
Deprecated.The root of the AST of a JSP.void
Content()
Deprecated.Everything between a start-tag and the corresponding end-tag of an element (if an end tag exists).void
ContentElement()
Deprecated.A single (non-text) element that can occur between a start-tag and end-tag of an element.void
Declaration()
Deprecated.void
disable_tracing()
Deprecated.Disable tracing.void
DoctypeDeclaration()
Deprecated.void
DoctypeExternalId()
Deprecated.void
Element()
Deprecated.A XML element, either with a single empty tag, or with a starting and closing tag with optional contained content.String
ElExpression()
Deprecated.An EL expression, not within an attribute value.String
ElExpressionInAttribute()
Deprecated.void
enable_tracing()
Deprecated.Enable tracing.ParseException
generateParseException()
Deprecated.Generate ParseException.Token
getNextToken()
Deprecated.Get the next Token.Token
getToken(int index)
Deprecated.Get the specific Token.void
HtmlScript()
Deprecated.void
JspComment()
Deprecated.void
JspDeclaration()
Deprecated.void
JspDirective()
Deprecated.void
JspDirectiveAttribute()
Deprecated.void
JspExpression()
Deprecated.String
JspExpressionInAttribute()
Deprecated.void
JspScriptlet()
Deprecated.void
Prolog()
Deprecated.The optional prolog of a JSP, including (xml) declarations and DTD.String
QuoteIndependentAttributeValueContent()
Deprecated.Partial content of an attribute value that can contain all quotes.void
ReInit(CharStream stream)
Deprecated.Reinitialise.void
ReInit(JspParserTokenManager tm)
Deprecated.Reinitialise.void
Text()
Deprecated.This production groups all characters between two tags, where tag is an xml-tag "<...>" or a jsp-page-tag "<%...%>" or CDATA "<![CDATA[...]]>".String
UnparsedText()
Deprecated.String
UnparsedTextNoDoubleQuotes()
Deprecated.Text that contains no double quotes, and that does not contain the start of a EL expression or value binding.String
UnparsedTextNoSingleQuotes()
Deprecated.Text that contains no single quotes, and that does not contain the start of a EL expression or value binding.String
UnparsedTextNoWhitespace()
Deprecated.String
ValueBindingInAttribute()
Deprecated.
-
-
-
Field Detail
-
jjtree
protected JJTJspParserState jjtree
Deprecated.
-
token_source
public JspParserTokenManager token_source
Deprecated.Generated Token Manager.
-
token
public Token token
Deprecated.Current token.
-
jj_nt
public Token jj_nt
Deprecated.Next token.
-
-
Constructor Detail
-
JspParser
public JspParser(CharStream stream)
Deprecated.Constructor with user supplied CharStream.
-
JspParser
public JspParser(JspParserTokenManager tm)
Deprecated.Constructor with generated Token Manager.
-
-
Method Detail
-
CompilationUnit
public final ASTCompilationUnit CompilationUnit() throws ParseException
Deprecated.The root of the AST of a JSP.- Throws:
ParseException
-
Prolog
public final void Prolog() throws ParseException
Deprecated.The optional prolog of a JSP, including (xml) declarations and DTD.- Throws:
ParseException
-
Content
public final void Content() throws ParseException
Deprecated.Everything between a start-tag and the corresponding end-tag of an element (if an end tag exists).- Throws:
ParseException
-
ContentElement
public final void ContentElement() throws ParseException
Deprecated.A single (non-text) element that can occur between a start-tag and end-tag of an element.- Throws:
ParseException
-
JspDirective
public final void JspDirective() throws ParseException
Deprecated.- Throws:
ParseException
-
JspDirectiveAttribute
public final void JspDirectiveAttribute() throws ParseException
Deprecated.- Throws:
ParseException
-
JspScriptlet
public final void JspScriptlet() throws ParseException
Deprecated.- Throws:
ParseException
-
JspExpression
public final void JspExpression() throws ParseException
Deprecated.- Throws:
ParseException
-
JspDeclaration
public final void JspDeclaration() throws ParseException
Deprecated.- Throws:
ParseException
-
JspComment
public final void JspComment() throws ParseException
Deprecated.- Throws:
ParseException
-
Text
public final void Text() throws ParseException
Deprecated.This production groups all characters between two tags, where tag is an xml-tag "<...>" or a jsp-page-tag "<%...%>" or CDATA "<![CDATA[...]]>". Text consists of unparsed text and/or Expression Language expressions.- Throws:
ParseException
-
UnparsedText
public final String UnparsedText() throws ParseException
Deprecated.- Throws:
ParseException
-
UnparsedTextNoWhitespace
public final String UnparsedTextNoWhitespace() throws ParseException
Deprecated.- Throws:
ParseException
-
UnparsedTextNoSingleQuotes
public final String UnparsedTextNoSingleQuotes() throws ParseException
Deprecated.Text that contains no single quotes, and that does not contain the start of a EL expression or value binding.- Throws:
ParseException
-
UnparsedTextNoDoubleQuotes
public final String UnparsedTextNoDoubleQuotes() throws ParseException
Deprecated.Text that contains no double quotes, and that does not contain the start of a EL expression or value binding.- Throws:
ParseException
-
ElExpression
public final String ElExpression() throws ParseException
Deprecated.An EL expression, not within an attribute value.- Throws:
ParseException
-
ValueBindingInAttribute
public final String ValueBindingInAttribute() throws ParseException
Deprecated.- Throws:
ParseException
-
ElExpressionInAttribute
public final String ElExpressionInAttribute() throws ParseException
Deprecated.- Throws:
ParseException
-
CData
public final void CData() throws ParseException
Deprecated.- Throws:
ParseException
-
Element
public final void Element() throws ParseException
Deprecated.A XML element, either with a single empty tag, or with a starting and closing tag with optional contained content.- Throws:
ParseException
-
Attribute
public final void Attribute() throws ParseException
Deprecated.- Throws:
ParseException
-
AttributeValue
public final void AttributeValue() throws ParseException
Deprecated.The value of an attribute of an element. EL expressions, JSF value bindings, and JSP expressions are parsed as sub-nodes of the AttributeValue node.- Throws:
ParseException
-
QuoteIndependentAttributeValueContent
public final String QuoteIndependentAttributeValueContent() throws ParseException
Deprecated.Partial content of an attribute value that can contain all quotes. This groups EL expressions, value bindings, and JSP expressions.- Throws:
ParseException
-
JspExpressionInAttribute
public final String JspExpressionInAttribute() throws ParseException
Deprecated.- Throws:
ParseException
-
CommentTag
public final void CommentTag() throws ParseException
Deprecated.- Throws:
ParseException
-
Declaration
public final void Declaration() throws ParseException
Deprecated.- Throws:
ParseException
-
DoctypeDeclaration
public final void DoctypeDeclaration() throws ParseException
Deprecated.- Throws:
ParseException
-
DoctypeExternalId
public final void DoctypeExternalId() throws ParseException
Deprecated.- Throws:
ParseException
-
HtmlScript
public final void HtmlScript() throws ParseException
Deprecated.- Throws:
ParseException
-
ReInit
public void ReInit(CharStream stream)
Deprecated.Reinitialise.
-
ReInit
public void ReInit(JspParserTokenManager tm)
Deprecated.Reinitialise.
-
getNextToken
public final Token getNextToken()
Deprecated.Get the next Token.
-
getToken
public final Token getToken(int index)
Deprecated.Get the specific Token.
-
generateParseException
public ParseException generateParseException()
Deprecated.Generate ParseException.
-
enable_tracing
public final void enable_tracing()
Deprecated.Enable tracing.
-
disable_tracing
public final void disable_tracing()
Deprecated.Disable tracing.
-
-