anvil.script.parser
Class StatementParser

java.lang.Object
  |
  +--anvil.script.parser.ParserBase
        |
        +--anvil.script.parser.StatementParser
All Implemented Interfaces:
ErrorListener, ParserBaseConstants, ParserInterface

public class StatementParser
extends ParserBase

class StatementParser


Nested Class Summary
 
Nested classes inherited from class anvil.script.parser.ParserBase
ParserBase.Scanner, ParserBase.SetScanner
 
Field Summary
 
Fields inherited from class anvil.script.parser.ParserBase
_nodes, _statement, _token, _tokenizer, ASSIGNMENT_SCANNER, SEMICOLON_SCANNER
 
Fields inherited from interface anvil.script.parser.ParserBaseConstants
ARROW, AS, ASSERT, ASSIGN, ASSIGN_ADD, ASSIGN_CONCAT, ASSIGN_DIVIDE, ASSIGN_INIT, ASSIGN_MULTIPLY, ASSIGN_REMAINDER, ASSIGN_SUBST, ASSIGN_SUBSTRACT, AT, BEGIN, BEGIN_LIST, BOOLEAN, BOOLEAN_AND, BOOLEAN_AND2, BOOLEAN_OR, BOOLEAN_OR2, BOOLEAN_XOR, BOOLEAN_XOR2, BREAK, CARET, CASE, CATCH, CLASS, CLASSOF, CLONEOF, CLOSE, CLOSE_BRACKET, COLON, COMMA, COMMENT, COMPARE, CONST, CONTINUE, COPYOF, DEFAULT, DEFINED, DELETE, DO, DOC_COMMENT, DOT, ELSE, EMBED_END, EMBED_START, END, EOF, EQUAL, ET, EXACT_COMPARE, EXACT_EQUAL, EXACT_NOT_EQUAL, EXIT, EXTENDS, FALSE, FINALLY, FLOAT, FLOATING_POINT_LITERAL, FOR, FOREACH, FUNCTION, GREATER, GREATER_OR_EQUAL, HAS, HOOK, HOOKHOOK, IF, IMPLEMENTS, IMPORT, IN, INF, INT, INTEGER_LITERAL, INTERFACE, IS, LESS, LESS_OR_EQUAL, MAP, MATCH, MINUS, MINUSMINUS, MODULE, MY, NAMESPACE, NEGATION, NEW, NO_MATCH, NOT_EQUAL, NULL, OPEN, OPEN_BRACKET, PATTERN, PIPE, PLUS, PLUSPLUS, PRAGMA, PRINT, PRINTBR, PRINTLN, QUOTE, RANGE, REMAINDER, RETURN, SEMICOLON, SIZEOF, SLASH, STAR, STATIC, STRING, STRING_LITERAL, SUPER, SWITCH, SYMBOL, SYNCHRONIZED, THIS, THROW, tokenImage, TRUE, TRY, TYPEOF, UNDEFINED, VAR, WHILE, WHITESPACE, YIELD
 
Constructor Summary
StatementParser(TemplateParser parser, Location location, java.lang.String code)
           
 
Method Summary
 void error(Location location, java.lang.String message)
           
 void error(Location location, java.lang.Throwable throwable)
           
 int errors()
           
 ModuleEnvelope getEnvelope()
           
 java.util.Iterator getEvents()
           
 SourceFile getSourceFile()
           
 void merge(ErrorListener listener)
           
 void parseStatements()
           
 Location toLocation(int line, int column)
           
 
Methods inherited from class anvil.script.parser.ParserBase
AdditiveExpression, Argument, ArgumentList, ArrayArgument, ArrayConstruct, AssertStatement, AssignableExpression, AssignmentExpression, BlockStatement, BreakStatement, Case, CatchStatement, Class, ClassDeclarations, Comprehension, ComprehensionForeach, ComprehensionIf, ConditionalExpression, Constant, ConstantPart, ContinueStatement, Declarations, Default, DoStatement, eat, eat, eatIf, eatModifiers, EmbeddedValueExpression, EntitiesToImport, EntityRef, EntityToImport, eof, EqualityExpression, errorYank, EtSymbol, ExitStatement, Expression, ExpressionStart, ExpressionStatement, FinallyStatement, flowPeek, flowPop, flowPush, flowPushChild, ForeachExpression, ForeachExpressions, ForeachHeader, ForeachStatement, ForExpressionList, ForStatement, Function, getCurrentStatement, getEnclosingTryBlock, IfStatement, Import, InExpression, InlineFunction, Interface, InterfaceDeclarations, InterfaceMethod, InterfaceRef, Interfaces, IsExpression, isExpressionStart, LazyExpression, List, ListConstruct, ListExpression, Literal, LogicalAndExpression, LogicalORExpression, LogicalXORExpression, lookAhead, lookAhead, lookAheadOneOf, lookAheadOneOf, lookAheadOneOf, MappingExpression, MatchExpression, Module, MultiplicativeExpression, Name, Namespace, NamespacePart, NewExpression, ObjectConstruct, Parameter, ParameterList, parse, parseError, peek, peek, peekKind, peekKind, PipeExpression, pop, PostfixExpression, Pragma, Primary, PrintStatement, push, QuotedWords, RangeExpression, RelationalExpression, ReturnStatement, scan, scan, scanForModified, StandaloneStatements, Statement, StatementModifier, Statements, SwitchStatement, Symbol, Symbol, SynchronizedStatement, syntaxError, TerminalArgumentList, TerminalAssignableExpression, TerminalAssignmentExpression, TerminalExpression, TerminalForeachAssignmentExpression, TerminalForExpressionList, TerminalFunctionParameterList, TerminalList, TerminalValueExpression, ThrowStatement, toLocation, TryStatement, UnaryExpression, ValueExpression, Variable, VariablePart, WhileStatement, YieldStatement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatementParser

public StatementParser(TemplateParser parser,
                       Location location,
                       java.lang.String code)
Method Detail

getSourceFile

public SourceFile getSourceFile()
Specified by:
getSourceFile in interface ParserInterface
Specified by:
getSourceFile in class ParserBase

getEnvelope

public ModuleEnvelope getEnvelope()
Specified by:
getEnvelope in interface ParserInterface
Specified by:
getEnvelope in class ParserBase

toLocation

public Location toLocation(int line,
                           int column)
Specified by:
toLocation in interface ParserInterface
Specified by:
toLocation in class ParserBase

error

public void error(Location location,
                  java.lang.Throwable throwable)
Specified by:
error in interface ErrorListener
Specified by:
error in class ParserBase

error

public void error(Location location,
                  java.lang.String message)
Specified by:
error in interface ErrorListener
Specified by:
error in class ParserBase

errors

public int errors()
Specified by:
errors in interface ErrorListener
Specified by:
errors in class ParserBase

getEvents

public java.util.Iterator getEvents()
Specified by:
getEvents in interface ErrorListener
Specified by:
getEvents in class ParserBase

merge

public void merge(ErrorListener listener)
Specified by:
merge in interface ErrorListener
Specified by:
merge in class ParserBase

parseStatements

public void parseStatements()