Field

open class Field(val pool: ConstantPool, val nameConstant: Int, val typeConstant: Int, val flags: Short, val attributes: List<Attribute>)(source)

A class representing a field in the shake StorageFormat

Specification

Since

0.1.0

Parameters

pool
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

Inheritors

Constructors

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

Creates a Field 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

Link copied to clipboard
open val flags: Short

The flags of the field

Link copied to clipboard

Returns if the field is abstract

Link copied to clipboard
open val isFinal: Boolean

Returns if the field is final

Link copied to clipboard
open val isPrivate: Boolean

Returns if the field is private

Link copied to clipboard

Returns if the field is protected

Link copied to clipboard
open val isPublic: Boolean

Returns if the field is public

Link copied to clipboard
open val isStatic: Boolean

Returns if the field is static

Link copied to clipboard
open val name: String

Returns the name of the field

Link copied to clipboard
open val nameConstant: Int

The constant pool index of the name of the field

Link copied to clipboard
Link copied to clipboard
open val type: String

Returns the type of the field

Link copied to clipboard
open val 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