org.apache.derby.iapi.services.classfile
Class CONSTANT_Utf8_info

java.lang.Object
  extended byorg.apache.derby.iapi.services.classfile.ConstantPoolEntry
      extended byorg.apache.derby.iapi.services.classfile.CONSTANT_Utf8_info

final class CONSTANT_Utf8_info
extends ConstantPoolEntry

Utf8- page 100 - Section 4.4.7


Field Summary
private  int asCode
           
private  int asString
           
private  java.lang.String value
           
 
Fields inherited from class org.apache.derby.iapi.services.classfile.ConstantPoolEntry
doubleSlot, index, tag
 
Constructor Summary
(package private) CONSTANT_Utf8_info(java.lang.String value)
           
 
Method Summary
(package private)  int classFileSize()
          We assume here that the String is ASCII, thus this might return a size smaller than actual size.
(package private)  java.lang.Object getKey()
          Return the key used to key this object in a hashtable
(package private)  void put(ClassFormatOutput out)
           
(package private)  void setAlternative(int index)
           
(package private)  int setAsCode()
           
(package private)  int setAsString()
           
 java.lang.String toString()
           
 
Methods inherited from class org.apache.derby.iapi.services.classfile.ConstantPoolEntry
doubleSlot, getI1, getI2, getIndex, getTag, setIndex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

value

private final java.lang.String value

asString

private int asString

asCode

private int asCode
Constructor Detail

CONSTANT_Utf8_info

CONSTANT_Utf8_info(java.lang.String value)
Method Detail

getKey

java.lang.Object getKey()
Description copied from class: ConstantPoolEntry
Return the key used to key this object in a hashtable

Overrides:
getKey in class ConstantPoolEntry

classFileSize

int classFileSize()
We assume here that the String is ASCII, thus this might return a size smaller than actual size.

Specified by:
classFileSize in class ConstantPoolEntry

toString

public java.lang.String toString()

setAsCode

int setAsCode()

setAsString

int setAsString()

setAlternative

void setAlternative(int index)

put

void put(ClassFormatOutput out)
   throws java.io.IOException
Overrides:
put in class ConstantPoolEntry
Throws:
java.io.IOException


Apache Derby V10.0 Engine Documentation - Copyright © 1997,2004 The Apache Software Foundation or its licensors, as applicable.