MutableCodeAttribute

class MutableCodeAttribute(pool: MutableConstantPool, var nameConstant: Int, var maxStack: Int, var maxLocals: Int, var code: ByteArray, var exceptionTable: Array<CodeAttribute.ExceptionTableEntry>, var attributes: Array<Attribute>) : CodeAttribute, MutableAttribute(source)

Mutable CodeAttribute

Since

0.1.0

Parameters

pool

the MutableConstantPool of the attribute

nameConstant

the name of the attribute

maxStack

the maximum size of the stack

maxLocals

the maximum size of the locals

code

the code of the method

exceptionTable

the exception table of the method

attributes

the attributes of the method

See also

Constructors

Link copied to clipboard
constructor(pool: MutableConstantPool, nameConstant: Int, maxStack: Int, maxLocals: Int, code: ByteArray, exceptionTable: Array<CodeAttribute.ExceptionTableEntry>, attributes: Array<Attribute>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override var attributes: Array<Attribute>

The attributes of the method

Link copied to clipboard
open override var code: ByteArray

The code of the method

Link copied to clipboard

The exception table of the method

Link copied to clipboard
open override var maxLocals: Int

The maximum size of the locals

Link copied to clipboard
open override var maxStack: Int

The maximum size of the stack

Link copied to clipboard
open val name: String

The name of the attribute

Link copied to clipboard
open override var nameConstant: Int

The name of the attribute

Link copied to clipboard
open override val pool: MutableConstantPool

The MutableConstantPool of the attribute

Link copied to clipboard
open override val value: ByteArray

The value of the attribute (Automatically generated from the maxStack, maxLocals, code, exceptionTable and attributes)

Functions

Link copied to clipboard
open fun compareHelper(other: Any?): Boolean

Compare this Attribute to another Attribute

Link copied to clipboard
open fun dump(): ByteArray

Dump the attribute to a ByteArray

open fun dump(stream: DataOutputStream)

Dump the attribute to a DataOutputStream

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

Check if this CodeAttribute is equal to other

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

Get the hashCode of this CodeAttribute

Link copied to clipboard
open fun hashCodeHelper(): Int

Get the hash code of this Attribute