AnonymousAttributeImpl

open class AnonymousAttributeImpl(val pool: ConstantPool, val nameConstant: Int, val value: ByteArray) : Attribute(source)

An abstract Attribute implementation without any custom properties This implementation can wrap any attribute.

Specification

Since

0.1.0

Parameters

pool

the ConstantPool of the attribute

nameConstant

the name of the attribute

value

the value of the attribute

See also

Inheritors

Constructors

Link copied to clipboard
constructor(pool: ConstantPool, nameConstant: Int, value: ByteArray)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val name: String

The name of the attribute

Link copied to clipboard
open override val nameConstant: Int

The name of the attribute

Link copied to clipboard
open override val pool: ConstantPool

The ConstantPool of the attribute

Link copied to clipboard
open override val value: ByteArray

The value of the attribute

Functions

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

Compare this Attribute to another Attribute

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

Get the size of the attribute

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

Does the attribute equal the other object

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

Get the hash code of the attribute

Link copied to clipboard
open fun hashCodeHelper(): Int

Get the hash code of this Attribute