Package org.revapi.java.spi
Class ElementPairVisitor<R>
- java.lang.Object
- 
- javax.lang.model.util.AbstractElementVisitor6<R,P>
- 
- javax.lang.model.util.SimpleElementVisitor6<R,P>
- 
- javax.lang.model.util.SimpleElementVisitor7<R,Element>
- 
- org.revapi.java.spi.ElementPairVisitor<R>
 
 
 
 
- 
- All Implemented Interfaces:
- ElementVisitor<R,Element>
 
 public class ElementPairVisitor<R> extends SimpleElementVisitor7<R,Element> Can be used by various checks and problem transformations to work with two elements of the same type.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);- Since:
- 0.1
- Author:
- Lukas Krejci
- See Also:
- TypeMirrorPairVisitor
 
- 
- 
Field Summary- 
Fields inherited from class javax.lang.model.util.SimpleElementVisitor6DEFAULT_VALUE
 
- 
 - 
Constructor SummaryConstructors Constructor Description ElementPairVisitor()
 - 
Method Summary- 
Methods inherited from class javax.lang.model.util.SimpleElementVisitor6defaultAction
 - 
Methods inherited from class javax.lang.model.util.AbstractElementVisitor6visit, visit
 
- 
 
- 
- 
- 
Method Detail- 
unmatchedActionprotected R unmatchedAction(@Nonnull Element element, @Nullable Element otherElement) 
 - 
defaultMatchActionprotected R defaultMatchAction(@Nonnull Element element, @Nullable Element otherElement) 
 - 
visitPackagepublic final R visitPackage(@Nonnull PackageElement element, @Nullable Element otherElement) - Specified by:
- visitPackagein interface- ElementVisitor<R,Element>
- Overrides:
- visitPackagein class- SimpleElementVisitor6<R,Element>
 
 - 
visitPackageprotected R visitPackage(@Nonnull PackageElement element, @Nonnull PackageElement otherElement) 
 - 
visitTypepublic final R visitType(@Nonnull TypeElement element, @Nullable Element otherElement) - Specified by:
- visitTypein interface- ElementVisitor<R,Element>
- Overrides:
- visitTypein class- SimpleElementVisitor6<R,Element>
 
 - 
visitTypeprotected R visitType(@Nonnull TypeElement element, @Nonnull TypeElement otherElement) 
 - 
visitVariablepublic final R visitVariable(@Nonnull VariableElement element, @Nullable Element otherElement) - Specified by:
- visitVariablein interface- ElementVisitor<R,Element>
- Overrides:
- visitVariablein class- SimpleElementVisitor7<R,Element>
 
 - 
visitVariableprotected R visitVariable(@Nonnull VariableElement element, @Nonnull VariableElement otherElement) 
 - 
visitExecutablepublic final R visitExecutable(@Nonnull ExecutableElement element, @Nullable Element otherElement) - Specified by:
- visitExecutablein interface- ElementVisitor<R,Element>
- Overrides:
- visitExecutablein class- SimpleElementVisitor6<R,Element>
 
 - 
visitExecutableprotected R visitExecutable(@Nonnull ExecutableElement element, @Nonnull ExecutableElement otherElement) 
 - 
visitTypeParameterpublic final R visitTypeParameter(@Nonnull TypeParameterElement element, @Nullable Element otherElement) - Specified by:
- visitTypeParameterin interface- ElementVisitor<R,Element>
- Overrides:
- visitTypeParameterin class- SimpleElementVisitor6<R,Element>
 
 - 
visitTypeParameterprotected R visitTypeParameter(@Nonnull TypeParameterElement element, @Nonnull TypeParameterElement otherElement) 
 - 
visitUnknownpublic R visitUnknown(@Nonnull Element element, @Nullable Element otherElement) - Specified by:
- visitUnknownin interface- ElementVisitor<R,Element>
- Overrides:
- visitUnknownin class- AbstractElementVisitor6<R,Element>
 
 
- 
 
-