Class EqualsVisitor
java.lang.Object
com.github.javaparser.ast.visitor.EqualsVisitor
- All Implemented Interfaces:
GenericVisitor<Boolean,
Visitable>
A visitor that calculates deep node equality by comparing all properties and child nodes of the node.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
commonNodeEquality
(Node n, Node n2) Check for equality that can be applied to each kind of node, to not repeat it in every method we store that here.static boolean
private <T extends Node>
booleannodeEquals
(Optional<T> n, Optional<T> n2) private <T extends Node>
booleannodeEquals
(T n, T n2) private <N extends Node>
booleannodesEquals
(NodeList<N> n, NodeList<N> n2) private <T extends Node>
booleannodesEquals
(List<T> nodes1, List<T> nodes2) private <T extends Node>
booleannodesEquals
(Optional<NodeList<T>> n, Optional<NodeList<T>> n2) private boolean
visit
(ArrayCreationLevel n, Visitable arg) visit
(AnnotationDeclaration n, Visitable arg) visit
(ConstructorDeclaration n, Visitable arg) visit
(EnumConstantDeclaration n, Visitable arg) visit
(EnumDeclaration n, Visitable arg) visit
(FieldDeclaration n, Visitable arg) visit
(InitializerDeclaration n, Visitable arg) visit
(MethodDeclaration n, Visitable arg) visit
(ReceiverParameter n, Visitable arg) visit
(RecordDeclaration n, Visitable arg) visit
(VariableDeclarator n, Visitable arg) visit
(BlockComment n, Visitable arg) visit
(JavadocComment n, Visitable arg) visit
(LineComment n, Visitable arg) visit
(CompilationUnit n, Visitable arg) visit
(ArrayAccessExpr n, Visitable arg) visit
(ArrayCreationExpr n, Visitable arg) visit
(ArrayInitializerExpr n, Visitable arg) visit
(AssignExpr n, Visitable arg) visit
(BinaryExpr n, Visitable arg) visit
(BooleanLiteralExpr n, Visitable arg) visit
(CharLiteralExpr n, Visitable arg) visit
(ConditionalExpr n, Visitable arg) visit
(DoubleLiteralExpr n, Visitable arg) visit
(EnclosedExpr n, Visitable arg) visit
(FieldAccessExpr n, Visitable arg) visit
(InstanceOfExpr n, Visitable arg) visit
(IntegerLiteralExpr n, Visitable arg) visit
(LambdaExpr n, Visitable arg) visit
(LongLiteralExpr n, Visitable arg) visit
(MarkerAnnotationExpr n, Visitable arg) visit
(MemberValuePair n, Visitable arg) visit
(MethodCallExpr n, Visitable arg) visit
(MethodReferenceExpr n, Visitable arg) visit
(NormalAnnotationExpr n, Visitable arg) visit
(NullLiteralExpr n, Visitable arg) visit
(ObjectCreationExpr n, Visitable arg) visit
(RecordPatternExpr n, Visitable arg) visit
(SimpleName n, Visitable arg) visit
(SingleMemberAnnotationExpr n, Visitable arg) visit
(StringLiteralExpr n, Visitable arg) visit
(SwitchExpr n, Visitable arg) visit
(TextBlockLiteralExpr n, Visitable arg) visit
(TypePatternExpr n, Visitable arg) visit
(VariableDeclarationExpr n, Visitable arg) visit
(ImportDeclaration n, Visitable arg) visit
(ModuleDeclaration n, Visitable arg) visit
(ModuleExportsDirective n, Visitable arg) visit
(ModuleOpensDirective n, Visitable arg) visit
(ModuleProvidesDirective n, Visitable arg) visit
(ModuleRequiresDirective n, Visitable arg) visit
(ModuleUsesDirective n, Visitable arg) visit
(PackageDeclaration n, Visitable arg) visit
(AssertStmt n, Visitable arg) visit
(CatchClause n, Visitable arg) visit
(ContinueStmt n, Visitable arg) visit
(ExpressionStmt n, Visitable arg) visit
(ForEachStmt n, Visitable arg) visit
(LabeledStmt n, Visitable arg) visit
(LocalClassDeclarationStmt n, Visitable arg) visit
(LocalRecordDeclarationStmt n, Visitable arg) visit
(ReturnStmt n, Visitable arg) visit
(SwitchEntry n, Visitable arg) visit
(SwitchStmt n, Visitable arg) visit
(SynchronizedStmt n, Visitable arg) visit
(UnparsableStmt n, Visitable arg) visit
(ClassOrInterfaceType n, Visitable arg) visit
(IntersectionType n, Visitable arg) visit
(PrimitiveType n, Visitable arg) visit
(TypeParameter n, Visitable arg) visit
(UnknownType n, Visitable arg) visit
(WildcardType n, Visitable arg)
-
Field Details
-
SINGLETON
-
-
Constructor Details
-
EqualsVisitor
private EqualsVisitor()
-
-
Method Details
-
equals
-
commonNodeEquality
Check for equality that can be applied to each kind of node, to not repeat it in every method we store that here. -
nodesEquals
-
nodesEquals
-
nodeEquals
-
nodeEquals
-
nodesEquals
-
objEquals
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-
visit
- Specified by:
visit
in interfaceGenericVisitor<Boolean,
Visitable>
-