|
Préférences
Moteurs de recherche
|
|||||||||||||||||
JavaTM 2 Platform Std. Ed. v1.6.0
javax.lang.model.util
|
Constructor Summary | |
---|---|
protected |
AbstractElementVisitor6()
Constructor for concrete subclasses to call. |
Method Summary | |
---|---|
R |
visit(Element e)
Visits any program element as if by passing itself to that element's accept method and passing
null for the additional parameter. |
R |
visit(Element e,
P p)
Visits any program element as if by passing itself to that element's accept method. |
R |
visitUnknown(Element e,
P p)
Visits an unknown kind of element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.lang.model.element.ElementVisitor |
---|
visitExecutable, visitPackage, visitType, visitTypeParameter, visitVariable |
Constructor Detail |
---|
protected AbstractElementVisitor6()
Method Detail |
---|
public final R visit(Element e, P p)
accept
method. The invocation
v.visit(elem)
is equivalent to elem.accept(v,
p)
.
visit
in interface ElementVisitor<R,P>
e
- the element to visitp
- a visitor-specified parameter
public final R visit(Element e)
accept
method and passing
null
for the additional parameter. The invocation
v.visit(elem)
is equivalent to elem.accept(v,
null)
.
visit
in interface ElementVisitor<R,P>
e
- the element to visit
public R visitUnknown(Element e, P p)
Element
hierarchy.
The default implementation of this method in
AbstractElementVisitor6
will always throw
UnknownElementException
.
This behavior is not required of a subclass.
visitUnknown
in interface ElementVisitor<R,P>
e
- the element to visitp
- a visitor-specified parameter
UnknownElementException
- a visitor implementation may optionally throw this exception