public class UnknownElementException extends UnknownEntityException
ElementVisitor.visitUnknown(javax.lang.model.element.Element, P)
,
Serialized Form
Constructor and Description |
---|
UnknownElementException(Element e, Object p)
创建一个新的
UnknownElementException 。
|
Modifier and Type | Method and Description |
---|---|
Object |
getArgument()
返回附加参数。
|
Element |
getUnknownElement()
返回未知元素。
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public UnknownElementException(Element e, Object p)
UnknownElementException
。
所述p
参数可以用于在用约在其中遇到未知的元素的上下文信息的附加参数来传递;
例如, ElementVisitor
的访问方法可能会传入其附加参数。
e
- 未知元素,可能是
null
p
- 附加参数可以是
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.