StorageFormat

open class StorageFormat(val major: Short, val minor: Short, val packageNameConstant: Int, val constantPool: ConstantPool, val classes: List<Class>, val methods: List<Method>, val fields: List<Field>) : DumpAble(source)

Implementation of the storage format. See the storage format specification for more information

Since

0.1.0

Parameters

major

The major version of the storage format

minor

The minor version of the storage format

packageNameConstant

The constant of the package name

constantPool

The constant pool

classes

The classes

fields

The fields

methods

The methods

Inheritors

Constructors

Link copied to clipboard
constructor(major: Short, minor: Short, packageNameConstant: Int, constantPool: ConstantPool, classes: List<Class>, methods: List<Method>, fields: List<Field>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open val classes: List<Class>

The classes See the storage format specification for more information

Link copied to clipboard

The constant pool See the storage format specification for more information

Link copied to clipboard
open val fields: List<Field>

The fields See the storage format specification for more information

Link copied to clipboard
open val magic: Int

The magic number of the storage format is used to identify the storage format. It is always the same. See the storage format specification for more information

Link copied to clipboard
open val major: Short

The major version of the storage format See the storage format specification for more information

Link copied to clipboard
open val methods: List<Method>

The methods See the storage format specification for more information

Link copied to clipboard
open val minor: Short

The minor version of the storage format See the storage format specification for more information

Link copied to clipboard

The package name This is a shortcut for constantPool.getUtf8(packageNameConstant).value See the storage format specification for more information

Link copied to clipboard

The constant of the package name See the storage format specification

Functions

Link copied to clipboard
open override fun dump(stream: DataOutputStream)

Dump the storage format to a DataOutputStream

open fun dump(): ByteArray
open fun dump(stream: OutputStream)
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Check if this storage format is equal to another object

Link copied to clipboard
open override fun hashCode(): Int

Get the hash code of this storage format