Home Reference Source
import {AttributeInfo} from 'jvm/lib/core/jvm/AttributeInfo.js'
public class | source

AttributeInfo

Wraps JVM Class File Attributes for Classes, Methods and Fields.

Constructor Summary

Public Constructor
public

constructor(attr: Object, owner: MemberInfo)

Member Summary

Public Members
public get

Attempts to decode the attribute against a lookup table of supported attribute parsers.

public get

true if this attribute has been decoded

public get

name: string: *

Official name of the Attribute

public get

raw: Object: *

Object parsed from JVM Class File.

public get

rawData: Buffer: *

Raw Buffer of the Attribute from the JVM Class File.

Private Members
private
private

_data: Buffer

private
private
private

Method Summary

Public Methods
public

Serialized version of this class without circular references.

Public Constructors

public constructor(attr: Object, owner: MemberInfo) source

Params:

NameTypeAttributeDescription
attr Object

raw attribute data

owner MemberInfo

the owning object of this attribute

Public Members

public get decoded: Object: * source

Attempts to decode the attribute against a lookup table of supported attribute parsers. This should work on all well-formed, attributes supported by the Java SE runtimes.

Return:

Object

public get hasDecoded: Boolean: * source

true if this attribute has been decoded

Return:

Boolean

public get name: string: * source

Official name of the Attribute

Return:

string

public get raw: Object: * source

Object parsed from JVM Class File.

Return:

Object

public get rawData: Buffer: * source

Raw Buffer of the Attribute from the JVM Class File.

Return:

Buffer

Private Members

private _attr: Object source

private _data: Buffer source

private _decoded: Boolean source

private _name: string source

private _owner: MemberInfo source

Public Methods

public toObject(): Object source

Serialized version of this class without circular references.

Return:

Object