範例

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 討論區,或洽詢提供程式碼的團隊以取得建議。