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

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

public class ConstantInterfaceMethodref
extends Constant

A ConstantInterfaceMethodref
(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

Field Summary
 
Fields inherited from class nl.tudelft.simulation.dsol.interpreter.classfile.Constant
constantPool
 
Constructor Summary
ConstantInterfaceMethodref(Constant[] constantPool, DataInput inputStream)
          constructs a new ConstantInterfaceMethodref
ConstantInterfaceMethodref(Constant[] constantPool, int classIndex, int nameAndTypeIndex)
          constructs a new ConstantInterfaceMethodref
 
Method Summary
 int getClassIndex()
          returns the classindex
 ConstantClass getConstantClass()
          returns the constantClass of this constant
 ConstantNameAndType getConstantNameAndType()
          returns the nameAndType constant
 int getNameAndTypeIndex()
          returns the nameAndTypeIndex
 int getTag()
          returns the tag of the constant
 String toString()
           
 
Methods inherited from class nl.tudelft.simulation.dsol.interpreter.classfile.Constant
readConstant, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConstantInterfaceMethodref

public ConstantInterfaceMethodref(Constant[] constantPool,
                                  DataInput inputStream)
                           throws IOException
constructs a new ConstantInterfaceMethodref

Parameters:
constantPool - the constantPool it is part of
inputStream - the inputstream to read from
Throws:
IOException - on failure

ConstantInterfaceMethodref

public ConstantInterfaceMethodref(Constant[] constantPool,
                                  int classIndex,
                                  int nameAndTypeIndex)
constructs a new ConstantInterfaceMethodref

Parameters:
constantPool - the constantPool it is part of
classIndex - the classIndex
nameAndTypeIndex - the NameAndTypeIndex
Method Detail

getTag

public int getTag()
Description copied from class: Constant
returns the tag of the constant

Specified by:
getTag in class Constant
Returns:
int the constant tag
See Also:
Constant.getTag()

getClassIndex

public int getClassIndex()
returns the classindex

Returns:
classIndex

getNameAndTypeIndex

public int getNameAndTypeIndex()
returns the nameAndTypeIndex

Returns:
nameAndTypeIndex

getConstantClass

public ConstantClass getConstantClass()
returns the constantClass of this constant

Returns:
ConstantClass the constantClass

getConstantNameAndType

public ConstantNameAndType getConstantNameAndType()
returns the nameAndType constant

Returns:
ConstantNameAndType

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


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