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

public final Class ModuleProvides

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 provides table of the Module attribute. Each entry describes a service implementation that the parent module provides.
Since
6.4.0
See Also
Module

Field Summary

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

Constructor Summary

AccessConstructor and Description
pack-priv
ModuleProvides(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 ModuleProvides

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

providesIndexback to summary
private final int providesIndex
providesWithCountback to summary
private final int providesWithCount
providesWithIndexback to summary
private final int[] providesWithIndex

Constructor Detail

ModuleProvidesback to summary
pack-priv ModuleProvides(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 ModuleProvides copy()
Returns:ModuleProvides

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