All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.wizards.builder.compiler.cp_info

java.lang.Object
   |
   +----com.sun.wizards.builder.compiler.ClassConstants
           |
           +----com.sun.wizards.builder.compiler.cp_info

public class cp_info
extends ClassConstants
cp_info is a class that represents a constant pool entry from a java class file. This class also has the ability to read its entry from a class file and write its entry to a class file.

The information used to write this class was obtained from the book "The Java Virtual Machine Specification", pages 84 - 118.

Note: The use of all lower-case variable names with underscores is done to show an exact translation from the Virtual Machine Specification.


Constructor Index

 o cp_info()
Creates an uninitialized cp_info object.
 o cp_info(DataInput)
Creates a cp_info object, initialized from the specified input stream.

Method Index

 o getConstantPoolEntrySize()
Get the number of constant pool entries this cp_info object occupies.
 o getInfo()
Get the info object represented by this class pool information entry.
 o getTag()
Get the tag of this class pool information entry.
 o read(DataInput)
Initialize this cp_info object from the specified input stream.
 o setInfo(Object)
Set the info object represented by this class pool information entry.
 o setTag(byte)
Set the tag of this class pool information entry.
 o write(DataOutput)
Write this objects initialization to the specified output stream.

Constructors

 o cp_info
 public cp_info()
Creates an uninitialized cp_info object.

 o cp_info
 public cp_info(DataInput in)
Creates a cp_info object, initialized from the specified input stream.

Parameters:
in - The input stream from which this cp_info object will be initialized.

Methods

 o getTag
 public byte getTag()
Get the tag of this class pool information entry.

Returns:
The tag value of this object.
 o setTag
 public void setTag(byte tag)
Set the tag of this class pool information entry.

Parameters:
tag - The new tag value of this object.
 o getInfo
 public Object getInfo()
Get the info object represented by this class pool information entry.

Returns:
The information contained within this cp_info object.
 o setInfo
 public void setInfo(Object info)
Set the info object represented by this class pool information entry.

Parameters:
info - The new information for this cp_info object to contain.
 o getConstantPoolEntrySize
 public int getConstantPoolEntrySize()
Get the number of constant pool entries this cp_info object occupies. The number of entries is 2 for entries representing a Double or Long value. All other entries occupy one constant pool entry.

Returns:
The number of constant pool entries this cp_info object occupies.
 o read
 public void read(DataInput in)
Initialize this cp_info object from the specified input stream.

Parameters:
in - The input stream containing initialization data for this object.
 o write
 public void write(DataOutput out)
Write this objects initialization to the specified output stream.

Parameters:
out - The output stream to which this object should write its initialization data.

All Packages  Class Hierarchy  This Package  Previous  Next  Index