| Modifier and Type | Interface and Description |
|---|---|
static class |
Diagnostic.Kind
诊断的种类,例如错误或警告。
|
| Modifier and Type | Field and Description |
|---|---|
static long |
NOPOS
用于表示没有位置可用。
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCode()
获取指示诊断类型的诊断代码。
|
long |
getColumnNumber()
获取字符的列数由偏移返回
getPosition() 。
|
long |
getEndPosition()
从与此诊断相关联的文件的开头获取指示问题结束的字符偏移量。
|
Diagnostic.Kind |
getKind()
获得此诊断的类型,例如错误或警告。
|
long |
getLineNumber()
获取字符的行号偏移通过返回
getPosition() 。
|
String |
getMessage(Locale locale)
获取给定区域设置的本地化消息。
|
long |
getPosition()
从与此诊断相关联的源对象的开始处获取一个字符偏移量,指示问题的位置。
|
S |
getSource()
获取与此诊断关联的源对象。
|
long |
getStartPosition()
从与该诊断相关联的文件的开头获取指示问题开始的字符偏移量。
|
static final long NOPOS
Diagnostic.Kind getKind()
S getSource()
null如果没有源对象与诊断相关联。
long getPosition()
getStartPostion() <= getPosition()
getPosition() <= getEndPosition()
NOPOS如果getSource()将返回null或如果没有位置是合适的
long getStartPosition()
NOPOS当且仅当getPosition()返回NOPOS
long getEndPosition()
NOPOS如果且仅当getPosition()返回NOPOS
long getLineNumber()
NOPOS当且仅当
getPosition()返回
NOPOS
long getColumnNumber()
NOPOS当且仅当
getPosition()返回
NOPOS
String getCode()
null 。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.