Top Description Inners Fields Constructors Methods
org.aspectj.apache.bcel.classfile

public final Class Module

extends Attribute
Class Inheritance
Imports
java.io.DataInputStream, .DataOutputStream, .IOException, org.aspectj.apache.bcel.Constants

This class is derived from Attribute and represents the module information captured in a class file. http://cr.openjdk.java.net/~mr/jigsaw/spec/lang-vm.html http://cr.openjdk.java.net/~mr/jigsaw/spec/java-se-9-jvms-diffs.pdf 4.7.25
Author
Andy Clement

Nested and Inner Type Summary

Modifier and TypeClass and Description
public class
public class
public class
public class
public class

Field Summary

Modifier and TypeField and Description
private Module.Export[]
private int
private byte[]
private int
private int
private static final String[]
private Module.Open[]
private Module.Provide[]
private int
private Module.Require[]
private boolean
private Module.Uses[]
Inherited from org.aspectj.apache.bcel.classfile.Attribute:
cpoollengthnameIndexNoAttributestag

Constructor Summary

AccessConstructor and Description
public
Module(Module module)

public
Module(int nameIndex, int length, byte[] data, ConstantPool cp)

pack-priv
Module(int nameIndex, int length, DataInputStream stream, ConstantPool cp)

Method Summary

Modifier and TypeMethod and Description
public void

Returns:

deep copy of this attribute //
accept
(ClassVisitor v)

Implements abstract org.aspectj.apache.bcel.classfile.Attribute.accept.

Implements org.aspectj.apache.bcel.classfile.Node.accept.

public final void
private void
public byte[]
public Module.Export[]
public int
public String
public String

Returns:

the module version or null if no version information specified
getModuleVersion
()

public Module.Open[]
public Module.Provide[]
public String[]
public Module.Require[]
public Module.Uses[]
private final int
private final int
private final int
readUnsignedShort(int offset)

public final String
toString()

Overrides org.aspectj.apache.bcel.classfile.Attribute.toString.

Returns a string representation of the object.
public String
public String
public String
public String
public String
Inherited from org.aspectj.apache.bcel.classfile.Attribute:
getConstantPoolgetLengthgetNamegetNameIndexgetTagreadAttribute

Field Detail

exportsback to summary
private Module.Export[] exports
moduleFlagsback to summary
private int moduleFlags
moduleInfoback to summary
private byte[] moduleInfo
moduleNameIndexback to summary
private int moduleNameIndex
moduleVersionIndexback to summary
private int moduleVersionIndex
NO_MODULE_NAMESback to summary
private static final String[] NO_MODULE_NAMES
opensback to summary
private Module.Open[] opens
providesback to summary
private Module.Provide[] provides
ptrback to summary
private int ptr
requiresback to summary
private Module.Require[] requires
unpackedback to summary
private boolean unpacked
usesback to summary
private Module.Uses[] uses

Constructor Detail

Moduleback to summary
public Module(Module module)
Moduleback to summary
public Module(int nameIndex, int length, byte[] data, ConstantPool cp)
Moduleback to summary
pack-priv Module(int nameIndex, int length, DataInputStream stream, ConstantPool cp) throws IOException

Method Detail

acceptback to summary
public void accept(ClassVisitor v)

Implements abstract org.aspectj.apache.bcel.classfile.Attribute.accept.

Implements org.aspectj.apache.bcel.classfile.Node.accept.

Returns:void

deep copy of this attribute //

Annotations
@Override
dumpback to summary
public final void dump(DataOutputStream file) throws IOException

Overrides org.aspectj.apache.bcel.classfile.Attribute.dump.

Annotations
@Override
ensureUnpackedback to summary
private void ensureUnpacked()
getBytesback to summary
public byte[] getBytes()
getExportsback to summary
public Module.Export[] getExports()
getModuleFlagsback to summary
public int getModuleFlags()
getModuleNameback to summary
public String getModuleName()
getModuleVersionback to summary
public String getModuleVersion()
Returns:String

the module version or null if no version information specified

getOpensback to summary
public Module.Open[] getOpens()
getProvidesback to summary
public Module.Provide[] getProvides()
getRequiredModuleNamesback to summary
public String[] getRequiredModuleNames()
getRequiresback to summary
public Module.Require[] getRequires()
getUsesback to summary
public Module.Uses[] getUses()
readIntback to summary
private final int readInt()
readUnsignedShortback to summary
private final int readUnsignedShort()
readUnsignedShortback to summary
private final int readUnsignedShort(int offset)
toStringback to summary
public final String toString()

Overrides org.aspectj.apache.bcel.classfile.Attribute.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override
toStringExportsback to summary
public String toStringExports()
toStringOpensback to summary
public String toStringOpens()
toStringProvidesback to summary
public String toStringProvides()
toStringRequiresback to summary
public String toStringRequires()
toStringUsesback to summary
public String toStringUses()
org.aspectj.apache.bcel.classfile back to summary

public Class Module.Export

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final int
private final int
private final int[]

Constructor Summary

AccessConstructor and Description
public
Export(int packageIndex, int flags, int[] toModuleIndices)

Method Summary

Modifier and TypeMethod and Description
public int
public String
public String
public int
public int[]
public String[]
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

flagsback to summary
private final int flags
packageIndexback to summary
private final int packageIndex
toModuleIndicesback to summary
private final int[] toModuleIndices

Constructor Detail

Exportback to summary
public Export(int packageIndex, int flags, int[] toModuleIndices)

Method Detail

getFlagsback to summary
public int getFlags()
getFlagsAsStringback to summary
public String getFlagsAsString()
getPackageback to summary
public String getPackage()
getPackageIndexback to summary
public int getPackageIndex()
getToModuleIndicesback to summary
public int[] getToModuleIndices()
getToModuleNamesback to summary
public String[] getToModuleNames()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

org.aspectj.apache.bcel.classfile back to summary

public Class Module.Open

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final int
private final int
private final int[]

Constructor Summary

AccessConstructor and Description
public
Open(int packageIndex, int flags, int[] toModuleIndices)

Method Summary

Modifier and TypeMethod and Description
public int
public String
public String
public int
public int[]
public String[]
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

flagsback to summary
private final int flags
packageIndexback to summary
private final int packageIndex
toModuleIndicesback to summary
private final int[] toModuleIndices

Constructor Detail

Openback to summary
public Open(int packageIndex, int flags, int[] toModuleIndices)

Method Detail

getFlagsback to summary
public int getFlags()
getFlagsAsStringback to summary
public String getFlagsAsString()
getPackageback to summary
public String getPackage()
getPackageIndexback to summary
public int getPackageIndex()
getToModuleIndicesback to summary
public int[] getToModuleIndices()
getToModuleNamesback to summary
public String[] getToModuleNames()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

org.aspectj.apache.bcel.classfile back to summary

public Class Module.Provide

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final int
private final int[]

Constructor Summary

AccessConstructor and Description
public
Provide(int providedTypeIndex, int[] withTypeIndices)

Method Summary

Modifier and TypeMethod and Description
public String
public int
public int[]
public String[]
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

providedTypeIndexback to summary
private final int providedTypeIndex
withTypeIndicesback to summary
private final int[] withTypeIndices

Constructor Detail

Provideback to summary
public Provide(int providedTypeIndex, int[] withTypeIndices)

Method Detail

getProvidedTypeback to summary
public String getProvidedType()
getProvidedTypeIndexback to summary
public int getProvidedTypeIndex()
getWithTypeIndicesback to summary
public int[] getWithTypeIndices()
getWithTypeStringsback to summary
public String[] getWithTypeStrings()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

org.aspectj.apache.bcel.classfile back to summary

public Class Module.Require

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final int
private final int
private final int

Constructor Summary

AccessConstructor and Description
public
Require(int moduleIndex, int flags, int versionIndex)

Method Summary

Modifier and TypeMethod and Description
public int
public String
public String
public int
public String
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

flagsback to summary
private final int flags
moduleIndexback to summary
private final int moduleIndex
versionIndexback to summary
private final int versionIndex

Constructor Detail

Requireback to summary
public Require(int moduleIndex, int flags, int versionIndex)

Method Detail

getFlagsback to summary
public int getFlags()
getFlagsAsStringback to summary
public String getFlagsAsString()
getModuleNameback to summary
public String getModuleName()
getVersionIndexback to summary
public int getVersionIndex()
getVersionStringback to summary
public String getVersionString()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

org.aspectj.apache.bcel.classfile back to summary

public Class Module.Uses

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final int

Constructor Summary

AccessConstructor and Description
public
Uses(int typeNameIndex)

Method Summary

Modifier and TypeMethod and Description
public String
public int
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

typeNameIndexback to summary
private final int typeNameIndex

Constructor Detail

Usesback to summary
public Uses(int typeNameIndex)

Method Detail

getTypeNameback to summary
public String getTypeName()
getTypeNameIndexback to summary
public int getTypeNameIndex()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.