Package org.codehaus.janino.util
Class ClassFile.ConstantNameAndTypeInfo
java.lang.Object
org.codehaus.janino.util.ClassFile.ConstantPoolInfo
org.codehaus.janino.util.ClassFile.ConstantNameAndTypeInfo
- Enclosing class:
- ClassFile
See JVMS7 4.4.6.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final short
private final short
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getDescriptor
(ClassFile classFile) int
hashCode()
boolean
isWide()
void
store
(DataOutputStream dos) Stores this CP entry into aDataOutputStream
.toString()
-
Field Details
-
nameIndex
private final short nameIndex -
descriptorIndex
private final short descriptorIndex
-
-
Constructor Details
-
ConstantNameAndTypeInfo
public ConstantNameAndTypeInfo(short nameIndex, short descriptorIndex)
-
-
Method Details
-
getName
- Returns:
- The name of the field or method
-
getDescriptor
- Returns:
- The (field or method) descriptor related to the name
-
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
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:
IOException
-
toString
-
equals
-
hashCode
public int hashCode()
-