public class ExprMacroTable extends Object
ExprListenerImpl is creating a FunctionExpr, ExprMacroTable will first be checked to find
the function by name, falling back to Parser.getFunction(String) to map to a built-in Function if
none is defined in the macro table.| Modifier and Type | Class and Description |
|---|---|
static class |
ExprMacroTable.BaseScalarMacroFunctionExpr
Base class for multi-argument
ExprMacroTable.ExprMacro function Expr |
static class |
ExprMacroTable.BaseScalarUnivariateMacroFunctionExpr
Base class for single argument
ExprMacroTable.ExprMacro function Expr |
static interface |
ExprMacroTable.ExprMacro |
static interface |
ExprMacroTable.ExprMacroFunctionExpr
stub interface to allow
Parser.flatten(Expr) a way to recognize macro functions that exend this |
| Constructor and Description |
|---|
ExprMacroTable(List<ExprMacroTable.ExprMacro> macros) |
| Modifier and Type | Method and Description |
|---|---|
Expr |
get(String functionName,
List<Expr> args)
Returns an expr corresponding to a function call if this table has an entry for
functionName. |
List<ExprMacroTable.ExprMacro> |
getMacros() |
static ExprMacroTable |
nil() |
public ExprMacroTable(List<ExprMacroTable.ExprMacro> macros)
public static ExprMacroTable nil()
public List<ExprMacroTable.ExprMacro> getMacros()
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.