nl.tudelft.simulation.dsol.interpreter.classfile
Class ClassDescriptor

java.lang.Object
  extended by nl.tudelft.simulation.dsol.interpreter.classfile.ClassDescriptor

public class ClassDescriptor
extends Object

A ClassDescriptor
(c) copyright 2002-2005 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser General Public License (LGPL) , no warranty.

Version:
$Revision: 1.1 $ $Date: 2007/01/06 13:25:12 $
Author:
Peter Jacobs

Method Summary
static ClassDescriptor get(Class clazz)
          returns the classDescriptor of this class
 Constant[] getConstantPool()
          returns the constantpool of a classfile
 MethodDescriptor getMethod(AccessibleObject method)
          returns the methodDescriptor of the method.
 MethodDescriptor[] getMethods()
          returns the methods of this class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

public static ClassDescriptor get(Class clazz)
                           throws IOException,
                                  ClassNotFoundException
returns the classDescriptor of this class

Parameters:
clazz - the class the clazz to parse
Returns:
ClassDescriptor the descriptor
Throws:
IOException - on IO exception
ClassNotFoundException - if clazz cannot be found

getMethod

public MethodDescriptor getMethod(AccessibleObject method)
returns the methodDescriptor of the method.

Parameters:
method - the method to resolve.
Returns:
its descriptor.

getConstantPool

public Constant[] getConstantPool()
returns the constantpool of a classfile

Returns:
Constant[] the constantpool

getMethods

public MethodDescriptor[] getMethods()
returns the methods of this class

Returns:
MethodDescriptor[]


Copyright © 2002-2011 Delft University of Technology, the Netherlands. All Rights Reserved.