public class DefaultNutsExpr extends Object implements net.thevpc.nuts.NutsExpr
| Constructor and Description |
|---|
DefaultNutsExpr(net.thevpc.nuts.NutsExpr parent) |
DefaultNutsExpr(net.thevpc.nuts.NutsSession session) |
| Modifier and Type | Method and Description |
|---|---|
Object |
evalFunction(String fctName,
Object... args) |
Object |
evalNode(net.thevpc.nuts.NutsExpr.Node node) |
Object |
evalVar(String fctName) |
net.thevpc.nuts.NutsExpr.Fct |
getFunction(String name) |
String[] |
getFunctionNames() |
net.thevpc.nuts.NutsExpr.Op |
getOperator(String opName,
net.thevpc.nuts.NutsExpr.OpType type) |
String[] |
getOperatorNames(net.thevpc.nuts.NutsExpr.OpType type) |
net.thevpc.nuts.NutsSession |
getSession() |
static Map<String,net.thevpc.nuts.NutsExpr.Op> |
getStaticOps(net.thevpc.nuts.NutsExpr.OpType type) |
int |
getSupportLevel(net.thevpc.nuts.spi.NutsSupportLevelContext context) |
net.thevpc.nuts.NutsExpr.Var |
getVar(String name) |
net.thevpc.nuts.NutsExpr |
newChild() |
net.thevpc.nuts.NutsExpr.Node |
parse(String expression) |
void |
setFunction(String name,
net.thevpc.nuts.NutsExpr.Fct impl) |
void |
setOperator(String name,
net.thevpc.nuts.NutsExpr.OpType type,
int precedence,
boolean rightAssociative,
net.thevpc.nuts.NutsExpr.Fct fct) |
void |
setVar(String name,
net.thevpc.nuts.NutsExpr.Var impl) |
void |
unsetFunction(String name) |
void |
unsetOperator(String name,
net.thevpc.nuts.NutsExpr.OpType type) |
static String |
wrapPars(net.thevpc.nuts.NutsExpr.Node n) |
public DefaultNutsExpr(net.thevpc.nuts.NutsSession session)
public DefaultNutsExpr(net.thevpc.nuts.NutsExpr parent)
public static String wrapPars(net.thevpc.nuts.NutsExpr.Node n)
public static Map<String,net.thevpc.nuts.NutsExpr.Op> getStaticOps(net.thevpc.nuts.NutsExpr.OpType type)
public net.thevpc.nuts.NutsExpr.Node parse(String expression)
parse in interface net.thevpc.nuts.NutsExprpublic net.thevpc.nuts.NutsSession getSession()
getSession in interface net.thevpc.nuts.NutsExprpublic net.thevpc.nuts.NutsExpr.Var getVar(String name)
getVar in interface net.thevpc.nuts.NutsExprpublic void setFunction(String name, net.thevpc.nuts.NutsExpr.Fct impl)
setFunction in interface net.thevpc.nuts.NutsExprpublic void unsetFunction(String name)
unsetFunction in interface net.thevpc.nuts.NutsExprpublic net.thevpc.nuts.NutsExpr.Fct getFunction(String name)
getFunction in interface net.thevpc.nuts.NutsExprpublic String[] getFunctionNames()
getFunctionNames in interface net.thevpc.nuts.NutsExprpublic Object evalFunction(String fctName, Object... args)
evalFunction in interface net.thevpc.nuts.NutsExprpublic void setOperator(String name, net.thevpc.nuts.NutsExpr.OpType type, int precedence, boolean rightAssociative, net.thevpc.nuts.NutsExpr.Fct fct)
setOperator in interface net.thevpc.nuts.NutsExprpublic net.thevpc.nuts.NutsExpr.Op getOperator(String opName, net.thevpc.nuts.NutsExpr.OpType type)
getOperator in interface net.thevpc.nuts.NutsExprpublic void unsetOperator(String name, net.thevpc.nuts.NutsExpr.OpType type)
unsetOperator in interface net.thevpc.nuts.NutsExprpublic String[] getOperatorNames(net.thevpc.nuts.NutsExpr.OpType type)
getOperatorNames in interface net.thevpc.nuts.NutsExprpublic void setVar(String name, net.thevpc.nuts.NutsExpr.Var impl)
setVar in interface net.thevpc.nuts.NutsExprpublic Object evalVar(String fctName)
evalVar in interface net.thevpc.nuts.NutsExprpublic net.thevpc.nuts.NutsExpr newChild()
newChild in interface net.thevpc.nuts.NutsExprpublic Object evalNode(net.thevpc.nuts.NutsExpr.Node node)
evalNode in interface net.thevpc.nuts.NutsExprpublic int getSupportLevel(net.thevpc.nuts.spi.NutsSupportLevelContext context)
getSupportLevel in interface net.thevpc.nuts.spi.NutsComponentCopyright © 2022 vpc open source initiative. All rights reserved.