public class ConstantClass extends Constant
constantPool
Constructor and Description |
---|
ConstantClass(Constant[] constantPool,
DataInput dataInput)
constructs a new ConstantClass
|
ConstantClass(Constant[] constantPool,
int nameIndex)
constructs a new ClassConstant
|
Modifier and Type | Method and Description |
---|---|
int |
getNameIndex()
returns the name index
|
int |
getTag()
returns the tag of the constant
|
nl.tudelft.simulation.language.reflection.FieldSignature |
getValue()
returns the className of this constant
|
String |
toString() |
readConstant, toString
public ConstantClass(Constant[] constantPool, DataInput dataInput) throws IOException
dataInput
- the inputstream to read fromconstantPool
- the constantPool it is part ofIOException
- on failurepublic ConstantClass(Constant[] constantPool, int nameIndex)
nameIndex
- the nameIndexconstantPool
- the constantPool it is part ofpublic int getTag()
Constant
getTag
in class Constant
Constant.getTag()
public int getNameIndex()
public nl.tudelft.simulation.language.reflection.FieldSignature getValue()
public String toString()
toString
in class Object
Object.toString()
Copyright © 2002-2012 Delft University of Technology, the Netherlands. All Rights Reserved.