org.apache.tools.ant.taskdefs.optional.sitraka.bytecode
Class MethodInfoList

java.lang.Object
  |
  +--org.apache.tools.ant.taskdefs.optional.sitraka.bytecode.MethodInfoList

public class MethodInfoList
extends java.lang.Object

A list of method_info structures.

Author:
Stephane Bailliez

Field Summary
protected  ConstantPool constantPool
          pool containing all the information
protected  MethodInfo[] methods
          methods in this list
 
Constructor Summary
MethodInfoList(ConstantPool pool)
           
 
Method Summary
 MethodInfo getMethod(int i)
          get a method in the list.
 int length()
          the size of the list
 void read(java.io.DataInputStream dis)
          read the bytecode from the stream
 java.lang.String toString()
          return the set of methods in this list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

constantPool

protected ConstantPool constantPool
pool containing all the information

methods

protected MethodInfo[] methods
methods in this list
Constructor Detail

MethodInfoList

public MethodInfoList(ConstantPool pool)
Method Detail

read

public void read(java.io.DataInputStream dis)
          throws java.io.IOException
read the bytecode from the stream

length

public int length()
the size of the list

getMethod

public MethodInfo getMethod(int i)
get a method in the list.
Parameters:
i - the index of the method to retrieve
Returns:
the method matching the index.

toString

public java.lang.String toString()
return the set of methods in this list. Mostly as a debugging purpose.
Overrides:
toString in class java.lang.Object


Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.