本文整理汇总了Java中org.eclipse.jdt.internal.compiler.impl.CompilerOptions.optionKeyFromIrritant方法的典型用法代码示例。如果您正苦于以下问题:Java CompilerOptions.optionKeyFromIrritant方法的具体用法?Java CompilerOptions.optionKeyFromIrritant怎么用?Java CompilerOptions.optionKeyFromIrritant使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.jdt.internal.compiler.impl.CompilerOptions
的用法示例。
在下文中一共展示了CompilerOptions.optionKeyFromIrritant方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getProblemOptionKey
import org.eclipse.jdt.internal.compiler.impl.CompilerOptions; //导入方法依赖的package包/类
private String getProblemOptionKey(int problemID) {
int irritant = ProblemReporter.getIrritant(problemID);
return CompilerOptions.optionKeyFromIrritant(irritant);
}
示例2: getOptionForConfigurableSeverity
import org.eclipse.jdt.internal.compiler.impl.CompilerOptions; //导入方法依赖的package包/类
/**
* Returns the option that can be used to configure the severity of the
* compiler problem identified by <code>problemID</code> if any,
* <code>null</code> otherwise. Non-null return values are taken from the
* constants defined by this class whose names start with
* <code>COMPILER_PB</code> and for which the possible values of the
* option are defined by <code>{ "error", "warning", "ignore" }</code>. A
* null return value means that the provided problem ID is unknown or that
* it matches a problem whose severity cannot be configured.
* @param problemID one of the problem IDs defined by {@link IProblem}
* @return the option that can be used to configure the severity of the
* compiler problem identified by <code>problemID</code> if any,
* <code>null</code> otherwise
* @since 3.4
*/
public static String getOptionForConfigurableSeverity(int problemID) {
return CompilerOptions.optionKeyFromIrritant(ProblemReporter.getIrritant(problemID));
}