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

FieldInfo

Extends:

MemberInfo → FieldInfo

Wrapper for JVM Class File field entry.

Constructor Summary

Public Constructor
public

constructor(classInfo: ClassInfo, accessFlags: Number, name: string, descriptor: string)

Member Summary

Public Members
public get

Access the class this member is within

public get

desc: string: *

JVM type descriptor

Private Members
private
private

Method Summary

Public Methods
public

Serialized version of this class without circular references.

Inherited Summary

From class MemberInfo
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
private

_flags: *

private

_name: *

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(classInfo: ClassInfo, accessFlags: Number, name: string, descriptor: string) source

Override:

MemberInfo#constructor

Params:

NameTypeAttributeDescription
classInfo ClassInfo

The class the given field is in

accessFlags Number

access flags bit string

name string

name of this entry in the ClassFile

descriptor string

type descriptor

Public Members

public get classInfo: ClassInfo: * source

Access the class this member is within

Return:

ClassInfo

public get desc: string: * source

JVM type descriptor

Return:

string

Private Members

private _classInfo: ClassInfo source

private _descriptor: string source

Public Methods

public toObject(): Object source

Serialized version of this class without circular references.

Override:

MemberInfo#toObject

Return:

Object