org.ow2.asmdex.encodedValue
Class EncodedValueArray

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

public class EncodedValueArray
extends EncodedValue

Class representing an Encoded Array.

Author:
Julien Névo

Constructor Summary
EncodedValueArray()
           
 
Method Summary
 void addEncodedValue(EncodedValue encodedValue)
          Adds an Encoded Value to the list.
 byte[] encode(ConstantPool constantPool)
          Returns the bytes of the Encoded Value.
 boolean equals(java.lang.Object o)
           
 java.util.ArrayList<EncodedValue> getEncodedValues()
          Returns the Encoded Values.
 int getNbEncodedValues()
          Returns the number of Encoded Values.
 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

EncodedValueArray

public EncodedValueArray()
Method Detail

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.

getEncodedValues

public java.util.ArrayList<EncodedValue> getEncodedValues()
Returns the Encoded Values.

Returns:
the Encoded Values.

getNbEncodedValues

public int getNbEncodedValues()
Returns the number of Encoded Values.

Returns:
the number of Encoded Values.

addEncodedValue

public void addEncodedValue(EncodedValue encodedValue)
Adds an Encoded Value to the list.

Parameters:
encodedValue - the Encoded Value to add.

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.

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