org.ow2.asmdex.encodedValue
Class EncodedValueType

java.lang.Object
  extended by org.ow2.asmdex.encodedValue.EncodedValue
      extended by org.ow2.asmdex.encodedValue.EncodedValueType
All Implemented Interfaces:
java.lang.Comparable<EncodedValue>

public class EncodedValueType
extends EncodedValue

Class representing an Encoded Value containing a Type.

Author:
Julien Névo

Constructor Summary
EncodedValueType(java.lang.Object value)
          Constructs the Encoded Value from an Object containing a value.
EncodedValueType(java.lang.String value)
          Constructs the Encoded Value from its value.
 
Method Summary
 byte[] encode(ConstantPool constantPool)
          Returns the bytes of the Encoded Value.
 boolean equals(java.lang.Object o)
           
 int getType()
          Returns the Type of an Encoded Value (see Opcodes).
 int hashCode()
           
 
Methods inherited from class org.ow2.asmdex.encodedValue.EncodedValue
compareTo
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncodedValueType

public EncodedValueType(java.lang.String value)
Constructs the Encoded Value from its value.

Parameters:
value - the value.

EncodedValueType

public EncodedValueType(java.lang.Object value)
Constructs the Encoded Value from an Object containing a value.

Parameters:
value - the Object containing a value.
Method Detail

encode

public byte[] encode(ConstantPool constantPool)
Description copied from class: EncodedValue
Returns the bytes of the Encoded Value.

Specified by:
encode in class EncodedValue
Parameters:
constantPool - the Constant Pool.
Returns:
the bytes of the Encoded Value.

getType

public int getType()
Description copied from class: EncodedValue
Returns the Type of an Encoded Value (see Opcodes).

Specified by:
getType in class EncodedValue
Returns:
the Type of an Encoded Value.

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object