MutableStorageFormat

class MutableStorageFormat(var major: Short, var minor: Short, var packageNameConstant: Int, var constantPool: MutableConstantPool, var classes: MutableList<MutableClass>, var methods: MutableList<MutableMethod>, var fields: MutableList<MutableField>) : StorageFormat(source)

Mutable implementation of the StorageFormat See the storage format specification for more information

Since

0.1.0

See also

Constructors

Link copied to clipboard
constructor(major: Short, minor: Short, packageNameConstant: Int, constantPool: MutableConstantPool, classes: MutableList<MutableClass>, methods: MutableList<MutableMethod>, fields: MutableList<MutableField>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override var classes: MutableList<MutableClass>

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 override var fields: MutableList<MutableField>

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 override var major: Short

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

Link copied to clipboard
open override var methods: MutableList<MutableMethod>

The methods See the storage format specification for more information

Link copied to clipboard
open override var minor: Short

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

Link copied to clipboard
open override var packageName: String

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

Link copied to clipboard
open override var packageNameConstant: Int

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