Class ModuleAttribute
- java.lang.Object
-
- proguard.util.SimpleProcessable
-
- proguard.classfile.attribute.Attribute
-
- proguard.classfile.attribute.module.ModuleAttribute
-
- All Implemented Interfaces:
java.io.Serializable
,Processable
public class ModuleAttribute extends Attribute
ThisAttribute
represents a module attribute.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field 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
-
Fields inherited from class proguard.classfile.attribute.Attribute
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
-
Fields inherited from class proguard.util.SimpleProcessable
processingFlags, processingInfo
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class proguard.classfile.attribute.Attribute
accept, accept, accept, accept, getAttributeName
-
Methods inherited from class proguard.util.SimpleProcessable
addProcessingFlags, getProcessingFlags, getProcessingInfo, hasProcessingFlags, removeProcessingFlags, setProcessingFlags, setProcessingInfo
-
-
-
-
Field Detail
-
u2moduleNameIndex
public int u2moduleNameIndex
-
u2moduleFlags
public int u2moduleFlags
-
u2moduleVersionIndex
public int u2moduleVersionIndex
-
u2requiresCount
public int u2requiresCount
-
requires
public RequiresInfo[] requires
-
u2exportsCount
public int u2exportsCount
-
exports
public ExportsInfo[] exports
-
u2opensCount
public int u2opensCount
-
opens
public OpensInfo[] opens
-
u2usesCount
public int u2usesCount
-
u2uses
public int[] u2uses
-
u2providesCount
public int u2providesCount
-
provides
public ProvidesInfo[] provides
-
-
Constructor Detail
-
ModuleAttribute
public ModuleAttribute()
Creates an uninitialized ModuleAttribute.
-
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)
Creates an initialized ModuleAttribute.
-
-
Method Detail
-
accept
public void accept(Clazz clazz, AttributeVisitor attributeVisitor)
Description copied from class:Attribute
Accepts the given visitor.
-
nameAccept
public void nameAccept(Clazz clazz, ConstantVisitor constantVisitor)
Applies the given constant pool visitor to the Utf8 constant of the name, if any.
-
versionAccept
public void versionAccept(Clazz clazz, ConstantVisitor constantVisitor)
Applies the given constant pool visitor to the Utf8 constant of the version, if any.
-
requiresAccept
public void requiresAccept(Clazz clazz, RequiresInfoVisitor requiresInfoVisitor)
Applies the given visitor to all requires.
-
exportsAccept
public void exportsAccept(Clazz clazz, ExportsInfoVisitor exportsInfoVisitor)
Applies the given visitor to all exports.
-
opensAccept
public void opensAccept(Clazz clazz, OpensInfoVisitor opensInfoVisitor)
Applies the given visitor to all exports.
-
usesAccept
public void usesAccept(Clazz clazz, ConstantVisitor constantVisitor)
Applies the given constant pool visitor to all uses.
-
providesAccept
public void providesAccept(Clazz clazz, ProvidesInfoVisitor providesInfoVisitor)
Applies the given visitor to all provides.
-
-