MemberInfo
Direct Subclass:
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 |
accessFlags: Number: * Access flags bit string |
|
public get |
attributes: Array<AttributeInfo>: * Collection of {@link AttributeInfo>} objects belonging to this entry. |
|
public get |
The name of this entry in the JVM Class File. |
Private Members | ||
private |
_attributes: *[] |
|
private |
_flags: * |
|
private |
_name: * |
Method Summary
Public Methods | ||
public |
addAttribute(attr: AttributeInfo) Adds the specified attribute to this entry's collection of attributes. |
|
public |
findAttributeByName(name: string): AttributeInfo | undefined Finds the first attribute for a given name. |
|
public |
findAttributesByName(name: string): Array<AttributeInfo> 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 Members
public get attributes: Array<AttributeInfo>: * source
Collection of {@link AttributeInfo>} objects belonging to this entry.
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:
Name | Type | Attribute | Description |
attr | AttributeInfo |
public findAttributeByName(name: string): AttributeInfo | undefined source
Finds the first attribute for a given name.
Params:
Name | Type | Attribute | Description |
name | string | search criteria |
public findAttributesByName(name: string): Array<AttributeInfo> source
Finds all attributes that exactly match the specified name.
Params:
Name | Type | Attribute | Description |
name | string | search criteria |