Class ModuleRuntimeAccessAttribute
java.lang.Object
java.lang.classfile.CustomAttribute<ModuleRuntimeAccessAttribute>
com.netflix.module.ModuleRuntimeAccessAttribute
- All Implemented Interfaces:
Attribute<ModuleRuntimeAccessAttribute>, ClassElement, ClassFileElement, CodeElement, FieldElement, MethodElement
public final class ModuleRuntimeAccessAttribute
extends CustomAttribute<ModuleRuntimeAccessAttribute>
A module's fully qualified runtime access requirements.
ModuleRuntimeAccess_attribute {
u2 attribute_name_index;
u4 attribute_length;
u2 native_access_count;
u2 native_access_index[native_access_count];
u2 final_field_mutation_count;
u2 final_field_mutation_index[final_field_mutation_count];
u2 add_exports_count;
{
u2 source_module_index;
u2 package_index;
u2 target_count;
u2 target_index[target_count];
} add_exports[add_exports_count];
u2 add_opens_count;
{
u2 source_module_index;
u2 package_index;
u2 target_count;
u2 target_index[target_count];
} add_opens[add_opens_count];
}
Module indexes refer to CONSTANT_Module_info; package indexes
refer to CONSTANT_Package_info. The attribute is valid only on
module-info.class.
-
Method Summary
Modifier and TypeMethodDescriptionmapper()Returns the Class-File API mapper for this attribute.Returns a Class-File API option which recognizes this attribute.static ModuleRuntimeAccessAttributeof(ModuleRuntimeAccessOptions options) Creates an attribute containing runtime access requirements.options()Returns the requirements stored in this attribute.Methods inherited from class CustomAttribute
attributeMapper, attributeName, toString
-
Method Details
-
of
Creates an attribute containing runtime access requirements.- Parameters:
options- the requirements to encode- Returns:
- the attribute
-
options
Returns the requirements stored in this attribute.- Returns:
- the runtime access options
-
mapper
Returns the Class-File API mapper for this attribute.- Returns:
- the attribute mapper
-
mapperOption
Returns a Class-File API option which recognizes this attribute.- Returns:
- the attribute mapper option
-