Purple Code

com.purpletech.lang
Class Constant

java.lang.Object
  |
  +--com.purpletech.lang.Constant
Direct Known Subclasses:
Constant.Class, Constant.Double, Constant.Float, Constant.Integer, Constant.Long, Constant.NameAndType, Constant.Ref, Constant.String, Constant.Utf8

public class Constant
extends java.lang.Object


Nested Class Summary
static class Constant.Class
           
static class Constant.Double
           
static class Constant.Float
           
static class Constant.Integer
           
static class Constant.Long
           
static class Constant.NameAndType
           
static class Constant.Ref
           
static class Constant.String
           
static class Constant.Utf8
           
 
Field Summary
static byte CLASS
           
static java.lang.String[] CONSTANTS
           
static byte DOUBLE
           
static byte FIELDREF
           
static byte FLOAT
           
static byte INTEGER
           
static byte INTERFACEMETHODREF
           
static byte LONG
           
static byte METHODREF
           
static byte NAMEANDTYPE
           
static byte STRING
           
static byte UTF8
           
 
Constructor Summary
Constant()
           
Constant(byte tag)
           
 
Method Summary
static java.lang.String convertUTF(byte[] bytes)
           
static Constant parse(byte tag, java.io.DataInputStream in)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UTF8

public static final byte UTF8
See Also:
Constant Field Values

INTEGER

public static final byte INTEGER
See Also:
Constant Field Values

FLOAT

public static final byte FLOAT
See Also:
Constant Field Values

LONG

public static final byte LONG
See Also:
Constant Field Values

DOUBLE

public static final byte DOUBLE
See Also:
Constant Field Values

STRING

public static final byte STRING
See Also:
Constant Field Values

CLASS

public static final byte CLASS
See Also:
Constant Field Values

FIELDREF

public static final byte FIELDREF
See Also:
Constant Field Values

METHODREF

public static final byte METHODREF
See Also:
Constant Field Values

INTERFACEMETHODREF

public static final byte INTERFACEMETHODREF
See Also:
Constant Field Values

NAMEANDTYPE

public static final byte NAMEANDTYPE
See Also:
Constant Field Values

CONSTANTS

public static java.lang.String[] CONSTANTS
Constructor Detail

Constant

public Constant(byte tag)

Constant

public Constant()
Method Detail

convertUTF

public static java.lang.String convertUTF(byte[] bytes)
                                   throws java.io.IOException
java.io.IOException

parse

public static Constant parse(byte tag,
                             java.io.DataInputStream in)
                      throws java.io.IOException
java.io.IOException

Documentation generated March 5 2003