Methods Summary |
---|
public abstract java.lang.Object | accept(ICONSTANTVisitor visitor, java.lang.Object ctx)
|
public java.lang.Object | clone()Chains to super.clone() and removes CloneNotSupportedException
from the method signature.
try
{
return super.clone ();
}
catch (CloneNotSupportedException e)
{
throw new InternalError (e.toString ());
}
|
public static com.vladium.jcd.cls.constant.CONSTANT_info | new_CONSTANT_info(com.vladium.jcd.lib.UDataInputStream bytes)Virtual constructor method for all CONSTANT_XXX_info structures.
byte tag = bytes.readByte ();
switch (tag)
{
case CONSTANT_Utf8_info.TAG:
return new CONSTANT_Utf8_info (bytes);
case CONSTANT_Integer_info.TAG:
return new CONSTANT_Integer_info (bytes);
case CONSTANT_Float_info.TAG:
return new CONSTANT_Float_info (bytes);
case CONSTANT_Long_info.TAG:
return new CONSTANT_Long_info (bytes);
case CONSTANT_Double_info.TAG:
return new CONSTANT_Double_info (bytes);
case CONSTANT_Class_info.TAG:
return new CONSTANT_Class_info (bytes);
case CONSTANT_String_info.TAG:
return new CONSTANT_String_info (bytes);
case CONSTANT_Fieldref_info.TAG:
return new CONSTANT_Fieldref_info (bytes);
case CONSTANT_Methodref_info.TAG:
return new CONSTANT_Methodref_info (bytes);
case CONSTANT_InterfaceMethodref_info.TAG:
return new CONSTANT_InterfaceMethodref_info (bytes);
case CONSTANT_NameAndType_info.TAG:
return new CONSTANT_NameAndType_info (bytes);
default: throw new IllegalStateException ("CONSTANT_info: invalid tag value [" + tag + ']");
} // end of switch
|
public abstract byte | tag()Returns the tag byte for this CONSTANT type [this data is
static class data].
|
public static java.lang.String | tagToString(com.vladium.jcd.cls.constant.CONSTANT_info constant)
switch (constant.tag ())
{
case CONSTANT_Utf8_info.TAG:
return "CONSTANT_Utf8";
case CONSTANT_Integer_info.TAG:
return "CONSTANT_Integer";
case CONSTANT_Float_info.TAG:
return "CONSTANT_Float";
case CONSTANT_Long_info.TAG:
return "CONSTANT_Long";
case CONSTANT_Double_info.TAG:
return "CONSTANT_Double";
case CONSTANT_Class_info.TAG:
return "CONSTANT_Class";
case CONSTANT_String_info.TAG:
return "CONSTANT_String";
case CONSTANT_Fieldref_info.TAG:
return "CONSTANT_Fieldref";
case CONSTANT_Methodref_info.TAG:
return "CONSTANT_Methodref";
case CONSTANT_InterfaceMethodref_info.TAG:
return "CONSTANT_InterfaceMethodref";
case CONSTANT_NameAndType_info.TAG:
return "CONSTANT_NameAndType";
default: throw new IllegalStateException ("CONSTANT_info: invalid tag value [" + constant.tag () + ']");
} // end of switch
|
public abstract java.lang.String | toString()
|
public int | width()Returns the number of constant pool index slots occupied by this
CONSTANT type. This implementation defaults to returning '1'.
return 1;
|
public void | writeInClassFormat(com.vladium.jcd.lib.UDataOutputStream out)
out.writeByte (tag ());
|