Contents
- Description
- Nested Class Summary
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- execute(List, Scope)
- execute(List)
- execute(ExecutionContext.Instruction[], Scope)
- execute(ExecutionContext.Instruction[])
- getType()
- top()
- setScope(Scope)
- getScope()
- setForwardedModifiers(Map)
- getForwardedModifiers()
- hasScope()
- getCombatConfig()
- setCombatConfig(String)
- getInteractionVars()
- setInteractionVars(Map)
- push(String)
- push(double)
- push(int)
- push(boolean)
- push(String[])
- push(double[])
- push(boolean[])
- pushEmptyArray()
- popPush(String, int)
- popPush(double, int)
- popPush(int, int)
- popPush(boolean, int)
- popPush(String[], int)
- popPush(double[], int)
- popPush(boolean[], int)
- popPushEmptyArray(int)
- popNumber()
- popInt()
- popString()
- popBoolean()
- popNumberArray()
- popStringArray()
- popBooleanArray()
- popAsString()
- getNumber(int)
- getInt(int)
- getString(int)
- getBoolean(int)
- getNumberArray(int)
- getStringArray(int)
- getBooleanArray(int)
- genPUSH(String)
- genPUSH(double)
- genPUSH(boolean)
- genPUSH(String[])
- genPUSH(double[])
- genPUSH(boolean[])
- genPUSHEmptyArray()
- genREAD(String, ValueType, Scope)
- genCALL(String, int, Scope)
- genNumberPACK(int)
- genStringPACK(int)
- genBooleanPACK(int)
- genPACK(ValueType, int)
- toString()
Class ExecutionContext
java.lang.Object
com.hypixel.hytale.server.npc.util.expression.ExecutionContext
Stack machine to execute lists/arrays of instructions being simple consumer type objects.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic classTyped operands/arguments/stack elements. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ExecutionContext.Instructionstatic final ExecutionContext.Instructionstatic final ExecutionContext.Instructionstatic final ExecutionContext.Instructionstatic final ExecutionContext.Instructionstatic final ExecutionContext.Instructionstatic final ExecutionContext.Instructionstatic final ExecutionContext.Instructionstatic final ExecutionContext.Instructionstatic final ExecutionContext.Instructionstatic final ExecutionContext.Instructionstatic final ExecutionContext.Instructionstatic final ExecutionContext.Instructionstatic final ExecutionContext.Instructionstatic final ExecutionContext.Instructionstatic final ExecutionContext.Instructionstatic final ExecutionContext.Instructionstatic final ExecutionContext.Instructionstatic final ExecutionContext.Instructionstatic final ExecutionContext.Instructionstatic final ExecutionContext.Instructionstatic final intstatic final ExecutionContext.Instructionstatic final ExecutionContext.Instruction -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(ExecutionContext.Instruction[] instructions) execute(ExecutionContext.Instruction[] instructions, Scope scope) execute(List<ExecutionContext.Instruction> instructions) execute(List<ExecutionContext.Instruction> instructions, Scope scope) static ExecutionContext.InstructiongenBooleanPACK(int size) static ExecutionContext.Instructionstatic ExecutionContext.InstructiongenNumberPACK(int size) static ExecutionContext.Instructionstatic ExecutionContext.InstructiongenPUSH(boolean value) static ExecutionContext.InstructiongenPUSH(boolean[] value) static ExecutionContext.InstructiongenPUSH(double value) static ExecutionContext.InstructiongenPUSH(double[] value) static ExecutionContext.Instructionstatic ExecutionContext.Instructionstatic ExecutionContext.Instructionstatic ExecutionContext.Instructionstatic ExecutionContext.InstructiongenStringPACK(int size) booleangetBoolean(int index) boolean[]getBooleanArray(int index) Map<String, ? extends ForwardedModifier> intgetInt(int index) doublegetNumber(int index) double[]getNumberArray(int index) getScope()getString(int index) String[]getStringArray(int index) getType()booleanhasScope()booleanboolean[]intpopInt()doubledouble[]voidpopPush(boolean[] value, int popCount) voidpopPush(boolean value, int popCount) voidpopPush(double[] value, int popCount) voidpopPush(double value, int popCount) voidpopPush(int value, int popCount) voidvoidvoidpopPushEmptyArray(int popCount) String[]voidpush(boolean value) voidpush(boolean[] value) voidpush(double value) voidpush(double[] value) voidpush(int value) voidvoidvoidvoidsetCombatConfig(String combatConfig) Map<String, ? extends ForwardedModifier> setForwardedModifiers(Map<String, ? extends ForwardedModifier> forwardedModifiers) voidsetInteractionVars(Map<String, String> interactionVars) top()toString()
-
Field Details
-
STACK_GROW_INCREMENT
public static final int STACK_GROW_INCREMENT- See Also:
-
UNARY_PLUS
-
UNARY_MINUS
-
LOGICAL_NOT
-
BITWISE_NOT
-
EXPONENTIATION
-
REMAINDER
-
DIVIDE
-
MULTIPLY
-
MINUS
-
PLUS
-
GREATER_EQUAL
-
GREATER
-
LESS_EQUAL
-
LESS
-
NOT_EQUAL
-
EQUAL
-
NOT_EQUAL_BOOL
-
EQUAL_BOOL
-
BITWISE_AND
-
BITWISE_XOR
-
BITWISE_OR
-
LOGICAL_AND
-
LOGICAL_OR
-
-
Constructor Details
-
ExecutionContext
-
ExecutionContext
public ExecutionContext()
-
-
Method Details
-
execute
-
execute
-
execute
-
execute
-
getType
-
top
-
setScope
-
getScope
-
setForwardedModifiers
@Nullable public Map<String, ? extends ForwardedModifier> setForwardedModifiers(@Nullable Map<String, ? extends ForwardedModifier> forwardedModifiers) -
getForwardedModifiers
-
hasScope
public boolean hasScope() -
getCombatConfig
-
setCombatConfig
-
getInteractionVars
-
setInteractionVars
-
push
-
push
public void push(double value) -
push
public void push(int value) -
push
public void push(boolean value) -
push
-
push
public void push(double[] value) -
push
public void push(boolean[] value) -
pushEmptyArray
public void pushEmptyArray() -
popPush
-
popPush
public void popPush(double value, int popCount) -
popPush
public void popPush(int value, int popCount) -
popPush
public void popPush(boolean value, int popCount) -
popPush
-
popPush
public void popPush(double[] value, int popCount) -
popPush
public void popPush(boolean[] value, int popCount) -
popPushEmptyArray
public void popPushEmptyArray(int popCount) -
popNumber
public double popNumber() -
popInt
public int popInt() -
popString
-
popBoolean
public boolean popBoolean() -
popNumberArray
public double[] popNumberArray() -
popStringArray
-
popBooleanArray
public boolean[] popBooleanArray() -
popAsString
-
getNumber
public double getNumber(int index) -
getInt
public int getInt(int index) -
getString
-
getBoolean
public boolean getBoolean(int index) -
getNumberArray
public double[] getNumberArray(int index) -
getStringArray
-
getBooleanArray
public boolean[] getBooleanArray(int index) -
genPUSH
-
genPUSH
-
genPUSH
-
genPUSH
-
genPUSH
-
genPUSH
-
genPUSHEmptyArray
-
genREAD
@Nonnull public static ExecutionContext.Instruction genREAD(String ident, @Nonnull ValueType type, @Nullable Scope scope) -
genCALL
@Nonnull public static ExecutionContext.Instruction genCALL(String ident, int numArgs, @Nullable Scope scope) -
genNumberPACK
-
genStringPACK
-
genBooleanPACK
-
genPACK
-
toString
-