Class Parser.OperatorParser
- java.lang.Object
-
- com.google.auto.value.processor.escapevelocity.Parser.OperatorParser
-
-
Field Summary
Fields Modifier and Type Field Description private Parser.Operator
currentOperator
The operator we have just scanned, in the same way thatParser.c
is the character we have just read.
-
Constructor Summary
Constructors Constructor Description OperatorParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
nextOperator()
UpdatescurrentOperator
to be an operator read from the input, orParser.Operator.STOP
if there is none.(package private) ExpressionNode
parse(ExpressionNode lhs, int minPrecedence)
Parse a subexpression whose left-hand side islhs
and where we only consider operators with precedence at leastminPrecedence
.
-
-
-
Field Detail
-
currentOperator
private Parser.Operator currentOperator
The operator we have just scanned, in the same way thatParser.c
is the character we have just read. If we were not able to scan an operator, this will beParser.Operator.STOP
.
-
-
Method Detail
-
parse
ExpressionNode parse(ExpressionNode lhs, int minPrecedence) throws java.io.IOException
Parse a subexpression whose left-hand side islhs
and where we only consider operators with precedence at leastminPrecedence
.- Returns:
- the parsed subexpression
- Throws:
java.io.IOException
-
nextOperator
private void nextOperator() throws java.io.IOException
UpdatescurrentOperator
to be an operator read from the input, orParser.Operator.STOP
if there is none.- Throws:
java.io.IOException
-
-