public class MethodConstant extends AbstractConstant
data, index, typeTYPE_CLASS, TYPE_DOUBLE, TYPE_FIELD, TYPE_FLOAT, TYPE_INT, TYPE_INTERFACE_METHOD, TYPE_INVOKE_DYNAMIC, TYPE_LONG, TYPE_METHOD, TYPE_METHOD_HANDLE, TYPE_METHOD_TYPE, TYPE_NAME_AND_TYPE, TYPE_STRING, TYPE_UTF| 构造器和说明 |
|---|
MethodConstant() |
MethodConstant(byte[] data,
int classIndex,
int nameAndTypeIndex) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getClassIndex() |
int |
getNameAndTypeIndex() |
void |
setClassIndex(int classIndex) |
void |
setNameAndTypeIndex(int nameAndTypeIndex) |
MethodConstant |
toMethodConstant()
转换为 MethodConstant
|
getData, getIndex, getType, setData, setIndex, setType, toClassConstant, toFieldConstant, toInvokeDynamicConstant, toMethodHandleConstant, toMethodTypeConstant, toNameAndTypeConstant, toUTFConstantpublic MethodConstant()
public MethodConstant(byte[] data,
int classIndex,
int nameAndTypeIndex)
public int getClassIndex()
public void setClassIndex(int classIndex)
public int getNameAndTypeIndex()
public void setNameAndTypeIndex(int nameAndTypeIndex)
public MethodConstant toMethodConstant()
IConstanttoMethodConstant 在接口中 IConstanttoMethodConstant 在类中 AbstractConstantCopyright © 2020. All Rights Reserved.