org.ow2.asmdex.encodedValue
Class EncodedValueInteger

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

public class EncodedValueInteger
extends EncodedValue

Class representing an Encoded Value containing an integer.

Author:
Julien Névo

Constructor Summary
EncodedValueInteger(int value)
          Constructs the Encoded Value from its value.
EncodedValueInteger(java.lang.Object value)
          Constructs the Encoded Value from an Object containing a 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

EncodedValueInteger

public EncodedValueInteger(int value)
Constructs the Encoded Value from its value.

Parameters:
value - the value.

EncodedValueInteger

public EncodedValueInteger(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