Fork me on GitHub

ExpressionParser

In package com.mitchellbosecke.pebble.parser

public class ExpressionParser extends Object

Parses expressions.

Constructors

public ExpressionParser(Parser parser, Map<String, BinaryOperator> binaryOperators, Map<String, UnaryOperator> unaryOperators, ParserOptions parserOptions)

Constructor

Parameters:

Methods

public Expression<?> parseExpression()

The public entry point for parsing an expression.

Parameters:
  • No parameters
public FilterInvocationExpression parseFilterInvocationExpression()
Parameters:
  • No parameters
public ArgumentsNode parseArguments(boolean isMacroDefinition)
Parameters:
  • boolean isMacroDefinition
public String parseNewVariableName()

Parses a new variable that will need to be initialized in the Java code.

This is used for the set tag, the for loop, and in named arguments.

Parameters:
  • No parameters