jclass

package
v0.0.0-...-86c7e5b Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FieldInfo

type FieldInfo struct {
	Access uint16
	Name   string
	Desc   string
	Attrs  map[string]string
}

type JavaClassScanner

type JavaClassScanner struct {
	Fields []FieldInfo
	// contains filtered or unexported fields
}

JavaClassScanner reads Java class file to extract its data (fields, methods, etc.). This is very inefficient.

func NewJavaClassScanner

func NewJavaClassScanner(rs io.ReadSeeker) *JavaClassScanner

func (*JavaClassScanner) DerefString

func (jc *JavaClassScanner) DerefString(i uint16, lvl int) string

func (*JavaClassScanner) Reset

func (jc *JavaClassScanner) Reset(rs io.ReadSeeker)

func (*JavaClassScanner) Scan

func (jc *JavaClassScanner) Scan() error

func (*JavaClassScanner) TryDeref

func (jc *JavaClassScanner) TryDeref(i uint16, lvl int) string

type Ref

type Ref interface {
	Deref(*JavaClassScanner, int) string
}

Ref is a reference of class data (constant string, class ID, methods, etc.)

Jump to

Keyboard shortcuts

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