public class UnknownTreeException extends RuntimeException
Tree
hierarchy. May be thrown by a
tree visitor to indicate that the
visitor was created for a prior version of the language.Constructor and Description |
---|
UnknownTreeException(Tree t,
Object p)
Creates a new
UnknownTreeException . |
Modifier and Type | Method and Description |
---|---|
Object |
getArgument()
Returns the additional argument.
|
Tree |
getUnknownTree()
Returns the unknown tree.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public UnknownTreeException(Tree t, Object p)
UnknownTreeException
. The p
parameter may be used to pass in an additional argument with
information about the context in which the unknown element was
encountered; for example, the visit methods of TreeVisitor
may pass in their additional parameter.t
- the unknown tree, may be null
p
- an additional parameter, may be null
public Tree getUnknownTree()
null
if unavailablepublic Object getArgument()
Copyright © 2014, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-internal+0-2016-01-17-105616.buildd.src