Method

open class Method(val pool: ConstantPool, val qualifiedNameConstant: Int, val flags: Short, val attributes: List<Attribute>)(source)

A class representing a method in the bytecode

Method Specification

Since

0.1.0

Parameters

pool

The ConstantPool of the method

qualifiedNameConstant

The constant of the qualified name of the method

flags

The flags of the method

attributes

The attributes of the method

Inheritors

Constructors

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

Creates a Method with the given pool, qualifiedNameConstant, flags and attributes

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The attributes of the method

Link copied to clipboard
open val flags: Short

The flags of the method

Link copied to clipboard

Returns if the method is abstract

Link copied to clipboard

Returns if the method is a constructor

Link copied to clipboard
open val isFinal: Boolean

Returns if the method is final

Link copied to clipboard
open val isNative: Boolean

Returns if the method is native

Link copied to clipboard
open val isPrivate: Boolean

Returns if the method is private

Link copied to clipboard

Returns if the method is protected

Link copied to clipboard
open val isPublic: Boolean

Returns if the method is public

Link copied to clipboard
open val isStatic: Boolean

Returns if the method is static

Link copied to clipboard
open val isStrict: Boolean

Returns if the method is strict

Link copied to clipboard

Returns if the method is synchronized

Link copied to clipboard
open val name: String

Returns the name of the method

Link copied to clipboard
open val pool: ConstantPool

The ConstantPool of the bytecode

Link copied to clipboard

Returns the qualified name of the method

Link copied to clipboard

The index of an utf8 constant in the ConstantPool that represents the qualified name of the method

Functions

Link copied to clipboard

Dumps the Method to a ByteArray

fun dump(stream: DataOutputStream)

Dumps the Method to the given stream

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

Returns if the given other object is equal to this Method

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

Returns the hash code of this Method