Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.bcel.classfile
Class StackMapType  view StackMapType download StackMapType.java

java.lang.Object
  extended byorg.apache.bcel.classfile.StackMapType
All Implemented Interfaces:
java.lang.Cloneable

public final class StackMapType
extends java.lang.Object
implements java.lang.Cloneable

This class represents the type of a local variable or item on stack used in the StackMap entries.

Version:
$Id: StackMapType.java 386056 2006-03-15 11:31:56Z tcurdt $

Field Summary
private  ConstantPool constant_pool
           
private  int index
           
private  byte type
           
 
Constructor Summary
  StackMapType(byte type, int index, ConstantPool constant_pool)
           
(package private) StackMapType(java.io.DataInputStream file, ConstantPool constant_pool)
          Construct object from file stream.
 
Method Summary
 StackMapType copy()
           
 void dump(java.io.DataOutputStream file)
          Dump type entries to file.
 ConstantPool getConstantPool()
           
 int getIndex()
           
 byte getType()
           
 boolean hasIndex()
           
private  java.lang.String printIndex()
           
 void setConstantPool(ConstantPool constant_pool)
           
 void setIndex(int t)
           
 void setType(byte t)
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

type

private byte type

index

private int index

constant_pool

private ConstantPool constant_pool
Constructor Detail

StackMapType

StackMapType(java.io.DataInputStream file,
             ConstantPool constant_pool)
       throws java.io.IOException
Construct object from file stream.


StackMapType

public StackMapType(byte type,
                    int index,
                    ConstantPool constant_pool)
Method Detail

setType

public void setType(byte t)

getType

public byte getType()

setIndex

public void setIndex(int t)

getIndex

public int getIndex()

dump

public final void dump(java.io.DataOutputStream file)
                throws java.io.IOException
Dump type entries to file.


hasIndex

public final boolean hasIndex()

printIndex

private java.lang.String printIndex()

toString

public final java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).


copy

public StackMapType copy()

getConstantPool

public final ConstantPool getConstantPool()

setConstantPool

public final void setConstantPool(ConstantPool constant_pool)