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

public final Class ModuleOpens

extends Object
implements Cloneable, Node
Class Inheritance
All Implemented Interfaces
org.apache.bcel.classfile.Node, java.lang.Cloneable
Imports
java.io.DataInput, .DataOutputStream, .IOException, org.apache.bcel.Const

This class represents an entry in the opens table of the Module attribute. Each entry describes a package which the parent module opens.
Since
6.4.0
See Also
Module

Field Summary

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

Constructor Summary

AccessConstructor and Description
pack-priv
ModuleOpens(final DataInput
Input stream
file
)

Constructs object from file stream.

Method Summary

Modifier and TypeMethod and Description
public void
accept(final Visitor
Visitor object
v
)

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

Called by objects that are traversing the nodes of the tree implicitly defined by the contents of a Java class.
public ModuleOpens

Returns:

deep copy of this object
copy
()

public void
dump(final DataOutputStream
Output file stream
file
)

Dump table entry to file stream in binary format.

public String

Returns:

String representation
toString
()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
public String

Returns:

Resolved string representation
toString
(final ConstantPool constantPool)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

opensFlagsback to summary
private final int opensFlags
opensIndexback to summary
private final int opensIndex
opensToCountback to summary
private final int opensToCount
opensToIndexback to summary
private final int[] opensToIndex

Constructor Detail

ModuleOpensback to summary
pack-priv ModuleOpens(final DataInput file) throws IOException

Constructs object from file stream.

Parameters
file:DataInput

Input stream

Exceptions
IOException:
if an I/O Exception occurs in readUnsignedShort

Method Detail

acceptback to summary
public void accept(final Visitor v)

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

Called by objects that are traversing the nodes of the tree implicitly defined by the contents of a Java class. I.e., the hierarchy of methods, fields, attributes, etc. spawns a tree of objects.

Parameters
v:Visitor

Visitor object

Annotations
@Override
copyback to summary
public ModuleOpens copy()
Returns:ModuleOpens

deep copy of this object

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

Dump table entry to file stream in binary format.

Parameters
file:DataOutputStream

Output file stream

Exceptions
IOException:
if an I/O Exception occurs in writeShort
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

String representation

Annotations
@Override
toStringback to summary
public String toString(final ConstantPool constantPool)
Returns:String

Resolved string representation