Class Parser.OperatorParser
- java.lang.Object
-
- com.google.auto.value.processor.escapevelocity.Parser.OperatorParser
-
-
Field Summary
Fields Modifier and Type Field Description private Parser.OperatorcurrentOperatorThe operator we have just scanned, in the same way thatParser.cis 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 voidnextOperator()UpdatescurrentOperatorto be an operator read from the input, orParser.Operator.STOPif there is none.(package private) ExpressionNodeparse(ExpressionNode lhs, int minPrecedence)Parse a subexpression whose left-hand side islhsand 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.cis 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 islhsand where we only consider operators with precedence at leastminPrecedence.- Returns:
- the parsed subexpression
- Throws:
java.io.IOException
-
nextOperator
private void nextOperator() throws java.io.IOExceptionUpdatescurrentOperatorto be an operator read from the input, orParser.Operator.STOPif there is none.- Throws:
java.io.IOException
-
-