StringConstant

class StringConstant(val identifier: Int) : ConstantPoolEntry(source)

A StringConstant is a constant pool entry that contains a string identifier

Specification

Since

0.1.0

Parameters

identifier

the string identifier of the entry

See also

Constructors

Link copied to clipboard
constructor(identifier: Int)

creates a new StringConstant

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The string identifier of the entry

Functions

Link copied to clipboard

Dump the entry into a byte array

open override fun dump(stream: DataOutputStream)

Dump the string constant to the given stream

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

Check if the string constant is equal to the given other object

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

Get the hash code of the string constant

Link copied to clipboard
open override fun toString(): String

Get a string representation of the string constant