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 class
AttributeModule.ExportOpen
static class
AttributeModule.ModuleContentFlags
static class
AttributeModule.ModuleFlags
static class
AttributeModule.Provide
static class
AttributeModule.Require
static class
AttributeModule.Use
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ATTRIBUTE_NAME
private ConstantPool
cp
private java.util.List<AttributeModule.ExportOpen>
exports
private int
flags
private int
length
private int
nameIdx
private static long
OFFSET_OF_ATTRIBUTE_LENGTH
private static long
OFFSET_OF_DYNAMIC_INFO
private static long
OFFSET_OF_MODULE_FLAGS
private static long
OFFSET_OF_MODULE_NAME
private static long
OFFSET_OF_MODULE_VERSION
private java.util.List<AttributeModule.ExportOpen>
opens
private java.util.List<AttributeModule.Provide>
provides
private java.util.List<AttributeModule.Require>
requires
private java.util.List<AttributeModule.Use>
uses
private int
versionIdx
-
Constructor Summary
Constructors Constructor Description AttributeModule(ByteData raw, ConstantPool cp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Dumper
dump(Dumper d)
ConstantPool
getCp()
java.util.List<AttributeModule.ExportOpen>
getExports()
java.util.Set<AttributeModule.ModuleFlags>
getFlags()
java.lang.String
getModuleName()
java.util.List<AttributeModule.ExportOpen>
getOpens()
java.util.List<AttributeModule.Provide>
getProvides()
long
getRawByteLength()
java.lang.String
getRawName()
java.util.List<AttributeModule.Require>
getRequires()
java.util.List<AttributeModule.Use>
getUses()
java.lang.String
toString()
-
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:
toString
in 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()
-
-