org.ow2.asmdex.encodedValue
Class EncodedValue

java.lang.Object
  extended by org.ow2.asmdex.encodedValue.EncodedValue
All Implemented Interfaces:
java.lang.Comparable<EncodedValue>
Direct Known Subclasses:
EncodedValueAnnotation, EncodedValueArray, EncodedValueBoolean, EncodedValueByte, EncodedValueCharacter, EncodedValueDouble, EncodedValueEnum, EncodedValueField, EncodedValueFloat, EncodedValueInteger, EncodedValueLong, EncodedValueMethod, EncodedValueNull, EncodedValueShort, EncodedValueString, EncodedValueType

public abstract class EncodedValue
extends java.lang.Object
implements java.lang.Comparable<EncodedValue>

Interface of an Encoded Value.

Author:
Julien Névo

Constructor Summary
EncodedValue()
           
 
Method Summary
 int compareTo(EncodedValue encodedValue)
           
abstract  byte[] encode(ConstantPool constantPool)
          Returns the bytes of the Encoded Value.
abstract  int getType()
          Returns the Type of an Encoded Value (see Opcodes).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncodedValue

public EncodedValue()
Method Detail

getType

public abstract int getType()
Returns the Type of an Encoded Value (see Opcodes).

Returns:
the Type of an Encoded Value.

encode

public abstract byte[] encode(ConstantPool constantPool)
Returns the bytes of the Encoded Value.

Parameters:
constantPool - the Constant Pool.
Returns:
the bytes of the Encoded Value.

compareTo

public int compareTo(EncodedValue encodedValue)
Specified by:
compareTo in interface java.lang.Comparable<EncodedValue>