本文整理了Java中serp.bytecode.BCClass.isInterface()
方法的一些代码示例,展示了BCClass.isInterface()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。BCClass.isInterface()
方法的具体详情如下:
包路径:serp.bytecode.BCClass
类名称:BCClass
方法名:isInterface
[英]Manipulate the class access flags.
[中]操纵类访问标志。
代码示例来源:origin: org.apache.openejb.patch/openjpa
try {
if (_pc.isInterface())
return ENHANCE_INTERFACE;
代码示例来源:origin: org.apache.openjpa/openjpa-all
try {
if (_pc.isInterface())
return ENHANCE_INTERFACE;
代码示例来源:origin: org.apache.openjpa/openjpa-kernel
try {
if (_pc.isInterface())
return ENHANCE_INTERFACE;
代码示例来源:origin: org.apache.openejb.patch/openjpa-kernel
try {
if (_pc.isInterface())
return ENHANCE_INTERFACE;
代码示例来源:origin: org.apache.openjpa/com.springsource.org.apache.openjpa
if (_pc.isInterface())
return ENHANCE_INTERFACE;
代码示例来源:origin: net.sourceforge.serp/serp
/**
* Resets the {@link ComplexEntry} of the owning class corresponding to
* this member. Changes in the member will therefore propogate to all
* code in the class.
*/
private void setEntry(String origName, String origDesc) {
// find the entry matching this member, if any
String owner = getProject().getNameCache().getInternalForm
(_owner.getName(), false);
ConstantPool pool = getPool();
int index;
if (this instanceof BCField)
index = pool.findFieldEntry(origName, origDesc, owner, false);
else if (!_owner.isInterface())
index = pool.findMethodEntry(origName, origDesc, owner, false);
else
index = pool.findInterfaceMethodEntry(origName, origDesc, owner,
false);
// change the entry to match the new info; this is dones so
// that refs to the member in code will still be valid after the
// change, without changing any other constants that happened to match
// the old name and/or descriptor
if (index != 0) {
ComplexEntry complex = (ComplexEntry) pool.getEntry(index);
int ntIndex = pool.findNameAndTypeEntry(getName(), getDescriptor(),
true);
complex.setNameAndTypeIndex(ntIndex);
}
}
代码示例来源:origin: org.apache.openjpa/openjpa-all
/**
* Resets the {@link ComplexEntry} of the owning class corresponding to
* this member. Changes in the member will therefore propogate to all
* code in the class.
*/
private void setEntry(String origName, String origDesc) {
// find the entry matching this member, if any
String owner = getProject().getNameCache().getInternalForm
(_owner.getName(), false);
ConstantPool pool = getPool();
int index;
if (this instanceof BCField)
index = pool.findFieldEntry(origName, origDesc, owner, false);
else if (!_owner.isInterface())
index = pool.findMethodEntry(origName, origDesc, owner, false);
else
index = pool.findInterfaceMethodEntry(origName, origDesc, owner,
false);
// change the entry to match the new info; this is dones so
// that refs to the member in code will still be valid after the
// change, without changing any other constants that happened to match
// the old name and/or descriptor
if (index != 0) {
ComplexEntry complex = (ComplexEntry) pool.getEntry(index);
int ntIndex = pool.findNameAndTypeEntry(getName(), getDescriptor(),
true);
complex.setNameAndTypeIndex(ntIndex);
}
}
内容来源于网络,如有侵权,请联系作者删除!