Package org.apache.bcel.classfile
Class ModuleExports
- java.lang.Object
-
- org.apache.bcel.classfile.ModuleExports
-
- All Implemented Interfaces:
java.lang.Cloneable
,Node
public final class ModuleExports extends java.lang.Object implements java.lang.Cloneable, Node
This class represents an entry in the exports table of the Module attribute. Each entry describes a package which may open the parent module.- Since:
- 6.4.0
- See Also:
Module
-
-
Field Summary
Fields Modifier and Type Field Description private int
exports_flags
private int
exports_index
private int
exports_to_count
private int[]
exports_to_index
-
Constructor Summary
Constructors Constructor Description ModuleExports(java.io.DataInput file)
Construct object from file stream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(Visitor v)
Called by objects that are traversing the nodes of the tree implicitely defined by the contents of a Java class.ModuleExports
copy()
void
dump(java.io.DataOutputStream file)
Dump table entry to file stream in binary format.java.lang.String
toString()
java.lang.String
toString(ConstantPool constant_pool)
-
-
-
Method Detail
-
accept
public void accept(Visitor v)
Called by objects that are traversing the nodes of the tree implicitely defined by the contents of a Java class. I.e., the hierarchy of methods, fields, attributes, etc. spawns a tree of objects.
-
dump
public void dump(java.io.DataOutputStream file) throws java.io.IOException
Dump table entry to file stream in binary format.- Parameters:
file
- Output file stream- Throws:
java.io.IOException
- if an I/O Exception occurs in writeShort
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- Returns:
- String representation
-
toString
public java.lang.String toString(ConstantPool constant_pool)
- Returns:
- Resolved string representation
-
copy
public ModuleExports copy()
- Returns:
- deep copy of this object
-
-