Module org.glavo.classfile
Package org.glavo.classfile.impl
Class UnboundAttribute.UnboundModuleAttribute
java.lang.Object
org.glavo.classfile.impl.AbstractElement
org.glavo.classfile.impl.UnboundAttribute<ModuleAttribute>
org.glavo.classfile.impl.UnboundAttribute.UnboundModuleAttribute
- All Implemented Interfaces:
Attribute<ModuleAttribute>,ModuleAttribute,ClassElement,ClassfileElement,WritableElement<ModuleAttribute>
- Enclosing class:
UnboundAttribute<T extends Attribute<T>>
public static final class UnboundAttribute.UnboundModuleAttribute
extends UnboundAttribute<ModuleAttribute>
implements ModuleAttribute
-
Nested Class Summary
Nested classes/interfaces inherited from class org.glavo.classfile.impl.UnboundAttribute
UnboundAttribute.AdHocAttribute<T extends Attribute<T>>, UnboundAttribute.CustomAttribute<T extends UnboundAttribute.CustomAttribute<T>>, UnboundAttribute.EmptyBootstrapAttribute, UnboundAttribute.TypePathComponentImpl, UnboundAttribute.UnboundAnnotationDefaultAttribute, UnboundAttribute.UnboundCharacterRangeInfo, UnboundAttribute.UnboundCharacterRangeTableAttribute, UnboundAttribute.UnboundCompilationIDAttribute, UnboundAttribute.UnboundConstantValueAttribute, UnboundAttribute.UnboundDeprecatedAttribute, UnboundAttribute.UnboundEnclosingMethodAttribute, UnboundAttribute.UnboundExceptionsAttribute, UnboundAttribute.UnboundInnerClassesAttribute, UnboundAttribute.UnboundInnerClassInfo, UnboundAttribute.UnboundLineNumberInfo, UnboundAttribute.UnboundLineNumberTableAttribute, UnboundAttribute.UnboundLocalVariableInfo, UnboundAttribute.UnboundLocalVariableTableAttribute, UnboundAttribute.UnboundLocalVariableTypeInfo, UnboundAttribute.UnboundLocalVariableTypeTableAttribute, UnboundAttribute.UnboundMethodParameterInfo, UnboundAttribute.UnboundMethodParametersAttribute, UnboundAttribute.UnboundModuleAttribute, UnboundAttribute.UnboundModuleExportInfo, UnboundAttribute.UnboundModuleHashesAttribute, UnboundAttribute.UnboundModuleHashInfo, UnboundAttribute.UnboundModuleMainClassAttribute, UnboundAttribute.UnboundModuleOpenInfo, UnboundAttribute.UnboundModulePackagesAttribute, UnboundAttribute.UnboundModuleProvideInfo, UnboundAttribute.UnboundModuleRequiresInfo, UnboundAttribute.UnboundModuleResolutionAttribute, UnboundAttribute.UnboundModuleTargetAttribute, UnboundAttribute.UnboundNestHostAttribute, UnboundAttribute.UnboundNestMembersAttribute, UnboundAttribute.UnboundPermittedSubclassesAttribute, UnboundAttribute.UnboundRecordAttribute, UnboundAttribute.UnboundRecordComponentInfo, UnboundAttribute.UnboundRuntimeInvisibleAnnotationsAttribute, UnboundAttribute.UnboundRuntimeInvisibleParameterAnnotationsAttribute, UnboundAttribute.UnboundRuntimeInvisibleTypeAnnotationsAttribute, UnboundAttribute.UnboundRuntimeVisibleAnnotationsAttribute, UnboundAttribute.UnboundRuntimeVisibleParameterAnnotationsAttribute, UnboundAttribute.UnboundRuntimeVisibleTypeAnnotationsAttribute, UnboundAttribute.UnboundSignatureAttribute, UnboundAttribute.UnboundSourceDebugExtensionAttribute, UnboundAttribute.UnboundSourceFileAttribute, UnboundAttribute.UnboundSourceIDAttribute, UnboundAttribute.UnboundStackMapTableAttribute, UnboundAttribute.UnboundSyntheticAttribute, UnboundAttribute.UnboundTypeAnnotationNested classes/interfaces inherited from interface org.glavo.classfile.attribute.ModuleAttribute
ModuleAttribute.ModuleAttributeBuilder -
Field Summary
Fields inherited from class org.glavo.classfile.impl.UnboundAttribute
mapper -
Constructor Summary
ConstructorsConstructorDescriptionUnboundModuleAttribute(ModuleEntry moduleName, int moduleFlags, Utf8Entry moduleVersion, Collection<ModuleRequireInfo> requires, Collection<ModuleExportInfo> exports, Collection<ModuleOpenInfo> opens, Collection<ClassEntry> uses, Collection<ModuleProvideInfo> provides) -
Method Summary
Modifier and TypeMethodDescriptionexports()Returns the packages exported by this module.intReturns the the module flags of the module, as a bit mask.Returns the name of the module.Returns version of the module, if present.opens()Returns the packages opened by this module.provides()Returns the service implementations provided by this module.requires()Returns the modules required by this module.uses()Returns the services used by this module.Methods inherited from class org.glavo.classfile.impl.UnboundAttribute
attributeMapper, attributeName, toString, writeTo, writeTo, writeTo, writeTo, writeToMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.glavo.classfile.Attribute
attributeMapper, attributeNameMethods inherited from interface org.glavo.classfile.attribute.ModuleAttribute
has, moduleFlagsMethods inherited from interface org.glavo.classfile.WritableElement
writeTo
-
Constructor Details
-
UnboundModuleAttribute
public UnboundModuleAttribute(ModuleEntry moduleName, int moduleFlags, Utf8Entry moduleVersion, Collection<ModuleRequireInfo> requires, Collection<ModuleExportInfo> exports, Collection<ModuleOpenInfo> opens, Collection<ClassEntry> uses, Collection<ModuleProvideInfo> provides)
-
-
Method Details
-
moduleName
Description copied from interface:ModuleAttributeReturns the name of the module.- Specified by:
moduleNamein interfaceModuleAttribute- Returns:
- the name of the module
-
moduleFlagsMask
public int moduleFlagsMask()Description copied from interface:ModuleAttributeReturns the the module flags of the module, as a bit mask.- Specified by:
moduleFlagsMaskin interfaceModuleAttribute- Returns:
- the the module flags of the module, as a bit mask
-
moduleVersion
Description copied from interface:ModuleAttributeReturns version of the module, if present.- Specified by:
moduleVersionin interfaceModuleAttribute- Returns:
- version of the module, if present
-
requires
Description copied from interface:ModuleAttributeReturns the modules required by this module.- Specified by:
requiresin interfaceModuleAttribute- Returns:
- the modules required by this module
-
exports
Description copied from interface:ModuleAttributeReturns the packages exported by this module.- Specified by:
exportsin interfaceModuleAttribute- Returns:
- the packages exported by this module
-
opens
Description copied from interface:ModuleAttributeReturns the packages opened by this module.- Specified by:
opensin interfaceModuleAttribute- Returns:
- the packages opened by this module
-
uses
Description copied from interface:ModuleAttributeReturns the services used by this module. Services may be discovered viaServiceLoader.- Specified by:
usesin interfaceModuleAttribute- Returns:
- the services used by this module
-
provides
Description copied from interface:ModuleAttributeReturns the service implementations provided by this module.- Specified by:
providesin interfaceModuleAttribute- Returns:
- the service implementations provided by this module
-