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
public static class ClassFile.ConstantNameAndTypeInfo extends ClassFile.ConstantPoolInfo
See JVMS7 4.4.6.
-
-
Constructor Summary
Constructors Constructor Description ConstantNameAndTypeInfo(short nameIndex, short descriptorIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetDescriptor(ClassFile classFile)StringgetName(ClassFile classFile)inthashCode()booleanisWide()voidstore(DataOutputStream dos)Stores this CP entry into aDataOutputStream.StringtoString()
-
-
-
Method Detail
-
getDescriptor
public String getDescriptor(ClassFile classFile)
- Returns:
- The (field or method) descriptor related to the name
-
isWide
public boolean isWide()
- Specified by:
isWidein classClassFile.ConstantPoolInfo- Returns:
- Whether this CP entry is "wide" in the sense of JVMS7 4.4.5
-
store
public void store(DataOutputStream dos) throws IOException
Description copied from class:ClassFile.ConstantPoolInfoStores this CP entry into aDataOutputStream.See JVMS7 4.4.1 and following.
- Specified by:
storein classClassFile.ConstantPoolInfo- Throws:
IOException
-
-