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.