Package org.codehaus.janino.util
Class ClassFile.ConstantStringInfo
- java.lang.Object
-
- org.codehaus.janino.util.ClassFile.ConstantPoolInfo
-
- org.codehaus.janino.util.ClassFile.ConstantValuePoolInfo
-
- org.codehaus.janino.util.ClassFile.ConstantStringInfo
-
- Enclosing class:
- ClassFile
static class ClassFile.ConstantStringInfo extends ClassFile.ConstantValuePoolInfo
See JVMS7 4.4.3.
-
-
Field Summary
Fields Modifier and Type Field Description private short
stringIndex
-
Constructor Summary
Constructors Constructor Description ConstantStringInfo(short stringIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.Object
getValue(ClassFile classFile)
int
hashCode()
boolean
isWide()
void
store(java.io.DataOutputStream dos)
Stores this CP entry into aDataOutputStream
.java.lang.String
toString()
-
-
-
Method Detail
-
getValue
public java.lang.Object getValue(ClassFile classFile)
- Specified by:
getValue
in classClassFile.ConstantValuePoolInfo
- Returns:
- The value that this constant pool table entry represents; the actual type is
Double
,Float
,Integer
,Long
orString
-
isWide
public boolean isWide()
- Specified by:
isWide
in classClassFile.ConstantPoolInfo
- Returns:
- Whether this CP entry is "wide" in the sense of JVMS7 4.4.5
-
store
public void store(java.io.DataOutputStream dos) throws java.io.IOException
Description copied from class:ClassFile.ConstantPoolInfo
Stores this CP entry into aDataOutputStream
.See JVMS7 4.4.1 and following.
- Specified by:
store
in classClassFile.ConstantPoolInfo
- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(@Nullable java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-