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

MemberInfo

Direct Subclass:

ClassInfo, FieldInfo, MethodInfo

Abstract class for extracting the same functionality between the FieldInfo, MethodInfo, and ClassInfo classes.

Constructor Summary

Public Constructor
public

constructor(accessFlags: Number, name: string)

Member Summary

Public Members
public get

Access flags bit string

public get

Collection of {@link AttributeInfo>} objects belonging to this entry.

public get

name: string: *

The name of this entry in the JVM Class File.

Private Members
private
private

_flags: *

private

_name: *

Method Summary

Public Methods
public

Adds the specified attribute to this entry's collection of attributes.

public

Finds the first attribute for a given name.

public

Finds all attributes that exactly match the specified name.

public

Checks to see if an access flag bit has been set.

public

Serialized version of this class without circular references.

Public Constructors

public constructor(accessFlags: Number, name: string) source

Params:

NameTypeAttributeDescription
accessFlags Number

access flags bit string

name string

name of this entry in the ClassFile

Public Members

public get accessFlags: Number: * source

Access flags bit string

Return:

Number

public get attributes: Array<AttributeInfo>: * source

Collection of {@link AttributeInfo>} objects belonging to this entry.

Return:

Array<AttributeInfo>

public get name: string: * source

The name of this entry in the JVM Class File.

Return:

string

Private Members

private _attributes: *[] source

private _flags: * source

private _name: * source

Public Methods

public addAttribute(attr: AttributeInfo) source

Adds the specified attribute to this entry's collection of attributes.

Params:

NameTypeAttributeDescription
attr AttributeInfo

public findAttributeByName(name: string): AttributeInfo | undefined source

Finds the first attribute for a given name.

Params:

NameTypeAttributeDescription
name string

search criteria

public findAttributesByName(name: string): Array<AttributeInfo> source

Finds all attributes that exactly match the specified name.

Params:

NameTypeAttributeDescription
name string

search criteria

Return:

Array<AttributeInfo>

public hasFlag(flag: Number): Boolean source

Checks to see if an access flag bit has been set.

Params:

NameTypeAttributeDescription
flag Number

bitmask

Return:

Boolean

public toObject(): Object source

Serialized version of this class without circular references.

Return:

Object