当前位置: 首页>>代码示例>>Java>>正文


Java CompilerOptions.optionKeyFromIrritant方法代码示例

本文整理汇总了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);
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:5,代码来源:Main.java

示例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));
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:19,代码来源:JavaCore.java


注:本文中的org.eclipse.jdt.internal.compiler.impl.CompilerOptions.optionKeyFromIrritant方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。