org.ow2.asmdex.encodedValue
Class EncodedValueMethod

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

public class EncodedValueMethod
extends EncodedValue

Class representing an Encoded Value containing a Method.

Author:
Julien Névo

Constructor Summary
EncodedValueMethod(Method value)
          Constructs the Encoded Value from its value.
EncodedValueMethod(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

EncodedValueMethod

public EncodedValueMethod(Method value)
Constructs the Encoded Value from its value.

Parameters:
value - the value.

EncodedValueMethod

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