public abstract class AbstractConstant extends Object implements IConstant
| 限定符和类型 | 字段和说明 |
|---|---|
protected byte[] |
data |
protected int |
index |
protected int |
type |
TYPE_CLASS, TYPE_DOUBLE, TYPE_FIELD, TYPE_FLOAT, TYPE_INT, TYPE_INTERFACE_METHOD, TYPE_LONG, TYPE_METHOD, TYPE_NAME_AND_TYPE, TYPE_STRING, TYPE_UTF| 构造器和说明 |
|---|
AbstractConstant() |
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
getData() |
int |
getIndex() |
int |
getType() |
void |
setData(byte[] data) |
void |
setIndex(int index) |
void |
setType(int type) |
ClassConstant |
toClassConstant() |
FieldConstant |
toFieldConstant() |
MethodConstant |
toMethodConstant() |
NameAndTypeConstant |
toNameAndTypeConstant() |
UTFConstant |
toUTFConstant() |
public ClassConstant toClassConstant()
toClassConstant 在接口中 IConstantpublic UTFConstant toUTFConstant()
toUTFConstant 在接口中 IConstantpublic FieldConstant toFieldConstant()
toFieldConstant 在接口中 IConstantpublic MethodConstant toMethodConstant()
toMethodConstant 在接口中 IConstantpublic NameAndTypeConstant toNameAndTypeConstant()
toNameAndTypeConstant 在接口中 IConstantCopyright © 2018. All Rights Reserved.