示例

public boolean isInterface( SourceType o ) {
if ( o instanceof SourceType ){
try {
ISourceType type = (ISourceType)o.getElementInfo();
if ( type.isInterface() ){
return true;
}
} catch (Exception e){
e.printStackTrace();
}
}
return false;
}

解决方案
要找出使用的备用方法,请查阅“帮助”、Eclipse 讨论板或联系提供代码的小组来获取建议。