A visitor of module directives, in the style of the visitor design
pattern. Classes implementing this interface are used to operate
on a directive when the kind of directive is unknown at compile time.
When a visitor is passed to a directive's accept
method, the visitXyz
method applicable
to that directive is invoked.
Classes implementing this interface may or may not throw a
NullPointerException
if the additional parameter p
is null
; see documentation of the implementing class for
details.
WARNING: It is possible that methods will be added to this interface to accommodate new, currently unknown, language structures added to future versions of the Java™ programming language. Methods to accommodate new language constructs will be added in a source compatible way using default methods.
<R> | the return type of this visitor's methods. Use Void for visitors that do not need to return results. | |
<P> | the type of the additional parameter to this visitor's
methods. Use Void for visitors that do not need an
additional parameter. |
@spec JPMS