public class ElementPairVisitor<R> extends SimpleElementVisitor7<R,Element>
Typical usage:
javax.lang.model.element.Element e1 = ...;
javax.lang.model.element.Element e2 = ...;
e1.accept(new ElementPairVisitor<Void>() {
protected Void visitType(TypeElement e1, TypeElement e2) {
...
}
}, e2);
TypeMirrorPairVisitorDEFAULT_VALUE| Constructor and Description |
|---|
ElementPairVisitor() |
defaultActionvisit, visitprotected R unmatchedAction(@Nonnull Element element, @Nullable Element otherElement)
protected R defaultMatchAction(@Nonnull Element element, @Nullable Element otherElement)
public final R visitPackage(@Nonnull PackageElement element, @Nullable Element otherElement)
visitPackage in interface ElementVisitor<R,Element>visitPackage in class SimpleElementVisitor6<R,Element>protected R visitPackage(@Nonnull PackageElement element, @Nonnull PackageElement otherElement)
public final R visitType(@Nonnull TypeElement element, @Nullable Element otherElement)
visitType in interface ElementVisitor<R,Element>visitType in class SimpleElementVisitor6<R,Element>protected R visitType(@Nonnull TypeElement element, @Nonnull TypeElement otherElement)
public final R visitVariable(@Nonnull VariableElement element, @Nullable Element otherElement)
visitVariable in interface ElementVisitor<R,Element>visitVariable in class SimpleElementVisitor7<R,Element>protected R visitVariable(@Nonnull VariableElement element, @Nonnull VariableElement otherElement)
public final R visitExecutable(@Nonnull ExecutableElement element, @Nullable Element otherElement)
visitExecutable in interface ElementVisitor<R,Element>visitExecutable in class SimpleElementVisitor6<R,Element>protected R visitExecutable(@Nonnull ExecutableElement element, @Nonnull ExecutableElement otherElement)
public final R visitTypeParameter(@Nonnull TypeParameterElement element, @Nullable Element otherElement)
visitTypeParameter in interface ElementVisitor<R,Element>visitTypeParameter in class SimpleElementVisitor6<R,Element>protected R visitTypeParameter(@Nonnull TypeParameterElement element, @Nonnull TypeParameterElement otherElement)
public R visitUnknown(@Nonnull Element element, @Nullable Element otherElement)
visitUnknown in interface ElementVisitor<R,Element>visitUnknown in class AbstractElementVisitor6<R,Element>Copyright © 2014-2021 Lukas Krejci. All Rights Reserved.