public class ModuleAttribute extends Attribute
Attribute
represents a module attribute.Modifier and Type | Field and Description |
---|---|
ExportsInfo[] |
exports |
OpensInfo[] |
opens |
ProvidesInfo[] |
provides |
RequiresInfo[] |
requires |
int |
u2exportsCount |
int |
u2moduleFlags |
int |
u2moduleNameIndex |
int |
u2moduleVersionIndex |
int |
u2opensCount |
int |
u2providesCount |
int |
u2requiresCount |
int[] |
u2uses |
int |
u2usesCount |
ANNOTATION_DEFAULT, BOOTSTRAP_METHODS, CHARACTER_RANGE_TABLE, CODE, COMPILATION_I_D, CONSTANT_VALUE, DEPRECATED, ENCLOSING_METHOD, EXCEPTIONS, INNER_CLASSES, LINE_NUMBER_TABLE, LOCAL_VARIABLE_TABLE, LOCAL_VARIABLE_TYPE_TABLE, METHOD_PARAMETERS, MODULE, MODULE_MAIN_CLASS, MODULE_PACKAGES, NEST_HOST, NEST_MEMBERS, PERMITTED_SUBCLASSES, RECORD, RUNTIME_INVISIBLE_ANNOTATIONS, RUNTIME_INVISIBLE_PARAMETER_ANNOTATIONS, RUNTIME_INVISIBLE_TYPE_ANNOTATIONS, RUNTIME_VISIBLE_ANNOTATIONS, RUNTIME_VISIBLE_PARAMETER_ANNOTATIONS, RUNTIME_VISIBLE_TYPE_ANNOTATIONS, SIGNATURE, SOURCE_DEBUG_EXTENSION, SOURCE_DIR, SOURCE_FILE, SOURCE_I_D, STACK_MAP, STACK_MAP_TABLE, SYNTHETIC, u2attributeNameIndex
processingFlags, processingInfo
Constructor and Description |
---|
ModuleAttribute()
Creates an uninitialized ModuleAttribute.
|
ModuleAttribute(int u2attributeNameIndex,
int u2moduleNameIndex,
int u2moduleFlags,
int u2moduleVersionIndex,
int u2requiresCount,
RequiresInfo[] requires,
int u2exportsCount,
ExportsInfo[] exports,
int u2opensCount,
OpensInfo[] opens,
int u2usesCount,
int[] u2uses,
int u2ProvidesCount,
ProvidesInfo[] provides)
Creates an initialized ModuleAttribute.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(Clazz clazz,
AttributeVisitor attributeVisitor)
Accepts the given visitor.
|
void |
exportsAccept(Clazz clazz,
ExportsInfoVisitor exportsInfoVisitor)
Applies the given visitor to all exports.
|
void |
nameAccept(Clazz clazz,
ConstantVisitor constantVisitor)
Applies the given constant pool visitor to the Utf8 constant of the name, if any.
|
void |
opensAccept(Clazz clazz,
OpensInfoVisitor opensInfoVisitor)
Applies the given visitor to all exports.
|
void |
providesAccept(Clazz clazz,
ProvidesInfoVisitor providesInfoVisitor)
Applies the given visitor to all provides.
|
void |
requiresAccept(Clazz clazz,
RequiresInfoVisitor requiresInfoVisitor)
Applies the given visitor to all requires.
|
void |
usesAccept(Clazz clazz,
ConstantVisitor constantVisitor)
Applies the given constant pool visitor to all uses.
|
void |
versionAccept(Clazz clazz,
ConstantVisitor constantVisitor)
Applies the given constant pool visitor to the Utf8 constant of the version, if any.
|
accept, accept, accept, accept, getAttributeName
addProcessingFlags, getProcessingFlags, getProcessingInfo, hasProcessingFlags, removeProcessingFlags, setProcessingFlags, setProcessingInfo
public int u2moduleNameIndex
public int u2moduleFlags
public int u2moduleVersionIndex
public int u2requiresCount
public RequiresInfo[] requires
public int u2exportsCount
public ExportsInfo[] exports
public int u2opensCount
public OpensInfo[] opens
public int u2usesCount
public int[] u2uses
public int u2providesCount
public ProvidesInfo[] provides
public ModuleAttribute()
public ModuleAttribute(int u2attributeNameIndex, int u2moduleNameIndex, int u2moduleFlags, int u2moduleVersionIndex, int u2requiresCount, RequiresInfo[] requires, int u2exportsCount, ExportsInfo[] exports, int u2opensCount, OpensInfo[] opens, int u2usesCount, int[] u2uses, int u2ProvidesCount, ProvidesInfo[] provides)
public void accept(Clazz clazz, AttributeVisitor attributeVisitor)
Attribute
public void nameAccept(Clazz clazz, ConstantVisitor constantVisitor)
public void versionAccept(Clazz clazz, ConstantVisitor constantVisitor)
public void requiresAccept(Clazz clazz, RequiresInfoVisitor requiresInfoVisitor)
public void exportsAccept(Clazz clazz, ExportsInfoVisitor exportsInfoVisitor)
public void opensAccept(Clazz clazz, OpensInfoVisitor opensInfoVisitor)
public void usesAccept(Clazz clazz, ConstantVisitor constantVisitor)
public void providesAccept(Clazz clazz, ProvidesInfoVisitor providesInfoVisitor)