com.jeffpalm.basic.bytecode.base
Class CONSTANT_Utf8_info

java.lang.Object
  extended by com.jeffpalm.basic.bytecode.base.Info
      extended by com.jeffpalm.basic.bytecode.base.CONSTANT_info
          extended by com.jeffpalm.basic.bytecode.base.CONSTANT_Utf8_info
All Implemented Interfaces:
ConstantFlags, ICodeGenerator, ICONSTANT_info, ICONSTANT_Utf8_info, IInfo

public final class CONSTANT_Utf8_info
extends CONSTANT_info
implements ICONSTANT_Utf8_info


Field Summary
 u1[] bytes
           
 u2 length
           
 
Fields inherited from class com.jeffpalm.basic.bytecode.base.CONSTANT_info
tag
 
Fields inherited from interface com.jeffpalm.basic.bytecode.base.ConstantFlags
CONSTANT_Class, CONSTANT_Double, CONSTANT_Fieldref, CONSTANT_Float, CONSTANT_Integer, CONSTANT_InterfaceMethodref, CONSTANT_Long, CONSTANT_Methodref, CONSTANT_NameAndType, CONSTANT_String, CONSTANT_Utf8
 
Constructor Summary
CONSTANT_Utf8_info(u2 length, u1[] bytes)
           
 
Method Summary
 java.lang.String asString()
           
 Iu1[] bytes()
           
 boolean equals(java.lang.Object o)
           
protected  void genRest(ICodeStream code)
           
protected  java.lang.String getString()
           
 byte getTag()
           
 Iu2 length()
           
static CONSTANT_Utf8_info newInstance(java.lang.String str)
           
 java.lang.String stringRep()
           
 
Methods inherited from class com.jeffpalm.basic.bytecode.base.CONSTANT_info
gen, getName, tag, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.jeffpalm.basic.bytecode.ICONSTANT_info
tag
 
Methods inherited from interface com.jeffpalm.basic.bytecode.ICodeGenerator
gen
 

Field Detail

length

public final u2 length

bytes

public final u1[] bytes
Constructor Detail

CONSTANT_Utf8_info

public CONSTANT_Utf8_info(u2 length,
                          u1[] bytes)
Method Detail

newInstance

public static CONSTANT_Utf8_info newInstance(java.lang.String str)

getTag

public byte getTag()
Specified by:
getTag in class CONSTANT_info

getString

protected java.lang.String getString()
Specified by:
getString in class CONSTANT_info

asString

public java.lang.String asString()
Specified by:
asString in interface ICONSTANT_Utf8_info

stringRep

public java.lang.String stringRep()

length

public Iu2 length()
Specified by:
length in interface ICONSTANT_Utf8_info

bytes

public Iu1[] bytes()
Specified by:
bytes in interface ICONSTANT_Utf8_info

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

genRest

protected void genRest(ICodeStream code)
                throws java.io.IOException
Specified by:
genRest in class CONSTANT_info
Throws:
java.io.IOException