本文整理汇总了Java中com.sun.tools.javac.api.DiagnosticFormatter.Configuration.DiagnosticPart类的典型用法代码示例。如果您正苦于以下问题:Java DiagnosticPart类的具体用法?Java DiagnosticPart怎么用?Java DiagnosticPart使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
DiagnosticPart类属于com.sun.tools.javac.api.DiagnosticFormatter.Configuration包,在下文中一共展示了DiagnosticPart类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: SimpleConfiguration
import com.sun.tools.javac.api.DiagnosticFormatter.Configuration.DiagnosticPart; //导入依赖的package包/类
public SimpleConfiguration(Set<DiagnosticPart> parts) {
multilineLimits = new HashMap<MultilineLimit, Integer>();
setVisible(parts);
setMultilineLimit(MultilineLimit.DEPTH, -1);
setMultilineLimit(MultilineLimit.LENGTH, -1);
setCaretEnabled(true);
}
示例2: SimpleConfiguration
import com.sun.tools.javac.api.DiagnosticFormatter.Configuration.DiagnosticPart; //导入依赖的package包/类
public SimpleConfiguration(Set<DiagnosticPart> parts) {
multilineLimits = new HashMap<>();
setVisible(parts);
setMultilineLimit(MultilineLimit.DEPTH, -1);
setMultilineLimit(MultilineLimit.LENGTH, -1);
setCaretEnabled(true);
}
示例3: displaySource
import com.sun.tools.javac.api.DiagnosticFormatter.Configuration.DiagnosticPart; //导入依赖的package包/类
public boolean displaySource(JCDiagnostic d) {
return config.getVisible().contains(DiagnosticPart.SOURCE) &&
d.getType() != FRAGMENT &&
d.getIntPosition() != Position.NOPOS;
}
示例4: getVisible
import com.sun.tools.javac.api.DiagnosticFormatter.Configuration.DiagnosticPart; //导入依赖的package包/类
public EnumSet<DiagnosticPart> getVisible() {
return EnumSet.copyOf(visibleParts);
}
示例5: setVisible
import com.sun.tools.javac.api.DiagnosticFormatter.Configuration.DiagnosticPart; //导入依赖的package包/类
public void setVisible(Set<DiagnosticPart> diagParts) {
visibleParts = EnumSet.copyOf(diagParts);
}
示例6: setVisiblePart
import com.sun.tools.javac.api.DiagnosticFormatter.Configuration.DiagnosticPart; //导入依赖的package包/类
public void setVisiblePart(DiagnosticPart diagParts, boolean enabled) {
if (enabled)
visibleParts.add(diagParts);
else
visibleParts.remove(diagParts);
}
示例7: getVisible
import com.sun.tools.javac.api.DiagnosticFormatter.Configuration.DiagnosticPart; //导入依赖的package包/类
public Set<DiagnosticPart> getVisible() {
return configuration.getVisible();
}
示例8: setVisible
import com.sun.tools.javac.api.DiagnosticFormatter.Configuration.DiagnosticPart; //导入依赖的package包/类
public void setVisible(Set<DiagnosticPart> diagParts) {
configuration.setVisible(diagParts);
}
示例9: ArgTypeDiagnosticFormatter
import com.sun.tools.javac.api.DiagnosticFormatter.Configuration.DiagnosticPart; //导入依赖的package包/类
ArgTypeDiagnosticFormatter(Options options) {
super(null, new SimpleConfiguration(options,
EnumSet.of(DiagnosticPart.SUMMARY,
DiagnosticPart.DETAILS,
DiagnosticPart.SUBDIAGNOSTICS)));
}