Logo Search packages:      
Sourcecode: velocity version File versions  Download package

org::apache::velocity::runtime::parser::Parser Class Reference

Inheritance diagram for org::apache::velocity::runtime::parser::Parser:

List of all members.


Detailed Description

This class is responsible for parsing a Velocity template. This class was generated by JavaCC using the JJTree extension to produce an Abstract Syntax Tree (AST) of the template.

Please look at the Parser.jjt file which is what controls the generation of this class.

Author:
Jason van Zyl

Geir Magnusson Jr.

Version:
Id
Parser.java,v 1.74 2002/04/27 19:33:30 geirm Exp

Definition at line 27 of file Parser.java.


Public Member Functions

final void AdditiveExpression () throws ParseException
final void Assignment () throws ParseException
final void Comment () throws ParseException
final void ConditionalAndExpression () throws ParseException
final void ConditionalOrExpression () throws ParseException
final SimpleNode Directive () throws ParseException
final int DirectiveArg () throws ParseException
final void disable_tracing ()
final void ElseIfStatement () throws ParseException
final void ElseStatement () throws ParseException
final void enable_tracing ()
final void EqualityExpression () throws ParseException
final void Escape () throws ParseException
final void EscapedDirective () throws ParseException
final void Expression () throws ParseException
final void False () throws ParseException
final ParseException generateParseException ()
Directive getDirective (String directive)
final Token getNextToken ()
final Token getToken (int index)
final void Identifier () throws ParseException
final void IfStatement () throws ParseException
final void IntegerRange () throws ParseException
boolean isDirective (String directive)
final void Method () throws ParseException
final void MultiplicativeExpression () throws ParseException
final void NumberLiteral () throws ParseException
final void ObjectArray () throws ParseException
final void Parameter () throws ParseException
SimpleNode parse (Reader reader, String templateName) throws ParseException
 Parser (ParserTokenManager tm)
 Parser (CharStream stream)
 Parser (RuntimeServices rs)
final void PrimaryExpression () throws ParseException
final SimpleNode process () throws ParseException
final void Reference () throws ParseException
void ReInit (ParserTokenManager tm)
void ReInit (CharStream stream)
final void RelationalExpression () throws ParseException
final void SetDirective () throws ParseException
void setDirectives (Hashtable directives)
final void Statement () throws ParseException
final void StopStatement () throws ParseException
final void StringLiteral () throws ParseException
final void Text () throws ParseException
final void True () throws ParseException
final void UnaryExpression () throws ParseException
final void Word () throws ParseException

Public Attributes

int ALPHA_CHAR = 53
int ALPHANUM_CHAR = 54
int COMMA = 3
int DEFAULT = 3
int DIGIT = 48
int DIRECTIVE = 0
int DIRECTIVE_CHAR = 51
int DIRECTIVE_TERMINATOR = 61
int DIVIDE = 31
int DOLLAR = 10
int DOLLARBANG = 11
int DOT = 57
int DOUBLE_ESCAPE = 16
int DOUBLEDOT = 4
int ELSE_DIRECTIVE = 46
int ELSEIF_DIRECTIVE = 45
int END = 43
int EQUALS = 42
int ESCAPE = 17
int ESCAPE_DIRECTIVE = 8
int FALSE = 26
int FORMAL_COMMENT = 20
int HASH = 15
int IDENTIFIER = 56
int IDENTIFIER_CHAR = 55
int IF_DIRECTIVE = 44
int IN_FORMAL_COMMENT = 7
int IN_MULTI_LINE_COMMENT = 6
int IN_SINGLE_LINE_COMMENT = 8
Token jj_nt
int JJTADDNODE = 32
int JJTANDNODE = 25
int JJTASSIGNMENT = 23
int JJTBLOCK = 10
int JJTCOMMENT = 4
int JJTDIRECTIVE = 9
int JJTDIVNODE = 35
int JJTELSEIFSTATEMENT = 20
int JJTELSESTATEMENT = 19
int JJTEQNODE = 26
int JJTESCAPE = 3
int JJTESCAPEDDIRECTIVE = 2
int JJTEXPRESSION = 22
int JJTFALSE = 16
int JJTGENODE = 31
int JJTGTNODE = 29
int JJTIDENTIFIER = 7
int JJTIFSTATEMENT = 18
int JJTINTEGERRANGE = 12
int JJTLENODE = 30
int JJTLTNODE = 28
int JJTMETHOD = 13
int JJTMODNODE = 36
int JJTMULNODE = 34
int JJTNENODE = 27
String[] jjtNodeName
int JJTNOTNODE = 37
int JJTNUMBERLITERAL = 5
int JJTOBJECTARRAY = 11
int JJTORNODE = 24
int JJTPROCESS = 0
int JJTREFERENCE = 14
int JJTSETDIRECTIVE = 21
int JJTSTRINGLITERAL = 6
int JJTSUBTRACTNODE = 33
int JJTTEXT = 17
int JJTTRUE = 15
int JJTVOID = 1
int JJTWORD = 8
int LBRACKET = 1
int LCURLY = 58
int LETTER = 50
int LOGICAL_AND = 33
int LOGICAL_EQUALS = 39
int LOGICAL_GE = 38
int LOGICAL_GT = 37
int LOGICAL_LE = 36
int LOGICAL_LT = 35
int LOGICAL_NOT = 41
int LOGICAL_NOT_EQUALS = 40
int LOGICAL_OR = 34
boolean lookingAhead = false
int LPAREN = 5
int MINUS = 28
int MODULUS = 32
int MULTI_LINE_COMMENT = 21
int MULTIPLY = 30
int NEWLINE = 27
int NUMBER_LITERAL = 49
int PLUS = 29
int PRE_DIRECTIVE = 4
int RBRACKET = 2
int RCURLY = 59
int REFERENCE = 5
int REFERENCE_TERMINATOR = 60
int REFMOD2 = 1
int REFMOD2_RPAREN = 7
int REFMODIFIER = 2
int RPAREN = 6
int SET_DIRECTIVE = 9
int SINGLE_LINE_COMMENT = 19
int STOP_DIRECTIVE = 47
int STRING_LITERAL = 24
int TEXT = 18
Token token
ParserTokenManager token_source
String[] tokenImage
int TRUE = 25
int WHITESPACE = 23
int WORD = 52

Protected Attributes

JJTParserState jjtree = new JJTParserState()

Package Attributes

String currentTemplateName = ""
int EOF = 0
VelocityCharStream velcharstream = null

Private Member Functions

String escapedDirective (String strImage)
final boolean jj_2_1 (int xla)
final boolean jj_2_10 (int xla)
final boolean jj_2_11 (int xla)
final boolean jj_2_2 (int xla)
final boolean jj_2_3 (int xla)
final boolean jj_2_4 (int xla)
final boolean jj_2_5 (int xla)
final boolean jj_2_6 (int xla)
final boolean jj_2_7 (int xla)
final boolean jj_2_8 (int xla)
final boolean jj_2_9 (int xla)
final boolean jj_3_1 ()
final boolean jj_3_10 ()
final boolean jj_3_11 ()
final boolean jj_3_2 ()
final boolean jj_3_3 ()
final boolean jj_3_4 ()
final boolean jj_3_5 ()
final boolean jj_3_6 ()
final boolean jj_3_7 ()
final boolean jj_3_8 ()
final boolean jj_3_9 ()
final boolean jj_3R_19 ()
final boolean jj_3R_20 ()
final boolean jj_3R_21 ()
final boolean jj_3R_22 ()
final boolean jj_3R_23 ()
final boolean jj_3R_24 ()
final boolean jj_3R_25 ()
final boolean jj_3R_26 ()
final boolean jj_3R_27 ()
final boolean jj_3R_28 ()
final boolean jj_3R_29 ()
final boolean jj_3R_30 ()
final boolean jj_3R_31 ()
final boolean jj_3R_32 ()
final boolean jj_3R_33 ()
final boolean jj_3R_34 ()
final boolean jj_3R_35 ()
final boolean jj_3R_36 ()
final boolean jj_3R_37 ()
final boolean jj_3R_38 ()
final boolean jj_3R_39 ()
final boolean jj_3R_40 ()
final boolean jj_3R_41 ()
final boolean jj_3R_42 ()
final boolean jj_3R_43 ()
final boolean jj_3R_44 ()
final boolean jj_3R_45 ()
final boolean jj_3R_46 ()
final boolean jj_3R_47 ()
final boolean jj_3R_48 ()
final boolean jj_3R_49 ()
final boolean jj_3R_50 ()
final boolean jj_3R_51 ()
final boolean jj_3R_52 ()
final boolean jj_3R_53 ()
final boolean jj_3R_54 ()
final boolean jj_3R_55 ()
final boolean jj_3R_56 ()
final boolean jj_3R_57 ()
final boolean jj_3R_58 ()
final boolean jj_3R_59 ()
final boolean jj_3R_60 ()
final boolean jj_3R_61 ()
final boolean jj_3R_62 ()
final boolean jj_3R_63 ()
final boolean jj_3R_64 ()
final boolean jj_3R_65 ()
final boolean jj_3R_66 ()
final boolean jj_3R_67 ()
final boolean jj_3R_68 ()
final boolean jj_3R_69 ()
final boolean jj_3R_70 ()
final boolean jj_3R_71 ()
final boolean jj_3R_72 ()
final boolean jj_3R_73 ()
final boolean jj_3R_74 ()
final boolean jj_3R_75 ()
final boolean jj_3R_76 ()
final boolean jj_3R_77 ()
final boolean jj_3R_78 ()
final boolean jj_3R_79 ()
final boolean jj_3R_80 ()
final boolean jj_3R_81 ()
final boolean jj_3R_82 ()
final boolean jj_3R_83 ()
final boolean jj_3R_84 ()
final boolean jj_3R_85 ()
final boolean jj_3R_86 ()
final boolean jj_3R_87 ()
final boolean jj_3R_88 ()
final boolean jj_3R_89 ()
void jj_add_error_token (int kind, int pos)
final Token jj_consume_token (int kind) throws ParseException
final int jj_ntk ()
final void jj_rescan_token ()
final void jj_save (int index, int xla)
final boolean jj_scan_token (int kind)

Private Attributes

Hashtable directives = new Hashtable(0)
final JJCalls[] jj_2_rtns = new JJCalls[11]
int jj_endpos
java.util.Vector jj_expentries = new java.util.Vector()
int[] jj_expentry
int jj_gc = 0
int jj_gen
int jj_kind = -1
int jj_la
final int[] jj_la1 = new int[55]
final int[] jj_la1_0 = {0x13f0360,0x0,0x13f0360,0x380000,0x1000000,0x6000002,0x800000,0x800000,0x800000,0x13f0360,0x8,0x7800002,0x800000,0x0,0x800000,0x800000,0x0,0x800000,0x800000,0x1000000,0x6000002,0x800000,0x8,0x7800002,0x0,0x0,0x0,0x1060060,0x800000,0x13f0360,0x0,0x0,0x0,0x13f0360,0x800000,0x13f0360,0x800000,0x800000,0x8000000,0x0,0x0,0x0,0x0,0x0,0x0,0x30000000,0x30000000,0xc0000000,0xc0000000,0x800000,0x7800022,0x800000,0x1000000,0x6000022,0x800000,}
final int[] jj_la1_1 = {0xf129000,0x9000,0xe120000,0x0,0x5120000,0x0,0x0,0x0,0x0,0xf129000,0x0,0x5020000,0x0,0x5020000,0x0,0x0,0x5020000,0x0,0x0,0x0,0x5020000,0x0,0x0,0x5020000,0x1000000,0x1000000,0x5000000,0xe020000,0x0,0xf129000,0x2000,0x2000,0x4000,0xf129000,0x0,0xf129000,0x0,0x0,0x0,0x4,0x2,0x180,0x180,0x78,0x78,0x0,0x0,0x1,0x1,0x0,0x5020000,0x0,0x5020000,0x0,0x0,}
Token jj_lastpos
int[] jj_lasttokens = new int[100]
int jj_ntk
boolean jj_rescan = false
Token jj_scanpos
boolean jj_semLA
RuntimeServices rsvc = null

Classes

class  JJCalls

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index