- 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.Assignexpression and returns the value.binary(Expr.Binary expr) Evaluates aExpr.Binaryexpression and returns the value.Evaluates aExpr.Callexpression and returns the value.Evaluates aExpr.CallOptionalexpression and returns the value.Evaluates aExpr.Getexpression and returns the value.getOptional(Expr.GetOptional expr) Evaluates aExpr.GetOptionalexpression and returns the value.grouping(Expr.Grouping expr) Evaluates aExpr.Groupingexpression and returns the value.literal(Expr.Literal expr) Evaluates aExpr.Literalexpression and returns the value.logical(Expr.Logical expr) Evaluates aExpr.Logicalexpression and returns the value.Evaluates aExpr.NullishCoalescenceexpression and returns the value.Evaluates aExpr.Setexpression and returns the value.ternary(Expr.Ternary expr) Evaluates aExpr.Ternaryexpression and returns the value.unary(Expr.Unary expr) Evaluates aExpr.Unaryexpression and returns the value.variable(Expr.Variable expr) Evaluates aExpr.Variableexpression and returns the value.
-
Method Details
-
set
Evaluates aExpr.Setexpression and returns the value.- Parameters:
expr- theExpr.Setexpression- Returns:
- the evaluated value
-
assign
Evaluates aExpr.Assignexpression and returns the value.- Parameters:
expr- theExpr.Assignexpression- Returns:
- the evaluated value
-
ternary
Evaluates aExpr.Ternaryexpression and returns the value.- Parameters:
expr- theExpr.Ternaryexpression- Returns:
- the evaluated value
-
nullishCoalescence
Evaluates aExpr.NullishCoalescenceexpression and returns the value.- Parameters:
expr- theExpr.NullishCoalescenceexpression- Returns:
- the evaluated value
-
logical
Evaluates aExpr.Logicalexpression and returns the value.- Parameters:
expr- theExpr.Logicalexpression- Returns:
- the evaluated value
-
binary
Evaluates aExpr.Binaryexpression and returns the value.- Parameters:
expr- theExpr.Binaryexpression- Returns:
- the evaluated value
-
unary
Evaluates aExpr.Unaryexpression and returns the value.- Parameters:
expr- theExpr.Unaryexpression- Returns:
- the evaluated value
-
call
Evaluates aExpr.Callexpression and returns the value.- Parameters:
expr- theExpr.Callexpression- Returns:
- the evaluated value
-
callOptional
Evaluates aExpr.CallOptionalexpression and returns the value.- Parameters:
expr- theExpr.CallOptionalexpression- Returns:
- the evaluated value
-
get
Evaluates aExpr.Getexpression and returns the value.- Parameters:
expr- theExpr.Getexpression- Returns:
- the evaluated value
-
getOptional
Evaluates aExpr.GetOptionalexpression and returns the value.- Parameters:
expr- theExpr.GetOptionalexpression- Returns:
- the evaluated value
-
variable
Evaluates aExpr.Variableexpression and returns the value.- Parameters:
expr- theExpr.Variableexpression- Returns:
- the evaluated value
-
grouping
Evaluates aExpr.Groupingexpression and returns the value.- Parameters:
expr- theExpr.Groupingexpression- Returns:
- the evaluated value
-
literal
Evaluates aExpr.Literalexpression and returns the value.- Parameters:
expr- theExpr.Literalexpression- Returns:
- the evaluated value
-