Top Description Fields Constructors Methods
org.aspectj.apache.bcel.classfile

public final Class ConstantString

extends Constant
Class Inheritance
Imports
java.io.DataInputStream, .DataOutputStream, .IOException, org.aspectj.apache.bcel.Constants

This class is derived from the abstract Constant class and represents a reference to a String object.
Author
M. Dahm
Version
$Id: ConstantString.java,v 1.5 2009/09/16 00:43:49 aclement Exp $
See Also
Constant

Field Summary

Modifier and TypeField and Description
private int
Inherited from org.aspectj.apache.bcel.classfile.Constant:
tag

Constructor Summary

AccessConstructor and Description
pack-priv
public
ConstantString(int stringIndex)

Method Summary

Modifier and TypeMethod and Description
public void
public final void
public String

Returns:

the string, as dereferenced using the internal index into the supplied constant pool
getString
(ConstantPool cpool)

public final int
public Integer

Returns:

the index of the string in the constant pool
getValue
()

Implements abstract org.aspectj.apache.bcel.classfile.Constant.getValue.

public final String
toString()

Overrides org.aspectj.apache.bcel.classfile.Constant.toString.

Returns a string representation of the object.
Inherited from org.aspectj.apache.bcel.classfile.Constant:
clonecopygetTagreadConstant

Field Detail

stringIndexback to summary
private int stringIndex

Constructor Detail

ConstantStringback to summary
pack-priv ConstantString(DataInputStream file) throws IOException
ConstantStringback to summary
public ConstantString(int stringIndex)

Method Detail

acceptback to summary
public void accept(ClassVisitor v)

Implements abstract org.aspectj.apache.bcel.classfile.Constant.accept.

Implements org.aspectj.apache.bcel.classfile.Node.accept.

Annotations
@Override
dumpback to summary
public final void dump(DataOutputStream file) throws IOException

Implements abstract org.aspectj.apache.bcel.classfile.Constant.dump.

Annotations
@Override
getStringback to summary
public String getString(ConstantPool cpool)
Returns:String

the string, as dereferenced using the internal index into the supplied constant pool

getStringIndexback to summary
public final int getStringIndex()
getValueback to summary
public Integer getValue()

Implements abstract org.aspectj.apache.bcel.classfile.Constant.getValue.

Returns:Integer

the index of the string in the constant pool

Annotations
@Override
toStringback to summary
public final String toString()

Overrides org.aspectj.apache.bcel.classfile.Constant.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override