Package net.sourceforge.pmd.lang.vf.ast
Class VfParser
- java.lang.Object
-
- net.sourceforge.pmd.lang.vf.ast.VfParser
-
- All Implemented Interfaces:
VfParserConstants,VfParserTreeConstants
@Deprecated @InternalApi public class VfParser extends Object implements VfParserTreeConstants, VfParserConstants
Deprecated.
-
-
Field Summary
Fields Modifier and Type Field Description Tokenjj_ntDeprecated.Next token.protected JJTVfParserStatejjtreeDeprecated.TokentokenDeprecated.Current token.VfParserTokenManagertoken_sourceDeprecated.Generated Token Manager.-
Fields inherited from interface net.sourceforge.pmd.lang.vf.ast.VfParserConstants
AfterTagState, ALPHA_CHAR, ALPHANUM_CHAR, AMP_AMP, ATTR_EQ, ATTR_NAME, AttrValueBetweenDoubleQuotesState, AttrValueBetweenSingleQuotesState, AttrValueNoQuotesState, AttrValueState, BYTE_ORDER_MARK, CDATA_END, CDATA_START, CDataState, CLOSEBRACE, COLON, COMMA, COMMENT_CLOSE_DQ, COMMENT_CLOSE_SCRIPT, COMMENT_CLOSE_SQ, COMMENT_END, COMMENT_INNER_TEXT_DQ, COMMENT_INNER_TEXT_SCRIPT, COMMENT_INNER_TEXT_SQ, COMMENT_OPEN_DQ, COMMENT_OPEN_SCRIPT, COMMENT_OPEN_SQ, COMMENT_START, COMMENT_TEXT, CommentState, COMMNT_END, COMMNT_START, CONCAT, CONCATEQ, DECL_END, DECL_START, DEFAULT, DIGITS, DIV, DIVEQ, DOCTYPE_DECL_END, DOCTYPE_DECL_START, DocTypeExternalIdState, DocTypeState, DOT, DOUBLE_EQ, DOUBLE_QUOTE, EL_EXPRESSION, EL_EXPRESSION_IN_ATTRIBUTE_DQ, EL_EXPRESSION_IN_ATTRIBUTE_NQ, EL_EXPRESSION_IN_ATTRIBUTE_SQ, EL_EXPRESSION_IN_SCRIPT, ElAttribTagStateDQ, ElAttribTagStateNQ, ElAttribTagStateSQ, ElInScriptState, ElTagState, END_OF_EL, END_OF_EL_ATTRIB_DQ, END_OF_EL_ATTRIB_NQ, END_OF_EL_ATTRIB_SQ, END_OF_EL_SCRIPT, ENDING_DOUBLE_QUOTE, ENDING_SINGLE_QUOTE, ENDING_WHITESPACE, ENDTAG_START, EOF, EQ, EXCL, EXP_DOT, FALSE, GE, GT, HTML_SCRIPT_CONTENT, HTML_SCRIPT_END_TAG, HTML_SCRIPT_START, HtmlScriptContentState, IDENTIFIER, IDENTIFIER_CHAR, IDENTIFIER_EL, IN_ATTR_WHITESPACE, IN_TAG_ERROR, InlineCommentStateDQ, InlineCommentStateScript, InlineCommentStateSQ, InTagState, LE, LPAREN, LSQUARE, LST_ERROR, LT, MINUS, MINUSEQ, MUL, MULEQ, NAME, NEWLINE, NO_BANG, NO_ENDTAG_START, NO_LT_OR_OPENBRACE, NO_QUOTE_NO_WHITESPACE, NO_WHITESPACE_OR_LT_OR_DOLLAR, NOT_EQ, NULL, NUM_CHAR, OPENBRACE, PERCENT, PIPE_PIPE, PLUS, PLUSEQ, POW, PUBLIC, QQ, QUOTE, QUOTED_LITERAL, QUOTED_STRING, QUOTED_STRING_NO_BREAKS, RPAREN, RSQUARE, SINGLE_QUOTE, StartTagState, STRING_LITERAL, SYSTEM, TAG_END, TAG_NAME, TAG_SLASHEND, TAG_START, TEXT_IN_EL, tokenImage, TRUE, UNPARSED, UNPARSED_TEXT, UNPARSED_TEXT_NO_DOUBLE_QUOTES, UNPARSED_TEXT_NO_SINGLE_QUOTES, UNPARSED_TEXT_NO_WHITESPACE, WHITESPACE, WHITESPACES, XMLNAME
-
Fields inherited from interface net.sourceforge.pmd.lang.vf.ast.VfParserTreeConstants
JJTARGUMENTS, JJTATTRIBUTE, JJTATTRIBUTEVALUE, JJTCDATA, JJTCOMPILATIONUNIT, JJTCONTENT, JJTDECLARATION, JJTDOCTYPEDECLARATION, JJTDOCTYPEEXTERNALID, JJTDOTEXPRESSION, JJTELEMENT, JJTELEXPRESSION, JJTEXPRESSION, JJTHTMLSCRIPT, JJTIDENTIFIER, JJTLITERAL, JJTNEGATIONEXPRESSION, jjtNodeName, JJTTEXT, JJTVOID
-
-
Constructor Summary
Constructors Constructor Description VfParser(CharStream stream)Deprecated.Constructor with user supplied CharStream.VfParser(VfParserTokenManager tm)Deprecated.Constructor with generated Token Manager.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidAdditiveExpression()Deprecated.voidArgumentList()Deprecated.voidArguments()Deprecated.voidAssignmentOperator()Deprecated.voidAttribute()Deprecated.voidAttributeValue()Deprecated.The value of an attribute of an element.voidBom()Deprecated.StringBooleanLiteral()Deprecated.voidCData()Deprecated.voidCommentExpression()Deprecated.voidCommentTag()Deprecated.ASTCompilationUnitCompilationUnit()Deprecated.The root of the AST of a VF.voidConcatExpression()Deprecated.voidConditionalAndExpression()Deprecated.voidConditionalExpression()Deprecated.voidConditionalOrExpression()Deprecated.voidContent()Deprecated.Everything between a start-tag and the corresponding end-tag of an element (if an end tag exists).voidContentElement()Deprecated.A single (non-text) element that can occur between a start-tag and end-tag of an element.voidDeclaration()Deprecated.voiddisable_tracing()Deprecated.Disable tracing.voidDoctypeDeclaration()Deprecated.voidDoctypeExternalId()Deprecated.voidDotExpression()Deprecated.voidELDQCommentExpression()Deprecated.voidElement()Deprecated.A XML element, either with a single empty tag, or with a starting and closing tag with optional contained content.voidElExpression()Deprecated.An EL expression, not within an attribute value.voidElExpressionInAttribute()Deprecated.voidElExpressionInScript()Deprecated.voidElOrText()Deprecated.This production groups all characters between two tags, where tag is an xml-tag "<...>" or CDATA "<![CDATA[...]]>".voidELSQCommentExpression()Deprecated.voidenable_tracing()Deprecated.Enable tracing.voidEqualityExpression()Deprecated.voidExpression()Deprecated.ParseExceptiongenerateParseException()Deprecated.Generate ParseException.TokengetNextToken()Deprecated.Get the next Token.TokengetToken(int index)Deprecated.Get the specific Token.voidHtmlScript()Deprecated.voidHtmlScriptContent()Deprecated.voidIdentifier()Deprecated.voidLiteral()Deprecated.voidMultiplicativeExpression()Deprecated.voidNegationExpression()Deprecated.StringNullLiteral()Deprecated.voidPowerExpression()Deprecated.voidPrimaryExpression()Deprecated.voidPrimaryPrefix()Deprecated.voidPrimarySuffix()Deprecated.voidProlog()Deprecated.The optional prolog of a VF, including (xml) declarations and DTD.voidReInit(CharStream stream)Deprecated.Reinitialise.voidReInit(VfParserTokenManager tm)Deprecated.Reinitialise.voidRelationalExpression()Deprecated.voidText()Deprecated.voidUnaryExpression()Deprecated.voidUnparsedTextNoDoubleQuotes()Deprecated.Text that contains no double quotes, and that does not contain the start of a EL expression.voidUnparsedTextNoSingleQuotes()Deprecated.Text that contains no single quotes, and that does not contain the start of a EL expression.voidUnparsedTextNoWhitespace()Deprecated.
-
-
-
Field Detail
-
jjtree
protected JJTVfParserState jjtree
Deprecated.
-
token_source
public VfParserTokenManager token_source
Deprecated.Generated Token Manager.
-
token
public Token token
Deprecated.Current token.
-
jj_nt
public Token jj_nt
Deprecated.Next token.
-
-
Constructor Detail
-
VfParser
public VfParser(CharStream stream)
Deprecated.Constructor with user supplied CharStream.
-
VfParser
public VfParser(VfParserTokenManager tm)
Deprecated.Constructor with generated Token Manager.
-
-
Method Detail
-
CompilationUnit
public final ASTCompilationUnit CompilationUnit() throws ParseException
Deprecated.The root of the AST of a VF.- Throws:
ParseException
-
Prolog
public final void Prolog() throws ParseExceptionDeprecated.The optional prolog of a VF, including (xml) declarations and DTD.- Throws:
ParseException
-
Bom
public final void Bom() throws ParseExceptionDeprecated.- Throws:
ParseException
-
Content
public final void Content() throws ParseExceptionDeprecated.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 ParseExceptionDeprecated.A single (non-text) element that can occur between a start-tag and end-tag of an element.- Throws:
ParseException
-
ElOrText
public final void ElOrText() throws ParseExceptionDeprecated.This production groups all characters between two tags, where tag is an xml-tag "<...>" or CDATA "<![CDATA[...]]>". Text consists of unparsed text and/or Expression Language expressions.- Throws:
ParseException
-
Text
public final void Text() throws ParseExceptionDeprecated.- Throws:
ParseException
-
UnparsedTextNoWhitespace
public final void UnparsedTextNoWhitespace() throws ParseExceptionDeprecated.- Throws:
ParseException
-
UnparsedTextNoSingleQuotes
public final void UnparsedTextNoSingleQuotes() throws ParseExceptionDeprecated.Text that contains no single quotes, and that does not contain the start of a EL expression.- Throws:
ParseException
-
UnparsedTextNoDoubleQuotes
public final void UnparsedTextNoDoubleQuotes() throws ParseExceptionDeprecated.Text that contains no double quotes, and that does not contain the start of a EL expression.- Throws:
ParseException
-
ElExpression
public final void ElExpression() throws ParseExceptionDeprecated.An EL expression, not within an attribute value.- Throws:
ParseException
-
Expression
public final void Expression() throws ParseExceptionDeprecated.- Throws:
ParseException
-
AssignmentOperator
public final void AssignmentOperator() throws ParseExceptionDeprecated.- Throws:
ParseException
-
ConditionalExpression
public final void ConditionalExpression() throws ParseExceptionDeprecated.- Throws:
ParseException
-
ConditionalOrExpression
public final void ConditionalOrExpression() throws ParseExceptionDeprecated.- Throws:
ParseException
-
ConditionalAndExpression
public final void ConditionalAndExpression() throws ParseExceptionDeprecated.- Throws:
ParseException
-
PowerExpression
public final void PowerExpression() throws ParseExceptionDeprecated.- Throws:
ParseException
-
ConcatExpression
public final void ConcatExpression() throws ParseExceptionDeprecated.- Throws:
ParseException
-
EqualityExpression
public final void EqualityExpression() throws ParseExceptionDeprecated.- Throws:
ParseException
-
RelationalExpression
public final void RelationalExpression() throws ParseExceptionDeprecated.- Throws:
ParseException
-
AdditiveExpression
public final void AdditiveExpression() throws ParseExceptionDeprecated.- Throws:
ParseException
-
MultiplicativeExpression
public final void MultiplicativeExpression() throws ParseExceptionDeprecated.- Throws:
ParseException
-
UnaryExpression
public final void UnaryExpression() throws ParseExceptionDeprecated.- Throws:
ParseException
-
PrimaryExpression
public final void PrimaryExpression() throws ParseExceptionDeprecated.- Throws:
ParseException
-
ELSQCommentExpression
public final void ELSQCommentExpression() throws ParseExceptionDeprecated.- Throws:
ParseException
-
ELDQCommentExpression
public final void ELDQCommentExpression() throws ParseExceptionDeprecated.- Throws:
ParseException
-
CommentExpression
public final void CommentExpression() throws ParseExceptionDeprecated.- Throws:
ParseException
-
PrimaryPrefix
public final void PrimaryPrefix() throws ParseExceptionDeprecated.- Throws:
ParseException
-
PrimarySuffix
public final void PrimarySuffix() throws ParseExceptionDeprecated.- Throws:
ParseException
-
NegationExpression
public final void NegationExpression() throws ParseExceptionDeprecated.- Throws:
ParseException
-
DotExpression
public final void DotExpression() throws ParseExceptionDeprecated.- Throws:
ParseException
-
Arguments
public final void Arguments() throws ParseExceptionDeprecated.- Throws:
ParseException
-
ArgumentList
public final void ArgumentList() throws ParseExceptionDeprecated.- Throws:
ParseException
-
Literal
public final void Literal() throws ParseExceptionDeprecated.- Throws:
ParseException
-
BooleanLiteral
public final String BooleanLiteral() throws ParseException
Deprecated.- Throws:
ParseException
-
NullLiteral
public final String NullLiteral() throws ParseException
Deprecated.- Throws:
ParseException
-
Identifier
public final void Identifier() throws ParseExceptionDeprecated.- Throws:
ParseException
-
ElExpressionInAttribute
public final void ElExpressionInAttribute() throws ParseExceptionDeprecated.- Throws:
ParseException
-
ElExpressionInScript
public final void ElExpressionInScript() throws ParseExceptionDeprecated.- Throws:
ParseException
-
CData
public final void CData() throws ParseExceptionDeprecated.- Throws:
ParseException
-
Element
public final void Element() throws ParseExceptionDeprecated.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 ParseExceptionDeprecated.- Throws:
ParseException
-
AttributeValue
public final void AttributeValue() throws ParseExceptionDeprecated.The value of an attribute of an element. EL expressions are parsed as sub-nodes of the AttributeValue node.- Throws:
ParseException
-
CommentTag
public final void CommentTag() throws ParseExceptionDeprecated.- Throws:
ParseException
-
Declaration
public final void Declaration() throws ParseExceptionDeprecated.- Throws:
ParseException
-
DoctypeDeclaration
public final void DoctypeDeclaration() throws ParseExceptionDeprecated.- Throws:
ParseException
-
DoctypeExternalId
public final void DoctypeExternalId() throws ParseExceptionDeprecated.- Throws:
ParseException
-
HtmlScript
public final void HtmlScript() throws ParseExceptionDeprecated.- Throws:
ParseException
-
HtmlScriptContent
public final void HtmlScriptContent() throws ParseExceptionDeprecated.- Throws:
ParseException
-
ReInit
public void ReInit(CharStream stream)
Deprecated.Reinitialise.
-
ReInit
public void ReInit(VfParserTokenManager 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.
-
-