Package meteordevelopment.starscript
Class Script
java.lang.Object
meteordevelopment.starscript.Script
Compiled representation of starscript code that can be run inside
Starscript.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDecompiles this script and writes it toSystem.out.voidpatchJump(int offset) Ends a jump instruction.voidwrite(Instruction insn) Writes instruction to this script.voidwrite(Instruction insn, int b) Writes instruction with an additional byte to this script.voidwrite(Instruction insn, Value constant) Writes instruction with an additional constant value to this script.voidwriteConstant(Value constant) Writes constant value to this script.intwriteJump(Instruction insn) Begins a jump instruction.
-
Field Details
-
code
public byte[] code -
constants
-
-
Constructor Details
-
Script
public Script()
-
-
Method Details
-
write
Writes instruction to this script. -
write
Writes instruction with an additional byte to this script. -
write
Writes instruction with an additional constant value to this script. -
writeConstant
Writes constant value to this script. -
writeJump
Begins a jump instruction. -
patchJump
public void patchJump(int offset) Ends a jump instruction. -
decompile
public void decompile()Decompiles this script and writes it toSystem.out.
-