public class ConstantNameAndTypeInfo extends ConstantInfo
TAG_CLASS, TAG_DOUBLE, TAG_FIELD, TAG_FLOAT, TAG_INTEGER, TAG_INTERFACE_METHOD, TAG_LONG, TAG_METHOD, TAG_NAME_AND_TYPE, TAG_STRING, TAG_UTF8
Constructor and Description |
---|
ConstantNameAndTypeInfo(ConstantPool cp,
String name,
Descriptor type) |
ConstantNameAndTypeInfo(ConstantUTFInfo nameConstant,
ConstantUTFInfo descConstant) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getName() |
Descriptor |
getType() |
int |
hashCode() |
String |
toString() |
void |
writeTo(DataOutput dout) |
getEntryCount, getIndex, hasPriority
public ConstantNameAndTypeInfo(ConstantUTFInfo nameConstant, ConstantUTFInfo descConstant)
public ConstantNameAndTypeInfo(ConstantPool cp, String name, Descriptor type)
public String getName()
public Descriptor getType()
public void writeTo(DataOutput dout) throws IOException
writeTo
in class ConstantInfo
IOException
Copyright © 2004-2015 Cojen. All Rights Reserved.