public abstract class NExprDeclarationsBase extends Object implements net.thevpc.nuts.expr.NExprDeclarations
| Modifier and Type | Field and Description |
|---|---|
protected net.thevpc.nuts.expr.NExprs |
exprs |
| Constructor and Description |
|---|
NExprDeclarationsBase(net.thevpc.nuts.expr.NExprs exprs) |
| Modifier and Type | Method and Description |
|---|---|
net.thevpc.nuts.util.NOptional<Object> |
evalConstruct(String constructName,
net.thevpc.nuts.expr.NExprNodeValue... args) |
net.thevpc.nuts.util.NOptional<Object> |
evalFunction(String fctName,
net.thevpc.nuts.expr.NExprNodeValue... args) |
net.thevpc.nuts.util.NOptional<Object> |
evalInfixOperator(String opName,
net.thevpc.nuts.expr.NExprNodeValue first,
net.thevpc.nuts.expr.NExprNodeValue second) |
net.thevpc.nuts.util.NOptional<Object> |
evalOperator(String opName,
net.thevpc.nuts.expr.NExprOpType type,
net.thevpc.nuts.expr.NExprNodeValue... args) |
net.thevpc.nuts.util.NOptional<Object> |
evalPostfixOperator(String opName,
net.thevpc.nuts.expr.NExprNodeValue arg) |
net.thevpc.nuts.util.NOptional<Object> |
evalPrefixOperator(String opName,
net.thevpc.nuts.expr.NExprNodeValue arg) |
<A,B> net.thevpc.nuts.util.NOptional<net.thevpc.nuts.util.NFunction2<A,B,?>> |
findCommonInfixOp(net.thevpc.nuts.expr.NExprCommonOp op,
Class<? extends A> firstArgType,
Class<? extends B> secondArgType) |
<A> net.thevpc.nuts.util.NOptional<net.thevpc.nuts.util.NFunction<A,?>> |
findCommonPostfixOp(net.thevpc.nuts.expr.NExprCommonOp op,
Class<? extends A> argType) |
<A> net.thevpc.nuts.util.NOptional<net.thevpc.nuts.util.NFunction<A,?>> |
findCommonPrefixOp(net.thevpc.nuts.expr.NExprCommonOp op,
Class<? extends A> argType) |
net.thevpc.nuts.util.NOptional<net.thevpc.nuts.expr.NExprConstructDeclaration> |
getConstruct(String constructName,
net.thevpc.nuts.expr.NExprNodeValue... args) |
net.thevpc.nuts.util.NOptional<net.thevpc.nuts.expr.NExprFctDeclaration> |
getFunction(String fctName,
net.thevpc.nuts.expr.NExprNodeValue... args) |
net.thevpc.nuts.util.NOptional<net.thevpc.nuts.expr.NExprOpDeclaration> |
getOperator(String opName,
net.thevpc.nuts.expr.NExprOpType type,
net.thevpc.nuts.expr.NExprNodeValue... args) |
List<net.thevpc.nuts.expr.NExprOpDeclaration> |
getOperators() |
net.thevpc.nuts.expr.NExprVar |
getOrDeclareVar(String name,
Object a) |
net.thevpc.nuts.util.NOptional<net.thevpc.nuts.expr.NExprVarDeclaration> |
getVar(String varName) |
net.thevpc.nuts.util.NOptional<Object> |
getVarValue(String varName) |
net.thevpc.nuts.expr.NExprNode |
literalAsNode(Object any) |
net.thevpc.nuts.expr.NExprNodeValue |
literalAsValue(Object any) |
net.thevpc.nuts.expr.NExprDeclarations |
newDeclarations(net.thevpc.nuts.expr.NExprEvaluator evaluator) |
net.thevpc.nuts.expr.NExprMutableDeclarations |
newMutableDeclarations() |
net.thevpc.nuts.expr.NExprNodeValue |
nodeAsValue(net.thevpc.nuts.expr.NExprNode any) |
net.thevpc.nuts.expr.NExprVar |
ofConst(String name,
Object a) |
net.thevpc.nuts.expr.NExprInterpolatedStrNode |
ofInterpolatedStr(String a) |
net.thevpc.nuts.expr.NExprLiteralNode |
ofLiteral(Object a) |
net.thevpc.nuts.expr.NExprTemplate |
ofTemplate() |
net.thevpc.nuts.expr.NExprVar |
ofVar(String name,
Object a) |
net.thevpc.nuts.expr.NExprWordNode |
ofWord(String a) |
net.thevpc.nuts.util.NOptional<net.thevpc.nuts.expr.NExprNode> |
parse(String expression) |
net.thevpc.nuts.util.NOptional<Object> |
setVarValue(String varName,
Object value) |
public NExprDeclarationsBase(net.thevpc.nuts.expr.NExprs exprs)
public net.thevpc.nuts.util.NOptional<Object> evalFunction(String fctName, net.thevpc.nuts.expr.NExprNodeValue... args)
evalFunction in interface net.thevpc.nuts.expr.NExprDeclarationspublic net.thevpc.nuts.util.NOptional<Object> evalConstruct(String constructName, net.thevpc.nuts.expr.NExprNodeValue... args)
evalConstruct in interface net.thevpc.nuts.expr.NExprDeclarationspublic net.thevpc.nuts.util.NOptional<Object> evalOperator(String opName, net.thevpc.nuts.expr.NExprOpType type, net.thevpc.nuts.expr.NExprNodeValue... args)
evalOperator in interface net.thevpc.nuts.expr.NExprDeclarationspublic net.thevpc.nuts.util.NOptional<Object> evalInfixOperator(String opName, net.thevpc.nuts.expr.NExprNodeValue first, net.thevpc.nuts.expr.NExprNodeValue second)
evalInfixOperator in interface net.thevpc.nuts.expr.NExprDeclarationspublic net.thevpc.nuts.util.NOptional<Object> evalPrefixOperator(String opName, net.thevpc.nuts.expr.NExprNodeValue arg)
evalPrefixOperator in interface net.thevpc.nuts.expr.NExprDeclarationspublic net.thevpc.nuts.util.NOptional<Object> evalPostfixOperator(String opName, net.thevpc.nuts.expr.NExprNodeValue arg)
evalPostfixOperator in interface net.thevpc.nuts.expr.NExprDeclarationspublic net.thevpc.nuts.util.NOptional<Object> setVarValue(String varName, Object value)
setVarValue in interface net.thevpc.nuts.expr.NExprDeclarationspublic net.thevpc.nuts.util.NOptional<Object> getVarValue(String varName)
getVarValue in interface net.thevpc.nuts.expr.NExprDeclarationspublic net.thevpc.nuts.expr.NExprDeclarations newDeclarations(net.thevpc.nuts.expr.NExprEvaluator evaluator)
newDeclarations in interface net.thevpc.nuts.expr.NExprDeclarationspublic net.thevpc.nuts.expr.NExprMutableDeclarations newMutableDeclarations()
newMutableDeclarations in interface net.thevpc.nuts.expr.NExprDeclarationspublic net.thevpc.nuts.util.NOptional<net.thevpc.nuts.expr.NExprNode> parse(String expression)
parse in interface net.thevpc.nuts.expr.NExprDeclarationspublic net.thevpc.nuts.expr.NExprNodeValue literalAsValue(Object any)
literalAsValue in interface net.thevpc.nuts.expr.NExprDeclarationspublic net.thevpc.nuts.expr.NExprNode literalAsNode(Object any)
literalAsNode in interface net.thevpc.nuts.expr.NExprDeclarationspublic net.thevpc.nuts.expr.NExprNodeValue nodeAsValue(net.thevpc.nuts.expr.NExprNode any)
nodeAsValue in interface net.thevpc.nuts.expr.NExprDeclarationspublic <A,B> net.thevpc.nuts.util.NOptional<net.thevpc.nuts.util.NFunction2<A,B,?>> findCommonInfixOp(net.thevpc.nuts.expr.NExprCommonOp op,
Class<? extends A> firstArgType,
Class<? extends B> secondArgType)
findCommonInfixOp in interface net.thevpc.nuts.expr.NExprDeclarationspublic <A> net.thevpc.nuts.util.NOptional<net.thevpc.nuts.util.NFunction<A,?>> findCommonPrefixOp(net.thevpc.nuts.expr.NExprCommonOp op,
Class<? extends A> argType)
findCommonPrefixOp in interface net.thevpc.nuts.expr.NExprDeclarationspublic <A> net.thevpc.nuts.util.NOptional<net.thevpc.nuts.util.NFunction<A,?>> findCommonPostfixOp(net.thevpc.nuts.expr.NExprCommonOp op,
Class<? extends A> argType)
findCommonPostfixOp in interface net.thevpc.nuts.expr.NExprDeclarationspublic net.thevpc.nuts.expr.NExprWordNode ofWord(String a)
ofWord in interface net.thevpc.nuts.expr.NExprDeclarationspublic net.thevpc.nuts.expr.NExprLiteralNode ofLiteral(Object a)
ofLiteral in interface net.thevpc.nuts.expr.NExprDeclarationspublic net.thevpc.nuts.expr.NExprVar ofConst(String name, Object a)
ofConst in interface net.thevpc.nuts.expr.NExprDeclarationspublic net.thevpc.nuts.expr.NExprVar ofVar(String name, Object a)
ofVar in interface net.thevpc.nuts.expr.NExprDeclarationspublic net.thevpc.nuts.expr.NExprVar getOrDeclareVar(String name, Object a)
getOrDeclareVar in interface net.thevpc.nuts.expr.NExprDeclarationspublic net.thevpc.nuts.util.NOptional<net.thevpc.nuts.expr.NExprFctDeclaration> getFunction(String fctName, net.thevpc.nuts.expr.NExprNodeValue... args)
getFunction in interface net.thevpc.nuts.expr.NExprDeclarationspublic net.thevpc.nuts.util.NOptional<net.thevpc.nuts.expr.NExprConstructDeclaration> getConstruct(String constructName, net.thevpc.nuts.expr.NExprNodeValue... args)
getConstruct in interface net.thevpc.nuts.expr.NExprDeclarationspublic net.thevpc.nuts.util.NOptional<net.thevpc.nuts.expr.NExprOpDeclaration> getOperator(String opName, net.thevpc.nuts.expr.NExprOpType type, net.thevpc.nuts.expr.NExprNodeValue... args)
getOperator in interface net.thevpc.nuts.expr.NExprDeclarationspublic List<net.thevpc.nuts.expr.NExprOpDeclaration> getOperators()
getOperators in interface net.thevpc.nuts.expr.NExprDeclarationspublic net.thevpc.nuts.util.NOptional<net.thevpc.nuts.expr.NExprVarDeclaration> getVar(String varName)
getVar in interface net.thevpc.nuts.expr.NExprDeclarationspublic net.thevpc.nuts.expr.NExprInterpolatedStrNode ofInterpolatedStr(String a)
ofInterpolatedStr in interface net.thevpc.nuts.expr.NExprDeclarationspublic net.thevpc.nuts.expr.NExprTemplate ofTemplate()
ofTemplate in interface net.thevpc.nuts.expr.NExprDeclarationsCopyright © 2025 vpc open source initiative. All rights reserved.