MutableField

class MutableField(pool: MutableConstantPool, var nameConstant: Int, var typeConstant: Int, var flags: Short, attributes: MutableList<Attribute>) : Field(source)

A mutable version of Field

Specification

Since

0.1.0

Parameters

nameConstant

The constant pool index of the name of the field

typeConstant

The constant pool index of the type of the field

flags

The flags of the field

attributes

The attributes of the field

See also

Constructors

Link copied to clipboard
constructor(pool: MutableConstantPool, nameConstant: Int, typeConstant: Int, flags: Short, attributes: MutableList<Attribute>)

Creates a MutableField with the given pool, nameConstant, typeConstant, flags and attributes

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The attributes of the field This is just a getter and setter for the attributes property

Link copied to clipboard
open override var flags: Short

The flags of the field

Link copied to clipboard
open override var isAbstract: Boolean

Is the field abstract? This is just a getter and setter for the flags property

Link copied to clipboard
open override var isFinal: Boolean

Is the field final? This is just a getter and setter for the flags property

Link copied to clipboard
open override var isPrivate: Boolean

Is the field private? This is just a getter and setter for the flags property

Link copied to clipboard
open override var isProtected: Boolean

Is the field protected? This is just a getter and setter for the flags property

Link copied to clipboard
open override var isPublic: Boolean

Is the field public? This is just a getter and setter for the flags property

Link copied to clipboard
open override var isStatic: Boolean

Is the field static? This is just a getter and setter for the flags property

Link copied to clipboard
open override var name: String

The name of the field This is just a getter and setter for the nameConstant property

Link copied to clipboard
open override var nameConstant: Int

The constant pool index of the name of the field

Link copied to clipboard
Link copied to clipboard
open override var type: String

The type of the field This is just a getter and setter for the typeConstant property

Link copied to clipboard
open override var typeConstant: Int

The constant pool index of the type of the field

Functions

Link copied to clipboard

Dumps the Field to a ByteArray

fun dump(stream: DataOutputStream)

Dumps the Field to the given stream

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