Class StdScope
java.lang.Object
com.hypixel.hytale.server.npc.util.expression.StdScope
- All Implemented Interfaces:
Scope
- Direct Known Subclasses:
StdLib
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classprotected static classprotected static classprotected static classprotected static classprotected static classprotected static classprotected static classNested classes/interfaces inherited from interface com.hypixel.hytale.server.npc.util.expression.Scope
Scope.Function -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final StdScope.SymbolBooleanprotected static final StdScope.SymbolBooleanprotected static final StdScope.SymbolBooleanArrayprotected static final StdScope.SymbolNumberArrayprotected static final StdScope.SymbolStringprotected static final StdScope.SymbolStringArrayprotected static final StdScope.SymbolBooleanArrayprotected static final StdScope.SymbolNumberArrayprotected static final StdScope.SymbolStringprotected static final StdScope.SymbolStringArrayprotected Scopeprotected Map<String, StdScope.Symbol> protected static final StdScope.SymbolBooleanprotected static final StdScope.SymbolBooleanprotected static final StdScope.SymbolBooleanArrayprotected static final StdScope.SymbolNumberArrayprotected static final StdScope.SymbolStringprotected static final StdScope.SymbolStringArrayprotected static final StdScope.SymbolBooleanArrayprotected static final StdScope.SymbolNumberArrayprotected static final StdScope.SymbolStringprotected static final StdScope.SymbolStringArray -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidadd(String name, StdScope.Symbol symbol) voidaddBooleanArraySupplier(String name, Supplier<boolean[]> value) voidvoidvoidvoidvoidvoidvoidaddConstEmptyArray(String name) voidaddDoubleArraySupplier(String name, Supplier<double[]> value) voidaddInvariant(String name, Scope.Function function, ValueType returnType, ValueType... argumentTypes) voidaddStringArraySupplier(String name, Supplier<String[]> value) voidaddSupplier(String name, BooleanSupplier value) voidaddSupplier(String name, DoubleSupplier value) voidaddSupplier(String name, Supplier<String> value) voidvoidvoidvoidvoidvoidvoidaddVariant(String name, Scope.Function function, ValueType returnType, ValueType... argumentTypes) voidchangeValue(String name, boolean value) voidchangeValue(String name, boolean[] value) voidchangeValue(String name, double value) voidchangeValue(String name, double[] value) voidchangeValue(String name, String value) voidchangeValue(String name, String[] value) voidstatic StdScopeprotected StdScope.Symbolprotected StdScope.SymbolSupplier<boolean[]> getBooleanSupplier(String name) getFunction(String name) Supplier<double[]> getNumberArraySupplier(String name) getNumberSupplier(String name) getStringArraySupplier(String name) getStringSupplier(String name) booleanisConstant(String name) static StdScopemergeScopes(StdScope first, StdScope second) protected voidmergeSymbols(StdScope other) protected voidreplace(String name, StdScope.Symbol symbol) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hypixel.hytale.server.npc.util.expression.Scope
getBoolean, getBooleanArray, getNumber, getNumberArray, getString, getStringArray
-
Field Details
-
VAR_EMPTY_STRING_ARRAY
-
VAR_EMPTY_NUMBER_ARRAY
-
VAR_EMPTY_BOOLEAN_ARRAY
-
VAR_NULL_STRING_ARRAY
-
VAR_NULL_NUMBER_ARRAY
-
VAR_NULL_BOOLEAN_ARRAY
-
VAR_NULL_STRING
-
VAR_EMPTY_STRING
-
VAR_BOOLEAN_TRUE
-
VAR_BOOLEAN_FALSE
-
CONST_EMPTY_STRING_ARRAY
-
CONST_EMPTY_NUMBER_ARRAY
-
CONST_EMPTY_BOOLEAN_ARRAY
-
CONST_NULL_STRING_ARRAY
-
CONST_NULL_NUMBER_ARRAY
-
CONST_NULL_BOOLEAN_ARRAY
-
CONST_NULL_STRING
-
CONST_EMPTY_STRING
-
CONST_BOOLEAN_TRUE
-
CONST_BOOLEAN_FALSE
-
parent
-
symbolTable
-
-
Constructor Details
-
StdScope
-
-
Method Details
-
copyOf
-
merge
-
mergeScopes
-
mergeSymbols
-
add
-
addConst
-
addConst
-
addConst
-
addConst
-
addConst
-
addConst
-
addConstEmptyArray
-
addVar
-
addVar
-
addVar
-
addVar
-
addVar
-
addVar
-
addInvariant
public void addInvariant(@Nonnull String name, Scope.Function function, ValueType returnType, ValueType... argumentTypes) -
addVariant
public void addVariant(@Nonnull String name, Scope.Function function, ValueType returnType, ValueType... argumentTypes) -
addSupplier
-
addSupplier
-
addSupplier
-
addStringArraySupplier
-
addDoubleArraySupplier
-
addBooleanArraySupplier
-
get
-
get
-
replace
-
changeValue
-
changeValue
-
changeValue
-
changeValue
-
changeValue
-
changeValue
-
changeValueToEmptyArray
-
getStringSupplier
- Specified by:
getStringSupplierin interfaceScope
-
getNumberSupplier
- Specified by:
getNumberSupplierin interfaceScope
-
getBooleanSupplier
- Specified by:
getBooleanSupplierin interfaceScope
-
getStringArraySupplier
- Specified by:
getStringArraySupplierin interfaceScope
-
getNumberArraySupplier
- Specified by:
getNumberArraySupplierin interfaceScope
-
getBooleanArraySupplier
- Specified by:
getBooleanArraySupplierin interfaceScope
-
getFunction
- Specified by:
getFunctionin interfaceScope
-
isConstant
- Specified by:
isConstantin interfaceScope
-
getType
-