- Type Parameters:
R
- the return type of the evaluated value
- Enclosing interface:
- Expr
public static interface Expr.Visitor<R>
Defines operations for the various
Expr
implementations.-
Method Summary
Modifier and TypeMethodDescriptionassign
(Expr.Assign expr) Evaluates aExpr.Assign
expression and returns the value.binary
(Expr.Binary expr) Evaluates aExpr.Binary
expression and returns the value.Evaluates aExpr.Call
expression and returns the value.Evaluates aExpr.CallOptional
expression and returns the value.Evaluates aExpr.Get
expression and returns the value.getOptional
(Expr.GetOptional expr) Evaluates aExpr.GetOptional
expression and returns the value.grouping
(Expr.Grouping expr) Evaluates aExpr.Grouping
expression and returns the value.literal
(Expr.Literal expr) Evaluates aExpr.Literal
expression and returns the value.logical
(Expr.Logical expr) Evaluates aExpr.Logical
expression and returns the value.Evaluates aExpr.NullishCoalescence
expression and returns the value.Evaluates aExpr.Set
expression and returns the value.ternary
(Expr.Ternary expr) Evaluates aExpr.Ternary
expression and returns the value.unary
(Expr.Unary expr) Evaluates aExpr.Unary
expression and returns the value.variable
(Expr.Variable expr) Evaluates aExpr.Variable
expression and returns the value.
-
Method Details
-
set
Evaluates aExpr.Set
expression and returns the value.- Parameters:
expr
- theExpr.Set
expression- Returns:
- the evaluated value
-
assign
Evaluates aExpr.Assign
expression and returns the value.- Parameters:
expr
- theExpr.Assign
expression- Returns:
- the evaluated value
-
ternary
Evaluates aExpr.Ternary
expression and returns the value.- Parameters:
expr
- theExpr.Ternary
expression- Returns:
- the evaluated value
-
nullishCoalescence
Evaluates aExpr.NullishCoalescence
expression and returns the value.- Parameters:
expr
- theExpr.NullishCoalescence
expression- Returns:
- the evaluated value
-
logical
Evaluates aExpr.Logical
expression and returns the value.- Parameters:
expr
- theExpr.Logical
expression- Returns:
- the evaluated value
-
binary
Evaluates aExpr.Binary
expression and returns the value.- Parameters:
expr
- theExpr.Binary
expression- Returns:
- the evaluated value
-
unary
Evaluates aExpr.Unary
expression and returns the value.- Parameters:
expr
- theExpr.Unary
expression- Returns:
- the evaluated value
-
call
Evaluates aExpr.Call
expression and returns the value.- Parameters:
expr
- theExpr.Call
expression- Returns:
- the evaluated value
-
callOptional
Evaluates aExpr.CallOptional
expression and returns the value.- Parameters:
expr
- theExpr.CallOptional
expression- Returns:
- the evaluated value
-
get
Evaluates aExpr.Get
expression and returns the value.- Parameters:
expr
- theExpr.Get
expression- Returns:
- the evaluated value
-
getOptional
Evaluates aExpr.GetOptional
expression and returns the value.- Parameters:
expr
- theExpr.GetOptional
expression- Returns:
- the evaluated value
-
variable
Evaluates aExpr.Variable
expression and returns the value.- Parameters:
expr
- theExpr.Variable
expression- Returns:
- the evaluated value
-
grouping
Evaluates aExpr.Grouping
expression and returns the value.- Parameters:
expr
- theExpr.Grouping
expression- Returns:
- the evaluated value
-
literal
Evaluates aExpr.Literal
expression and returns the value.- Parameters:
expr
- theExpr.Literal
expression- Returns:
- the evaluated value
-