core

package
v0.0.0-...-78cea50 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AALOAD

type AALOAD struct{ NoOperandsInstruction }

type AASTORE

type AASTORE struct{ NoOperandsInstruction }

type ACONST_NULL

type ACONST_NULL struct{ NoOperandsInstruction }

type ALOAD

type ALOAD struct{ Index8Instruction }

type ALOAD_0

type ALOAD_0 struct{ NoOperandsInstruction }

type ALOAD_1

type ALOAD_1 struct{ NoOperandsInstruction }

type ALOAD_2

type ALOAD_2 struct{ NoOperandsInstruction }

type ALOAD_3

type ALOAD_3 struct{ NoOperandsInstruction }

type ANEW_ARRAY

type ANEW_ARRAY struct{ Index16Instruction }

type ARETURN

type ARETURN struct{ NoOperandsInstruction }

type ARRAY_LENGTH

type ARRAY_LENGTH struct{ NoOperandsInstruction }

type ASTORE

type ASTORE struct{ Index8Instruction }

type ASTORE_0

type ASTORE_0 struct{ NoOperandsInstruction }

type ASTORE_1

type ASTORE_1 struct{ NoOperandsInstruction }

type ASTORE_2

type ASTORE_2 struct{ NoOperandsInstruction }

type ASTORE_3

type ASTORE_3 struct{ NoOperandsInstruction }

type ATHROW

type ATHROW struct{ NoOperandsInstruction }

type BALOAD

type BALOAD struct{ NoOperandsInstruction }

type BASTORE

type BASTORE struct{ NoOperandsInstruction }

type BIPUSH

type BIPUSH struct {
	// contains filtered or unexported fields
}

func (*BIPUSH) FetchOperands

func (self *BIPUSH) FetchOperands(reader *BytecodeReader)

func (*BIPUSH) GetOperands

func (self *BIPUSH) GetOperands() []string

type BranchInstruction

type BranchInstruction struct {
	Offset int
}

func (*BranchInstruction) FetchOperands

func (self *BranchInstruction) FetchOperands(reader *BytecodeReader)

func (*BranchInstruction) GetOperands

func (self *BranchInstruction) GetOperands() []string

type BytecodeReader

type BytecodeReader struct {
	// contains filtered or unexported fields
}

func (*BytecodeReader) PC

func (self *BytecodeReader) PC() int

func (*BytecodeReader) ReadInt16

func (self *BytecodeReader) ReadInt16() int16

func (*BytecodeReader) ReadInt32

func (self *BytecodeReader) ReadInt32() int32

func (*BytecodeReader) ReadInt32s

func (self *BytecodeReader) ReadInt32s(n int32) []int32

func (*BytecodeReader) ReadInt8

func (self *BytecodeReader) ReadInt8() int8

func (*BytecodeReader) ReadUint16

func (self *BytecodeReader) ReadUint16() uint16

func (*BytecodeReader) ReadUint8

func (self *BytecodeReader) ReadUint8() uint8

func (*BytecodeReader) Reset

func (self *BytecodeReader) Reset(code []byte, pc int)

func (*BytecodeReader) SkipPadding

func (self *BytecodeReader) SkipPadding()

type CALOAD

type CALOAD struct{ NoOperandsInstruction }

type CASTORE

type CASTORE struct{ NoOperandsInstruction }

type CHECK_CAST

type CHECK_CAST struct{ Index16Instruction }

type D2F

type D2F struct{ NoOperandsInstruction }

type D2I

type D2I struct{ NoOperandsInstruction }

type D2L

type D2L struct{ NoOperandsInstruction }

type DADD

type DADD struct{ NoOperandsInstruction }

type DALOAD

type DALOAD struct{ NoOperandsInstruction }

type DASTORE

type DASTORE struct{ NoOperandsInstruction }

type DCMPG

type DCMPG struct{ NoOperandsInstruction }

type DCMPL

type DCMPL struct{ NoOperandsInstruction }

type DCONST_0

type DCONST_0 struct{ NoOperandsInstruction }

type DCONST_1

type DCONST_1 struct{ NoOperandsInstruction }

type DDIV

type DDIV struct{ NoOperandsInstruction }

type DLOAD

type DLOAD struct{ Index8Instruction }

type DLOAD_0

type DLOAD_0 struct{ NoOperandsInstruction }

type DLOAD_1

type DLOAD_1 struct{ NoOperandsInstruction }

type DLOAD_2

type DLOAD_2 struct{ NoOperandsInstruction }

type DLOAD_3

type DLOAD_3 struct{ NoOperandsInstruction }

type DMUL

type DMUL struct{ NoOperandsInstruction }

type DNEG

type DNEG struct{ NoOperandsInstruction }

type DREM

type DREM struct{ NoOperandsInstruction }

type DRETURN

type DRETURN struct{ NoOperandsInstruction }

type DSTORE

type DSTORE struct{ Index8Instruction }

type DSTORE_0

type DSTORE_0 struct{ NoOperandsInstruction }

type DSTORE_1

type DSTORE_1 struct{ NoOperandsInstruction }

type DSTORE_2

type DSTORE_2 struct{ NoOperandsInstruction }

type DSTORE_3

type DSTORE_3 struct{ NoOperandsInstruction }

type DSUB

type DSUB struct{ NoOperandsInstruction }

type DUP

type DUP struct{ NoOperandsInstruction }

type DUP2

type DUP2 struct{ NoOperandsInstruction }

type DUP2_X1

type DUP2_X1 struct{ NoOperandsInstruction }

type DUP2_X2

type DUP2_X2 struct{ NoOperandsInstruction }

type DUP_X1

type DUP_X1 struct{ NoOperandsInstruction }

type DUP_X2

type DUP_X2 struct{ NoOperandsInstruction }

type F2D

type F2D struct{ NoOperandsInstruction }

type F2I

type F2I struct{ NoOperandsInstruction }

type F2L

type F2L struct{ NoOperandsInstruction }

type FADD

type FADD struct{ NoOperandsInstruction }

type FALOAD

type FALOAD struct{ NoOperandsInstruction }

type FASTORE

type FASTORE struct{ NoOperandsInstruction }

type FCMPG

type FCMPG struct{ NoOperandsInstruction }

type FCMPL

type FCMPL struct{ NoOperandsInstruction }

type FCONST_0

type FCONST_0 struct{ NoOperandsInstruction }

type FCONST_1

type FCONST_1 struct{ NoOperandsInstruction }

type FCONST_2

type FCONST_2 struct{ NoOperandsInstruction }

type FDIV

type FDIV struct{ NoOperandsInstruction }

type FLOAD

type FLOAD struct{ Index8Instruction }

type FLOAD_0

type FLOAD_0 struct{ NoOperandsInstruction }

type FLOAD_1

type FLOAD_1 struct{ NoOperandsInstruction }

type FLOAD_2

type FLOAD_2 struct{ NoOperandsInstruction }

type FLOAD_3

type FLOAD_3 struct{ NoOperandsInstruction }

type FMUL

type FMUL struct{ NoOperandsInstruction }

type FNEG

type FNEG struct{ NoOperandsInstruction }

type FREM

type FREM struct{ NoOperandsInstruction }

type FRETURN

type FRETURN struct{ NoOperandsInstruction }

type FSTORE

type FSTORE struct{ Index8Instruction }

type FSTORE_0

type FSTORE_0 struct{ NoOperandsInstruction }

type FSTORE_1

type FSTORE_1 struct{ NoOperandsInstruction }

type FSTORE_2

type FSTORE_2 struct{ NoOperandsInstruction }

type FSTORE_3

type FSTORE_3 struct{ NoOperandsInstruction }

type FSUB

type FSUB struct{ NoOperandsInstruction }

type GET_FIELD

type GET_FIELD struct{ Index16Instruction }

type GET_STATIC

type GET_STATIC struct{ Index16Instruction }

type GOTO

type GOTO struct{ BranchInstruction }

type GOTO_W

type GOTO_W struct {
	// contains filtered or unexported fields
}

func (*GOTO_W) FetchOperands

func (self *GOTO_W) FetchOperands(reader *BytecodeReader)

func (*GOTO_W) GetOperands

func (self *GOTO_W) GetOperands() []string

type I2B

type I2B struct{ NoOperandsInstruction }

type I2C

type I2C struct{ NoOperandsInstruction }

type I2D

type I2D struct{ NoOperandsInstruction }

type I2F

type I2F struct{ NoOperandsInstruction }

type I2L

type I2L struct{ NoOperandsInstruction }

type I2S

type I2S struct{ NoOperandsInstruction }

type IADD

type IADD struct{ NoOperandsInstruction }

type IALOAD

type IALOAD struct{ NoOperandsInstruction }

type IAND

type IAND struct{ NoOperandsInstruction }

type IASTORE

type IASTORE struct{ NoOperandsInstruction }

type ICONST_0

type ICONST_0 struct{ NoOperandsInstruction }

type ICONST_1

type ICONST_1 struct{ NoOperandsInstruction }

type ICONST_2

type ICONST_2 struct{ NoOperandsInstruction }

type ICONST_3

type ICONST_3 struct{ NoOperandsInstruction }

type ICONST_4

type ICONST_4 struct{ NoOperandsInstruction }

type ICONST_5

type ICONST_5 struct{ NoOperandsInstruction }

type ICONST_M1

type ICONST_M1 struct{ NoOperandsInstruction }

type IDIV

type IDIV struct{ NoOperandsInstruction }

type IFEQ

type IFEQ struct{ BranchInstruction }

type IFGE

type IFGE struct{ BranchInstruction }

type IFGT

type IFGT struct{ BranchInstruction }

type IFLE

type IFLE struct{ BranchInstruction }

type IFLT

type IFLT struct{ BranchInstruction }

type IFNE

type IFNE struct{ BranchInstruction }

type IFNONNULL

type IFNONNULL struct{ BranchInstruction }

type IFNULL

type IFNULL struct{ BranchInstruction }

type IF_ACMPEQ

type IF_ACMPEQ struct{ BranchInstruction }

type IF_ACMPNE

type IF_ACMPNE struct{ BranchInstruction }

type IF_ICMPEQ

type IF_ICMPEQ struct{ BranchInstruction }

type IF_ICMPGE

type IF_ICMPGE struct{ BranchInstruction }

type IF_ICMPGT

type IF_ICMPGT struct{ BranchInstruction }

type IF_ICMPLE

type IF_ICMPLE struct{ BranchInstruction }

type IF_ICMPLT

type IF_ICMPLT struct{ BranchInstruction }

type IF_ICMPNE

type IF_ICMPNE struct{ BranchInstruction }

type IINC

type IINC struct {
	Index uint
	Const int32
}

func (*IINC) FetchOperands

func (self *IINC) FetchOperands(reader *BytecodeReader)

func (*IINC) GetOperands

func (self *IINC) GetOperands() []string

type ILOAD

type ILOAD struct{ Index8Instruction }

type ILOAD_0

type ILOAD_0 struct{ NoOperandsInstruction }

type ILOAD_1

type ILOAD_1 struct{ NoOperandsInstruction }

type ILOAD_2

type ILOAD_2 struct{ NoOperandsInstruction }

type ILOAD_3

type ILOAD_3 struct{ NoOperandsInstruction }

type IMUL

type IMUL struct{ NoOperandsInstruction }

type INEG

type INEG struct{ NoOperandsInstruction }

type INSTANCEOF

type INSTANCEOF struct{ Index16Instruction }

type INVOKEDYNAMIC

type INVOKEDYNAMIC struct {
}

func (INVOKEDYNAMIC) FetchOperands

func (self INVOKEDYNAMIC) FetchOperands(reader *BytecodeReader)

func (*INVOKEDYNAMIC) GetOperands

func (self *INVOKEDYNAMIC) GetOperands() []string

type INVOKEINTERFACE

type INVOKEINTERFACE struct {
	// contains filtered or unexported fields
}

func (*INVOKEINTERFACE) FetchOperands

func (self *INVOKEINTERFACE) FetchOperands(reader *BytecodeReader)

func (*INVOKEINTERFACE) GetOperands

func (self *INVOKEINTERFACE) GetOperands() []string

type INVOKENATIVE

type INVOKENATIVE struct{ NoOperandsInstruction }

type INVOKESPECIAL

type INVOKESPECIAL struct{ Index16Instruction }

func (*INVOKESPECIAL) GetOperands

func (self *INVOKESPECIAL) GetOperands() []string

type INVOKESTATIC

type INVOKESTATIC struct{ Index16Instruction }

func (*INVOKESTATIC) GetOperands

func (self *INVOKESTATIC) GetOperands() []string

type INVOKEVIRTUAL

type INVOKEVIRTUAL struct{ Index16Instruction }

func (*INVOKEVIRTUAL) GetOperands

func (self *INVOKEVIRTUAL) GetOperands() []string

type IOR

type IOR struct{ NoOperandsInstruction }

type IREM

type IREM struct{ NoOperandsInstruction }

type IRETURN

type IRETURN struct{ NoOperandsInstruction }

type ISHL

type ISHL struct{ NoOperandsInstruction }

type ISHR

type ISHR struct{ NoOperandsInstruction }

type ISTORE

type ISTORE struct{ Index8Instruction }

type ISTORE_0

type ISTORE_0 struct{ NoOperandsInstruction }

type ISTORE_1

type ISTORE_1 struct{ NoOperandsInstruction }

type ISTORE_2

type ISTORE_2 struct{ NoOperandsInstruction }

type ISTORE_3

type ISTORE_3 struct{ NoOperandsInstruction }

type ISUB

type ISUB struct{ NoOperandsInstruction }

type IUSHR

type IUSHR struct{ NoOperandsInstruction }

type IXOR

type IXOR struct{ NoOperandsInstruction }

type Index16Instruction

type Index16Instruction struct {
	Index uint
}

func (*Index16Instruction) FetchOperands

func (self *Index16Instruction) FetchOperands(reader *BytecodeReader)

func (*Index16Instruction) GetOperands

func (self *Index16Instruction) GetOperands() []string

type Index8Instruction

type Index8Instruction struct {
	Index uint
}

func (*Index8Instruction) FetchOperands

func (self *Index8Instruction) FetchOperands(reader *BytecodeReader)

func (*Index8Instruction) GetOperands

func (self *Index8Instruction) GetOperands() []string

type Instruction

type Instruction interface {
	FetchOperands(reader *BytecodeReader)
	GetOperands() []string
}

func NewInstruction

func NewInstruction(opcode byte) Instruction

type InstructionEntry

type InstructionEntry struct {
	Instrument string
	Operands   []string
}

type InstructionSet

type InstructionSet struct {
	ClassName  string
	MethodName string
	Desc       string
	InstArray  []InstructionEntry
}

type JSR

type JSR struct{ Index16Instruction }

type JSR_W

type JSR_W struct {
}

func (JSR_W) FetchOperands

func (J JSR_W) FetchOperands(reader *BytecodeReader)

func (*JSR_W) GetOperands

func (self *JSR_W) GetOperands() []string

type L2D

type L2D struct{ NoOperandsInstruction }

type L2F

type L2F struct{ NoOperandsInstruction }

type L2I

type L2I struct{ NoOperandsInstruction }

type LADD

type LADD struct{ NoOperandsInstruction }

type LALOAD

type LALOAD struct{ NoOperandsInstruction }

type LAND

type LAND struct{ NoOperandsInstruction }

type LASTORE

type LASTORE struct{ NoOperandsInstruction }

type LCMP

type LCMP struct{ NoOperandsInstruction }

type LCONST_0

type LCONST_0 struct{ NoOperandsInstruction }

type LCONST_1

type LCONST_1 struct{ NoOperandsInstruction }

type LDC

type LDC struct{ Index8Instruction }

type LDC2_W

type LDC2_W struct{ Index16Instruction }

type LDC_W

type LDC_W struct{ Index16Instruction }

type LDIV

type LDIV struct{ NoOperandsInstruction }

type LLOAD

type LLOAD struct{ Index8Instruction }

type LLOAD_0

type LLOAD_0 struct{ NoOperandsInstruction }

type LLOAD_1

type LLOAD_1 struct{ NoOperandsInstruction }

type LLOAD_2

type LLOAD_2 struct{ NoOperandsInstruction }

type LLOAD_3

type LLOAD_3 struct{ NoOperandsInstruction }

type LMUL

type LMUL struct{ NoOperandsInstruction }

type LNEG

type LNEG struct{ NoOperandsInstruction }

type LOOKUPSWITCH

type LOOKUPSWITCH struct {
	// contains filtered or unexported fields
}

func (*LOOKUPSWITCH) FetchOperands

func (self *LOOKUPSWITCH) FetchOperands(reader *BytecodeReader)

func (*LOOKUPSWITCH) GetOperands

func (self *LOOKUPSWITCH) GetOperands() []string

type LOR

type LOR struct{ NoOperandsInstruction }

type LREM

type LREM struct{ NoOperandsInstruction }

type LRETURN

type LRETURN struct{ NoOperandsInstruction }

type LSHL

type LSHL struct{ NoOperandsInstruction }

type LSHR

type LSHR struct{ NoOperandsInstruction }

type LSTORE

type LSTORE struct{ Index8Instruction }

type LSTORE_0

type LSTORE_0 struct{ NoOperandsInstruction }

type LSTORE_1

type LSTORE_1 struct{ NoOperandsInstruction }

type LSTORE_2

type LSTORE_2 struct{ NoOperandsInstruction }

type LSTORE_3

type LSTORE_3 struct{ NoOperandsInstruction }

type LSUB

type LSUB struct{ NoOperandsInstruction }

type LUSHR

type LUSHR struct{ NoOperandsInstruction }

type LXOR

type LXOR struct{ NoOperandsInstruction }

type MONITORENTER

type MONITORENTER struct{ NoOperandsInstruction }

type MONITOREXIT

type MONITOREXIT struct{ NoOperandsInstruction }

type MULTIANEWARRAY

type MULTIANEWARRAY struct {
	// contains filtered or unexported fields
}

func (*MULTIANEWARRAY) FetchOperands

func (self *MULTIANEWARRAY) FetchOperands(reader *BytecodeReader)

func (*MULTIANEWARRAY) GetOperands

func (self *MULTIANEWARRAY) GetOperands() []string

type NEW

type NEW struct{ Index16Instruction }

type NEWARRAY

type NEWARRAY struct {
	// contains filtered or unexported fields
}

func (*NEWARRAY) FetchOperands

func (self *NEWARRAY) FetchOperands(reader *BytecodeReader)

func (*NEWARRAY) GetOperands

func (self *NEWARRAY) GetOperands() []string

type NOP

type NOP struct{ NoOperandsInstruction }

type NoOperandsInstruction

type NoOperandsInstruction struct {
}

func (*NoOperandsInstruction) FetchOperands

func (self *NoOperandsInstruction) FetchOperands(_ *BytecodeReader)

func (*NoOperandsInstruction) GetOperands

func (self *NoOperandsInstruction) GetOperands() []string

type POP

type POP struct{ NoOperandsInstruction }

type POP2

type POP2 struct{ NoOperandsInstruction }

type PUTFIELD

type PUTFIELD struct{ Index16Instruction }

type PUTSTATIC

type PUTSTATIC struct{ Index16Instruction }

type RET

type RET struct{ Index8Instruction }

type RETURN

type RETURN struct{ NoOperandsInstruction }

type SALOAD

type SALOAD struct{ NoOperandsInstruction }

type SASTORE

type SASTORE struct{ NoOperandsInstruction }

type SIPUSH

type SIPUSH struct {
	// contains filtered or unexported fields
}

func (*SIPUSH) FetchOperands

func (self *SIPUSH) FetchOperands(reader *BytecodeReader)

func (*SIPUSH) GetOperands

func (self *SIPUSH) GetOperands() []string

type SWAP

type SWAP struct{ NoOperandsInstruction }

type TABLESWITCH

type TABLESWITCH struct {
	// contains filtered or unexported fields
}

func (*TABLESWITCH) FetchOperands

func (self *TABLESWITCH) FetchOperands(reader *BytecodeReader)

func (*TABLESWITCH) GetOperands

func (self *TABLESWITCH) GetOperands() []string

type Thread

type Thread struct {
	// contains filtered or unexported fields
}

func NewThread

func NewThread() *Thread

func (*Thread) PC

func (self *Thread) PC() int

func (*Thread) SetPC

func (self *Thread) SetPC(pc int)

type WIDE

type WIDE struct {
	// contains filtered or unexported fields
}

func (*WIDE) FetchOperands

func (self *WIDE) FetchOperands(reader *BytecodeReader)

func (*WIDE) GetOperands

func (self *WIDE) GetOperands() []string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL