anvil.script.parser
Class ExpressionParser

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

public class ExpressionParser
extends ParserBase

class ExpressionParser


Nested Class Summary
 
Nested classes inherited from class anvil.script.parser.ParserBase
ParserBase.Scanner, ParserBase.SetScanner
 
Field Summary
protected  int _column
           
protected  int _line
           
protected  ParserInterface _parser
           
protected  java.net.URL _url
           
 
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
ExpressionParser(ParserInterface parser, int line, int column, LocatingCharSequence expression)
           
ExpressionParser(ParserInterface parser, int line, int column, java.lang.String expression)
           
ExpressionParser(ParserInterface parser, Location location, LocatingCharSequence expression)
           
ExpressionParser(ParserInterface parser, Location location, java.lang.String expression)
           
 
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)
           
 Expression parseEmbeddedValueExpression()
           
 ExpressionList parseExpressionList()
           
 Expression[] parseForeachExpression()
           
 java.lang.Object[] parseForExpressionList()
           
 Parent parseParameterList()
           
 void parseParameterListDeclaration(ParameterListDeclaration parameters)
           
 Expression parseTerminalAssignableExpression()
           
 Expression parseTerminalExpression()
           
 Expression parseTerminalValueExpression()
           
 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
 

Field Detail

_parser

protected ParserInterface _parser

_line

protected int _line

_column

protected int _column

_url

protected java.net.URL _url
Constructor Detail

ExpressionParser

public ExpressionParser(ParserInterface parser,
                        Location location,
                        java.lang.String expression)

ExpressionParser

public ExpressionParser(ParserInterface parser,
                        int line,
                        int column,
                        java.lang.String expression)

ExpressionParser

public ExpressionParser(ParserInterface parser,
                        Location location,
                        LocatingCharSequence expression)

ExpressionParser

public ExpressionParser(ParserInterface parser,
                        int line,
                        int column,
                        LocatingCharSequence expression)
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

parseParameterListDeclaration

public void parseParameterListDeclaration(ParameterListDeclaration parameters)

parseParameterList

public Parent parseParameterList()

parseExpressionList

public ExpressionList parseExpressionList()

parseForExpressionList

public java.lang.Object[] parseForExpressionList()

parseTerminalValueExpression

public Expression parseTerminalValueExpression()

parseEmbeddedValueExpression

public Expression parseEmbeddedValueExpression()

parseTerminalAssignableExpression

public Expression parseTerminalAssignableExpression()

parseTerminalExpression

public Expression parseTerminalExpression()

parseForeachExpression

public Expression[] parseForeachExpression()