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.
-
cp_info()
- Creates an uninitialized cp_info object.
-
cp_info(DataInput)
- Creates a cp_info object, initialized from the
specified input stream.
-
getConstantPoolEntrySize()
- Get the number of constant pool entries this cp_info
object occupies.
-
getInfo()
- Get the info object represented by this class pool information
entry.
-
getTag()
- Get the tag of this class pool information entry.
-
read(DataInput)
- Initialize this cp_info object from the specified input
stream.
-
setInfo(Object)
- Set the info object represented by this class pool information
entry.
-
setTag(byte)
- Set the tag of this class pool information entry.
-
write(DataOutput)
- Write this objects initialization to the specified
output stream.
cp_info
public cp_info()
- Creates an uninitialized cp_info object.
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.
getTag
public byte getTag()
- Get the tag of this class pool information entry.
- Returns:
- The tag value of this object.
setTag
public void setTag(byte tag)
- Set the tag of this class pool information entry.
- Parameters:
- tag - The new tag value of this object.
getInfo
public Object getInfo()
- Get the info object represented by this class pool information
entry.
- Returns:
- The information contained within this cp_info object.
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.
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.
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.
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