Class AttributeModule
- java.lang.Object
-
- org.benf.cfr.reader.entities.attributes.Attribute
-
- org.benf.cfr.reader.entities.attributes.AttributeModule
-
- All Implemented Interfaces:
KnowsRawName,KnowsRawSize,Dumpable,TypeUsageCollectable
public class AttributeModule extends Attribute
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAttributeModule.ExportOpenstatic classAttributeModule.ModuleContentFlagsstatic classAttributeModule.ModuleFlagsstatic classAttributeModule.Providestatic classAttributeModule.Requirestatic classAttributeModule.Use
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringATTRIBUTE_NAMEprivate ConstantPoolcpprivate java.util.List<AttributeModule.ExportOpen>exportsprivate intflagsprivate intlengthprivate intnameIdxprivate static longOFFSET_OF_ATTRIBUTE_LENGTHprivate static longOFFSET_OF_DYNAMIC_INFOprivate static longOFFSET_OF_MODULE_FLAGSprivate static longOFFSET_OF_MODULE_NAMEprivate static longOFFSET_OF_MODULE_VERSIONprivate java.util.List<AttributeModule.ExportOpen>opensprivate java.util.List<AttributeModule.Provide>providesprivate java.util.List<AttributeModule.Require>requiresprivate java.util.List<AttributeModule.Use>usesprivate intversionIdx
-
Constructor Summary
Constructors Constructor Description AttributeModule(ByteData raw, ConstantPool cp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Dumperdump(Dumper d)ConstantPoolgetCp()java.util.List<AttributeModule.ExportOpen>getExports()java.util.Set<AttributeModule.ModuleFlags>getFlags()java.lang.StringgetModuleName()java.util.List<AttributeModule.ExportOpen>getOpens()java.util.List<AttributeModule.Provide>getProvides()longgetRawByteLength()java.lang.StringgetRawName()java.util.List<AttributeModule.Require>getRequires()java.util.List<AttributeModule.Use>getUses()java.lang.StringtoString()-
Methods inherited from class org.benf.cfr.reader.entities.attributes.Attribute
collectTypeUsages
-
-
-
-
Field Detail
-
ATTRIBUTE_NAME
public static final java.lang.String ATTRIBUTE_NAME
- See Also:
- Constant Field Values
-
OFFSET_OF_ATTRIBUTE_LENGTH
private static final long OFFSET_OF_ATTRIBUTE_LENGTH
- See Also:
- Constant Field Values
-
OFFSET_OF_MODULE_NAME
private static final long OFFSET_OF_MODULE_NAME
- See Also:
- Constant Field Values
-
OFFSET_OF_MODULE_FLAGS
private static final long OFFSET_OF_MODULE_FLAGS
- See Also:
- Constant Field Values
-
OFFSET_OF_MODULE_VERSION
private static final long OFFSET_OF_MODULE_VERSION
- See Also:
- Constant Field Values
-
OFFSET_OF_DYNAMIC_INFO
private static final long OFFSET_OF_DYNAMIC_INFO
- See Also:
- Constant Field Values
-
nameIdx
private final int nameIdx
-
flags
private final int flags
-
versionIdx
private final int versionIdx
-
requires
private final java.util.List<AttributeModule.Require> requires
-
exports
private final java.util.List<AttributeModule.ExportOpen> exports
-
opens
private final java.util.List<AttributeModule.ExportOpen> opens
-
uses
private final java.util.List<AttributeModule.Use> uses
-
provides
private final java.util.List<AttributeModule.Provide> provides
-
length
private final int length
-
cp
private ConstantPool cp
-
-
Constructor Detail
-
AttributeModule
public AttributeModule(ByteData raw, ConstantPool cp)
-
-
Method Detail
-
getFlags
public java.util.Set<AttributeModule.ModuleFlags> getFlags()
-
getRawName
public java.lang.String getRawName()
-
getRawByteLength
public long getRawByteLength()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getRequires
public java.util.List<AttributeModule.Require> getRequires()
-
getExports
public java.util.List<AttributeModule.ExportOpen> getExports()
-
getOpens
public java.util.List<AttributeModule.ExportOpen> getOpens()
-
getUses
public java.util.List<AttributeModule.Use> getUses()
-
getProvides
public java.util.List<AttributeModule.Provide> getProvides()
-
getCp
public ConstantPool getCp()
-
getModuleName
public java.lang.String getModuleName()
-
-