public class NExprContextAlteration extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
NExprContextAlteration.DecInfo<T> |
| Modifier and Type | Field and Description |
|---|---|
static net.thevpc.nuts.runtime.standalone.xtra.expr.NExprContextAlteration.NExprResolverFromBuilderEmpty |
EMPTY_RESOLVER |
static NExprContextAlteration.DecInfo |
REMOVED |
Map<String,NExprContextAlteration.DecInfo<net.thevpc.nuts.expr.NExprFunction>> |
userConstructs |
Map<String,NExprContextAlteration.DecInfo<net.thevpc.nuts.expr.NExprFunction>> |
userFunctions |
Map<NExprOpNameAndType,NExprContextAlteration.DecInfo<net.thevpc.nuts.expr.NExprOperator>> |
userOperators |
Map<String,NExprContextAlteration.DecInfo<net.thevpc.nuts.expr.NExprVar>> |
userVars |
| Constructor and Description |
|---|
NExprContextAlteration() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAll(NExprContextAlteration alteration) |
net.thevpc.nuts.expr.NExprFunction |
declareConstruct(net.thevpc.nuts.expr.NExprFunction constructImpl) |
net.thevpc.nuts.expr.NExprFunction |
declareConstruct(String name,
net.thevpc.nuts.expr.NExprCallHandler constructImpl) |
void |
declareConstructs(net.thevpc.nuts.expr.NExprFunctionResolver resolver) |
net.thevpc.nuts.expr.NExprFunction |
declareFunction(net.thevpc.nuts.expr.NExprFunction fctImpl) |
net.thevpc.nuts.expr.NExprFunction |
declareFunction(String name,
net.thevpc.nuts.expr.NExprCallHandler fctImpl) |
void |
declareFunctions(net.thevpc.nuts.expr.NExprFunctionResolver resolver) |
net.thevpc.nuts.expr.NExprOperator |
declareOperator(net.thevpc.nuts.expr.NExprOperator impl) |
net.thevpc.nuts.expr.NExprOperator |
declareOperator(String name,
net.thevpc.nuts.expr.NExprCallHandler impl) |
net.thevpc.nuts.expr.NExprOperator |
declareOperator(String name,
net.thevpc.nuts.expr.NExprOpType type,
int precedence,
net.thevpc.nuts.expr.NOperatorAssociativity associativity,
net.thevpc.nuts.expr.NExprCallHandler impl) |
net.thevpc.nuts.expr.NExprOperator |
declareOperator(String name,
net.thevpc.nuts.expr.NExprOpType type,
net.thevpc.nuts.expr.NExprCallHandler impl) |
void |
declareOperators(net.thevpc.nuts.expr.NExprOperatorResolver resolver) |
void |
declareResolver(net.thevpc.nuts.expr.NExprResolver resolver) |
net.thevpc.nuts.expr.NExprVar |
declareVar(net.thevpc.nuts.expr.NExprVar varImpl) |
net.thevpc.nuts.expr.NExprVar |
declareVar(String name) |
void |
declareVars(net.thevpc.nuts.expr.NExprVarResolver resolver) |
net.thevpc.nuts.util.NOptional<net.thevpc.nuts.expr.NExprFunction> |
getConstruct(net.thevpc.nuts.expr.NExprContext current,
net.thevpc.nuts.expr.NExprContext parent,
String name,
net.thevpc.nuts.expr.NExprNodeValue... args) |
net.thevpc.nuts.util.NOptional<net.thevpc.nuts.expr.NExprFunction> |
getFunction(net.thevpc.nuts.expr.NExprContext current,
net.thevpc.nuts.expr.NExprContext parent,
String name,
net.thevpc.nuts.expr.NExprNodeValue... args) |
net.thevpc.nuts.expr.NExprLiteralMapper |
getLiteralMapper() |
net.thevpc.nuts.util.NOptional<net.thevpc.nuts.expr.NExprOperator> |
getOperator(net.thevpc.nuts.expr.NExprContext current,
net.thevpc.nuts.expr.NExprContext parent,
String opName,
net.thevpc.nuts.expr.NExprOpType type,
net.thevpc.nuts.expr.NExprNodeValue... nodes) |
net.thevpc.nuts.expr.NExprVar |
getOrDeclareVar(net.thevpc.nuts.expr.NExprContext context,
net.thevpc.nuts.expr.NExprContext parent,
String name,
Supplier<Object> value) |
net.thevpc.nuts.util.NOptional<net.thevpc.nuts.expr.NExprVar> |
getVar(net.thevpc.nuts.expr.NExprContext current,
net.thevpc.nuts.expr.NExprContext parent,
String name) |
boolean |
hasNoCustomDeclarations() |
boolean |
isAutoDeclareVariables() |
void |
removeConstruct(net.thevpc.nuts.expr.NExprFunction member) |
void |
removeConstruct(String member) |
void |
removeConstructs(net.thevpc.nuts.expr.NExprFunctionResolver resolver) |
void |
removeFunction(net.thevpc.nuts.expr.NExprFunction member) |
void |
removeFunction(String member) |
void |
removeFunctions(net.thevpc.nuts.expr.NExprFunctionResolver resolver) |
void |
removeOperator(net.thevpc.nuts.expr.NExprOperator member) |
void |
removeOperator(String name,
net.thevpc.nuts.expr.NExprOpType type) |
void |
removeOperators(net.thevpc.nuts.expr.NExprOperatorResolver resolver) |
void |
removeResolver(net.thevpc.nuts.expr.NExprResolver resolver) |
void |
removeVar(net.thevpc.nuts.expr.NExprVar member) |
void |
removeVar(String name) |
void |
removeVars(net.thevpc.nuts.expr.NExprVarResolver resolver) |
void |
setAutoDeclareVariables(boolean autoDeclareVariables) |
NExprContextAlteration |
setLiteralMapper(net.thevpc.nuts.expr.NExprLiteralMapper literalMapper) |
net.thevpc.nuts.expr.NExprResolver |
toExprResolver() |
void |
undeclareConstruct(net.thevpc.nuts.expr.NExprFunction member) |
void |
undeclareFunction(net.thevpc.nuts.expr.NExprFunction member) |
void |
undeclareOperator(net.thevpc.nuts.expr.NExprOperator member) |
void |
undeclareVar(net.thevpc.nuts.expr.NExprVar member) |
public static NExprContextAlteration.DecInfo REMOVED
public static final net.thevpc.nuts.runtime.standalone.xtra.expr.NExprContextAlteration.NExprResolverFromBuilderEmpty EMPTY_RESOLVER
public Map<String,NExprContextAlteration.DecInfo<net.thevpc.nuts.expr.NExprFunction>> userFunctions
public Map<String,NExprContextAlteration.DecInfo<net.thevpc.nuts.expr.NExprFunction>> userConstructs
public Map<NExprOpNameAndType,NExprContextAlteration.DecInfo<net.thevpc.nuts.expr.NExprOperator>> userOperators
public Map<String,NExprContextAlteration.DecInfo<net.thevpc.nuts.expr.NExprVar>> userVars
public void addAll(NExprContextAlteration alteration)
public net.thevpc.nuts.expr.NExprLiteralMapper getLiteralMapper()
public NExprContextAlteration setLiteralMapper(net.thevpc.nuts.expr.NExprLiteralMapper literalMapper)
public boolean isAutoDeclareVariables()
public void setAutoDeclareVariables(boolean autoDeclareVariables)
public void removeOperator(String name, net.thevpc.nuts.expr.NExprOpType type)
public boolean hasNoCustomDeclarations()
public net.thevpc.nuts.expr.NExprVar declareVar(net.thevpc.nuts.expr.NExprVar varImpl)
public net.thevpc.nuts.expr.NExprFunction declareFunction(String name, net.thevpc.nuts.expr.NExprCallHandler fctImpl)
public net.thevpc.nuts.expr.NExprFunction declareFunction(net.thevpc.nuts.expr.NExprFunction fctImpl)
public net.thevpc.nuts.expr.NExprFunction declareConstruct(net.thevpc.nuts.expr.NExprFunction constructImpl)
public net.thevpc.nuts.expr.NExprFunction declareConstruct(String name, net.thevpc.nuts.expr.NExprCallHandler constructImpl)
public net.thevpc.nuts.expr.NExprOperator declareOperator(String name, net.thevpc.nuts.expr.NExprCallHandler impl)
public net.thevpc.nuts.expr.NExprOperator declareOperator(net.thevpc.nuts.expr.NExprOperator impl)
public net.thevpc.nuts.expr.NExprOperator declareOperator(String name, net.thevpc.nuts.expr.NExprOpType type, net.thevpc.nuts.expr.NExprCallHandler impl)
public net.thevpc.nuts.expr.NExprOperator declareOperator(String name, net.thevpc.nuts.expr.NExprOpType type, int precedence, net.thevpc.nuts.expr.NOperatorAssociativity associativity, net.thevpc.nuts.expr.NExprCallHandler impl)
public void undeclareVar(net.thevpc.nuts.expr.NExprVar member)
public void removeVar(net.thevpc.nuts.expr.NExprVar member)
public void removeVar(String name)
public void undeclareFunction(net.thevpc.nuts.expr.NExprFunction member)
public void removeFunction(net.thevpc.nuts.expr.NExprFunction member)
public void removeFunction(String member)
public void removeConstruct(String member)
public void undeclareConstruct(net.thevpc.nuts.expr.NExprFunction member)
public void removeConstruct(net.thevpc.nuts.expr.NExprFunction member)
public void undeclareOperator(net.thevpc.nuts.expr.NExprOperator member)
public void removeOperator(net.thevpc.nuts.expr.NExprOperator member)
public net.thevpc.nuts.expr.NExprVar declareVar(String name)
public net.thevpc.nuts.util.NOptional<net.thevpc.nuts.expr.NExprOperator> getOperator(net.thevpc.nuts.expr.NExprContext current,
net.thevpc.nuts.expr.NExprContext parent,
String opName,
net.thevpc.nuts.expr.NExprOpType type,
net.thevpc.nuts.expr.NExprNodeValue... nodes)
public net.thevpc.nuts.util.NOptional<net.thevpc.nuts.expr.NExprVar> getVar(net.thevpc.nuts.expr.NExprContext current,
net.thevpc.nuts.expr.NExprContext parent,
String name)
public net.thevpc.nuts.expr.NExprVar getOrDeclareVar(net.thevpc.nuts.expr.NExprContext context,
net.thevpc.nuts.expr.NExprContext parent,
String name,
Supplier<Object> value)
public net.thevpc.nuts.util.NOptional<net.thevpc.nuts.expr.NExprFunction> getFunction(net.thevpc.nuts.expr.NExprContext current,
net.thevpc.nuts.expr.NExprContext parent,
String name,
net.thevpc.nuts.expr.NExprNodeValue... args)
public net.thevpc.nuts.util.NOptional<net.thevpc.nuts.expr.NExprFunction> getConstruct(net.thevpc.nuts.expr.NExprContext current,
net.thevpc.nuts.expr.NExprContext parent,
String name,
net.thevpc.nuts.expr.NExprNodeValue... args)
public void declareVars(net.thevpc.nuts.expr.NExprVarResolver resolver)
public void declareConstructs(net.thevpc.nuts.expr.NExprFunctionResolver resolver)
public void removeOperators(net.thevpc.nuts.expr.NExprOperatorResolver resolver)
public void declareFunctions(net.thevpc.nuts.expr.NExprFunctionResolver resolver)
public void declareResolver(net.thevpc.nuts.expr.NExprResolver resolver)
public void removeVars(net.thevpc.nuts.expr.NExprVarResolver resolver)
public void removeConstructs(net.thevpc.nuts.expr.NExprFunctionResolver resolver)
public void removeFunctions(net.thevpc.nuts.expr.NExprFunctionResolver resolver)
public void removeResolver(net.thevpc.nuts.expr.NExprResolver resolver)
public void declareOperators(net.thevpc.nuts.expr.NExprOperatorResolver resolver)
public net.thevpc.nuts.expr.NExprResolver toExprResolver()
Copyright © 2026 vpc open source initiative. All rights reserved.