Make final parameter usage consistent in visitors
diff --git a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/CloneVisitorGenerator.java b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/CloneVisitorGenerator.java
index 40c607f..44a7e9f 100644
--- a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/CloneVisitorGenerator.java
+++ b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/CloneVisitorGenerator.java
@@ -21,6 +21,8 @@
@Override
protected void generateVisitMethodBody(BaseNodeMetaModel node, MethodDeclaration visitMethod, CompilationUnit compilationUnit) {
+ visitMethod.getParameters().forEach(p -> p.setFinal(true));
+
BlockStmt body = visitMethod.getBody().get();
body.getStatements().clear();
diff --git a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/EqualsVisitorGenerator.java b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/EqualsVisitorGenerator.java
index ffd3990..7517f8e 100644
--- a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/EqualsVisitorGenerator.java
+++ b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/EqualsVisitorGenerator.java
@@ -20,6 +20,8 @@
@Override
protected void generateVisitMethodBody(BaseNodeMetaModel node, MethodDeclaration visitMethod, CompilationUnit compilationUnit) {
+ visitMethod.getParameters().forEach(p -> p.setFinal(true));
+
BlockStmt body = visitMethod.getBody().get();
body.getStatements().clear();
diff --git a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/GenericListVisitorAdapterGenerator.java b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/GenericListVisitorAdapterGenerator.java
index 445676c..f910108 100644
--- a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/GenericListVisitorAdapterGenerator.java
+++ b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/GenericListVisitorAdapterGenerator.java
@@ -24,6 +24,8 @@
@Override
protected void generateVisitMethodBody(BaseNodeMetaModel node, MethodDeclaration visitMethod, CompilationUnit compilationUnit) {
+ visitMethod.getParameters().forEach(p -> p.setFinal(true));
+
BlockStmt body = visitMethod.getBody().get();
body.getStatements().clear();
body.addStatement("List<R> result = new ArrayList<>();");
diff --git a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/GenericVisitorAdapterGenerator.java b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/GenericVisitorAdapterGenerator.java
index 644dac0..72f563d 100644
--- a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/GenericVisitorAdapterGenerator.java
+++ b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/GenericVisitorAdapterGenerator.java
@@ -20,6 +20,8 @@
@Override
protected void generateVisitMethodBody(BaseNodeMetaModel node, MethodDeclaration visitMethod, CompilationUnit compilationUnit) {
+ visitMethod.getParameters().forEach(p -> p.setFinal(true));
+
BlockStmt body = visitMethod.getBody().get();
body.getStatements().clear();
diff --git a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/GenericVisitorGenerator.java b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/GenericVisitorGenerator.java
index 48fa803..e71aeb1 100644
--- a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/GenericVisitorGenerator.java
+++ b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/GenericVisitorGenerator.java
@@ -16,6 +16,8 @@
@Override
protected void generateVisitMethodBody(BaseNodeMetaModel node, MethodDeclaration visitMethod, CompilationUnit compilationUnit) {
+ visitMethod.getParameters().forEach(p -> p.setFinal(false));
+
visitMethod.setBody(null);
}
}
diff --git a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/HashCodeVisitorGenerator.java b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/HashCodeVisitorGenerator.java
index ad4827d..554dc8d 100644
--- a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/HashCodeVisitorGenerator.java
+++ b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/HashCodeVisitorGenerator.java
@@ -23,6 +23,8 @@
@Override
protected void generateVisitMethodBody(BaseNodeMetaModel node, MethodDeclaration visitMethod, CompilationUnit compilationUnit) {
+ visitMethod.getParameters().forEach(p -> p.setFinal(true));
+
final BlockStmt body = visitMethod.getBody().get();
body.getStatements().clear();
diff --git a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/ModifierVisitorGenerator.java b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/ModifierVisitorGenerator.java
index fed1c9e..4c2f711 100644
--- a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/ModifierVisitorGenerator.java
+++ b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/ModifierVisitorGenerator.java
@@ -19,6 +19,8 @@
@Override
protected void generateVisitMethodBody(BaseNodeMetaModel node, MethodDeclaration visitMethod, CompilationUnit compilationUnit) {
+ visitMethod.getParameters().forEach(p -> p.setFinal(true));
+
BlockStmt body = visitMethod.getBody().get();
body.getStatements().clear();
diff --git a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/VoidVisitorAdapterGenerator.java b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/VoidVisitorAdapterGenerator.java
index 2a5d25f..937ea7e 100644
--- a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/VoidVisitorAdapterGenerator.java
+++ b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/VoidVisitorAdapterGenerator.java
@@ -20,6 +20,8 @@
@Override
protected void generateVisitMethodBody(BaseNodeMetaModel node, MethodDeclaration visitMethod, CompilationUnit compilationUnit) {
+ visitMethod.getParameters().forEach(p -> p.setFinal(true));
+
BlockStmt body = visitMethod.getBody().get();
body.getStatements().clear();
diff --git a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/VoidVisitorGenerator.java b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/VoidVisitorGenerator.java
index 1d5ebea..e3326d3 100644
--- a/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/VoidVisitorGenerator.java
+++ b/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/VoidVisitorGenerator.java
@@ -16,6 +16,8 @@
@Override
protected void generateVisitMethodBody(BaseNodeMetaModel node, MethodDeclaration visitMethod, CompilationUnit compilationUnit) {
+ visitMethod.getParameters().forEach(p -> p.setFinal(false));
+
visitMethod.setBody(null);
}
}
diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/Node.java b/javaparser-core/src/main/java/com/github/javaparser/ast/Node.java
index 43263b1..89e1891 100644
--- a/javaparser-core/src/main/java/com/github/javaparser/ast/Node.java
+++ b/javaparser-core/src/main/java/com/github/javaparser/ast/Node.java
@@ -200,8 +200,7 @@
public Node setTokenRange(TokenRange tokenRange) {
this.tokenRange = tokenRange;
- if (tokenRange == null ||
- !(tokenRange.getBegin().getRange().isPresent() && tokenRange.getBegin().getRange().isPresent())) {
+ if (tokenRange == null || !(tokenRange.getBegin().getRange().isPresent() && tokenRange.getBegin().getRange().isPresent())) {
range = null;
} else {
range = new Range(tokenRange.getBegin().getRange().get().begin, tokenRange.getEnd().getRange().get().end);
diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/CloneVisitor.java b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/CloneVisitor.java
index f1f604a..4cdf81b 100644
--- a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/CloneVisitor.java
+++ b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/CloneVisitor.java
@@ -37,7 +37,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(CompilationUnit n, Object arg) {
+ public Visitable visit(final CompilationUnit n, final Object arg) {
NodeList<ImportDeclaration> imports = cloneList(n.getImports(), arg);
ModuleDeclaration module = cloneNode(n.getModule(), arg);
PackageDeclaration packageDeclaration = cloneNode(n.getPackageDeclaration(), arg);
@@ -50,7 +50,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(PackageDeclaration n, Object arg) {
+ public Visitable visit(final PackageDeclaration n, final Object arg) {
NodeList<AnnotationExpr> annotations = cloneList(n.getAnnotations(), arg);
Name name = cloneNode(n.getName(), arg);
Comment comment = cloneNode(n.getComment(), arg);
@@ -61,7 +61,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(TypeParameter n, Object arg) {
+ public Visitable visit(final TypeParameter n, final Object arg) {
SimpleName name = cloneNode(n.getName(), arg);
NodeList<ClassOrInterfaceType> typeBound = cloneList(n.getTypeBound(), arg);
NodeList<AnnotationExpr> annotations = cloneList(n.getAnnotations(), arg);
@@ -73,7 +73,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(LineComment n, Object arg) {
+ public Visitable visit(final LineComment n, final Object arg) {
Comment comment = cloneNode(n.getComment(), arg);
LineComment r = new LineComment(n.getTokenRange().orElse(null), n.getContent());
r.setComment(comment);
@@ -82,7 +82,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(BlockComment n, Object arg) {
+ public Visitable visit(final BlockComment n, final Object arg) {
Comment comment = cloneNode(n.getComment(), arg);
BlockComment r = new BlockComment(n.getTokenRange().orElse(null), n.getContent());
r.setComment(comment);
@@ -91,7 +91,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(ClassOrInterfaceDeclaration n, Object arg) {
+ public Visitable visit(final ClassOrInterfaceDeclaration n, final Object arg) {
NodeList<ClassOrInterfaceType> extendedTypes = cloneList(n.getExtendedTypes(), arg);
NodeList<ClassOrInterfaceType> implementedTypes = cloneList(n.getImplementedTypes(), arg);
NodeList<TypeParameter> typeParameters = cloneList(n.getTypeParameters(), arg);
@@ -106,7 +106,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(EnumDeclaration n, Object arg) {
+ public Visitable visit(final EnumDeclaration n, final Object arg) {
NodeList<EnumConstantDeclaration> entries = cloneList(n.getEntries(), arg);
NodeList<ClassOrInterfaceType> implementedTypes = cloneList(n.getImplementedTypes(), arg);
NodeList<BodyDeclaration<?>> members = cloneList(n.getMembers(), arg);
@@ -120,7 +120,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(EnumConstantDeclaration n, Object arg) {
+ public Visitable visit(final EnumConstantDeclaration n, final Object arg) {
NodeList<Expression> arguments = cloneList(n.getArguments(), arg);
NodeList<BodyDeclaration<?>> classBody = cloneList(n.getClassBody(), arg);
SimpleName name = cloneNode(n.getName(), arg);
@@ -133,7 +133,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(AnnotationDeclaration n, Object arg) {
+ public Visitable visit(final AnnotationDeclaration n, final Object arg) {
NodeList<BodyDeclaration<?>> members = cloneList(n.getMembers(), arg);
SimpleName name = cloneNode(n.getName(), arg);
NodeList<AnnotationExpr> annotations = cloneList(n.getAnnotations(), arg);
@@ -145,7 +145,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(AnnotationMemberDeclaration n, Object arg) {
+ public Visitable visit(final AnnotationMemberDeclaration n, final Object arg) {
Expression defaultValue = cloneNode(n.getDefaultValue(), arg);
SimpleName name = cloneNode(n.getName(), arg);
Type type = cloneNode(n.getType(), arg);
@@ -158,7 +158,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(FieldDeclaration n, Object arg) {
+ public Visitable visit(final FieldDeclaration n, final Object arg) {
NodeList<VariableDeclarator> variables = cloneList(n.getVariables(), arg);
NodeList<AnnotationExpr> annotations = cloneList(n.getAnnotations(), arg);
Comment comment = cloneNode(n.getComment(), arg);
@@ -169,7 +169,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(VariableDeclarator n, Object arg) {
+ public Visitable visit(final VariableDeclarator n, final Object arg) {
Expression initializer = cloneNode(n.getInitializer(), arg);
SimpleName name = cloneNode(n.getName(), arg);
Type type = cloneNode(n.getType(), arg);
@@ -181,7 +181,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(ConstructorDeclaration n, Object arg) {
+ public Visitable visit(final ConstructorDeclaration n, final Object arg) {
BlockStmt body = cloneNode(n.getBody(), arg);
SimpleName name = cloneNode(n.getName(), arg);
NodeList<Parameter> parameters = cloneList(n.getParameters(), arg);
@@ -196,7 +196,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(MethodDeclaration n, Object arg) {
+ public Visitable visit(final MethodDeclaration n, final Object arg) {
BlockStmt body = cloneNode(n.getBody(), arg);
Type type = cloneNode(n.getType(), arg);
SimpleName name = cloneNode(n.getName(), arg);
@@ -212,7 +212,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(Parameter n, Object arg) {
+ public Visitable visit(final Parameter n, final Object arg) {
NodeList<AnnotationExpr> annotations = cloneList(n.getAnnotations(), arg);
SimpleName name = cloneNode(n.getName(), arg);
Type type = cloneNode(n.getType(), arg);
@@ -225,7 +225,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(InitializerDeclaration n, Object arg) {
+ public Visitable visit(final InitializerDeclaration n, final Object arg) {
BlockStmt body = cloneNode(n.getBody(), arg);
NodeList<AnnotationExpr> annotations = cloneList(n.getAnnotations(), arg);
Comment comment = cloneNode(n.getComment(), arg);
@@ -236,7 +236,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(JavadocComment n, Object arg) {
+ public Visitable visit(final JavadocComment n, final Object arg) {
Comment comment = cloneNode(n.getComment(), arg);
JavadocComment r = new JavadocComment(n.getTokenRange().orElse(null), n.getContent());
r.setComment(comment);
@@ -245,7 +245,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(ClassOrInterfaceType n, Object arg) {
+ public Visitable visit(final ClassOrInterfaceType n, final Object arg) {
SimpleName name = cloneNode(n.getName(), arg);
ClassOrInterfaceType scope = cloneNode(n.getScope(), arg);
NodeList<Type> typeArguments = cloneList(n.getTypeArguments().orElse(null), arg);
@@ -258,7 +258,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(PrimitiveType n, Object arg) {
+ public Visitable visit(final PrimitiveType n, final Object arg) {
NodeList<AnnotationExpr> annotations = cloneList(n.getAnnotations(), arg);
Comment comment = cloneNode(n.getComment(), arg);
PrimitiveType r = new PrimitiveType(n.getTokenRange().orElse(null), n.getType());
@@ -268,7 +268,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(ArrayType n, Object arg) {
+ public Visitable visit(final ArrayType n, final Object arg) {
Type componentType = cloneNode(n.getComponentType(), arg);
NodeList<AnnotationExpr> annotations = cloneList(n.getAnnotations(), arg);
Comment comment = cloneNode(n.getComment(), arg);
@@ -279,7 +279,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(ArrayCreationLevel n, Object arg) {
+ public Visitable visit(final ArrayCreationLevel n, final Object arg) {
NodeList<AnnotationExpr> annotations = cloneList(n.getAnnotations(), arg);
Expression dimension = cloneNode(n.getDimension(), arg);
Comment comment = cloneNode(n.getComment(), arg);
@@ -290,7 +290,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(IntersectionType n, Object arg) {
+ public Visitable visit(final IntersectionType n, final Object arg) {
NodeList<ReferenceType> elements = cloneList(n.getElements(), arg);
NodeList<AnnotationExpr> annotations = cloneList(n.getAnnotations(), arg);
Comment comment = cloneNode(n.getComment(), arg);
@@ -301,7 +301,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(UnionType n, Object arg) {
+ public Visitable visit(final UnionType n, final Object arg) {
NodeList<ReferenceType> elements = cloneList(n.getElements(), arg);
NodeList<AnnotationExpr> annotations = cloneList(n.getAnnotations(), arg);
Comment comment = cloneNode(n.getComment(), arg);
@@ -312,7 +312,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(VoidType n, Object arg) {
+ public Visitable visit(final VoidType n, final Object arg) {
NodeList<AnnotationExpr> annotations = cloneList(n.getAnnotations(), arg);
Comment comment = cloneNode(n.getComment(), arg);
VoidType r = new VoidType(n.getTokenRange().orElse(null));
@@ -322,7 +322,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(WildcardType n, Object arg) {
+ public Visitable visit(final WildcardType n, final Object arg) {
ReferenceType extendedType = cloneNode(n.getExtendedType(), arg);
ReferenceType superType = cloneNode(n.getSuperType(), arg);
NodeList<AnnotationExpr> annotations = cloneList(n.getAnnotations(), arg);
@@ -334,7 +334,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(UnknownType n, Object arg) {
+ public Visitable visit(final UnknownType n, final Object arg) {
NodeList<AnnotationExpr> annotations = cloneList(n.getAnnotations(), arg);
Comment comment = cloneNode(n.getComment(), arg);
UnknownType r = new UnknownType(n.getTokenRange().orElse(null));
@@ -344,7 +344,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(ArrayAccessExpr n, Object arg) {
+ public Visitable visit(final ArrayAccessExpr n, final Object arg) {
Expression index = cloneNode(n.getIndex(), arg);
Expression name = cloneNode(n.getName(), arg);
Comment comment = cloneNode(n.getComment(), arg);
@@ -355,7 +355,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(ArrayCreationExpr n, Object arg) {
+ public Visitable visit(final ArrayCreationExpr n, final Object arg) {
Type elementType = cloneNode(n.getElementType(), arg);
ArrayInitializerExpr initializer = cloneNode(n.getInitializer(), arg);
NodeList<ArrayCreationLevel> levels = cloneList(n.getLevels(), arg);
@@ -367,7 +367,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(ArrayInitializerExpr n, Object arg) {
+ public Visitable visit(final ArrayInitializerExpr n, final Object arg) {
NodeList<Expression> values = cloneList(n.getValues(), arg);
Comment comment = cloneNode(n.getComment(), arg);
ArrayInitializerExpr r = new ArrayInitializerExpr(n.getTokenRange().orElse(null), values);
@@ -377,7 +377,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(AssignExpr n, Object arg) {
+ public Visitable visit(final AssignExpr n, final Object arg) {
Expression target = cloneNode(n.getTarget(), arg);
Expression value = cloneNode(n.getValue(), arg);
Comment comment = cloneNode(n.getComment(), arg);
@@ -388,7 +388,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(BinaryExpr n, Object arg) {
+ public Visitable visit(final BinaryExpr n, final Object arg) {
Expression left = cloneNode(n.getLeft(), arg);
Expression right = cloneNode(n.getRight(), arg);
Comment comment = cloneNode(n.getComment(), arg);
@@ -399,7 +399,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(CastExpr n, Object arg) {
+ public Visitable visit(final CastExpr n, final Object arg) {
Expression expression = cloneNode(n.getExpression(), arg);
Type type = cloneNode(n.getType(), arg);
Comment comment = cloneNode(n.getComment(), arg);
@@ -410,7 +410,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(ClassExpr n, Object arg) {
+ public Visitable visit(final ClassExpr n, final Object arg) {
Type type = cloneNode(n.getType(), arg);
Comment comment = cloneNode(n.getComment(), arg);
ClassExpr r = new ClassExpr(n.getTokenRange().orElse(null), type);
@@ -420,7 +420,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(ConditionalExpr n, Object arg) {
+ public Visitable visit(final ConditionalExpr n, final Object arg) {
Expression condition = cloneNode(n.getCondition(), arg);
Expression elseExpr = cloneNode(n.getElseExpr(), arg);
Expression thenExpr = cloneNode(n.getThenExpr(), arg);
@@ -432,7 +432,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(EnclosedExpr n, Object arg) {
+ public Visitable visit(final EnclosedExpr n, final Object arg) {
Expression inner = cloneNode(n.getInner(), arg);
Comment comment = cloneNode(n.getComment(), arg);
EnclosedExpr r = new EnclosedExpr(n.getTokenRange().orElse(null), inner);
@@ -442,7 +442,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(FieldAccessExpr n, Object arg) {
+ public Visitable visit(final FieldAccessExpr n, final Object arg) {
SimpleName name = cloneNode(n.getName(), arg);
Expression scope = cloneNode(n.getScope(), arg);
NodeList<Type> typeArguments = cloneList(n.getTypeArguments().orElse(null), arg);
@@ -454,7 +454,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(InstanceOfExpr n, Object arg) {
+ public Visitable visit(final InstanceOfExpr n, final Object arg) {
Expression expression = cloneNode(n.getExpression(), arg);
ReferenceType type = cloneNode(n.getType(), arg);
Comment comment = cloneNode(n.getComment(), arg);
@@ -465,7 +465,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(StringLiteralExpr n, Object arg) {
+ public Visitable visit(final StringLiteralExpr n, final Object arg) {
Comment comment = cloneNode(n.getComment(), arg);
StringLiteralExpr r = new StringLiteralExpr(n.getTokenRange().orElse(null), n.getValue());
r.setComment(comment);
@@ -474,7 +474,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(IntegerLiteralExpr n, Object arg) {
+ public Visitable visit(final IntegerLiteralExpr n, final Object arg) {
Comment comment = cloneNode(n.getComment(), arg);
IntegerLiteralExpr r = new IntegerLiteralExpr(n.getTokenRange().orElse(null), n.getValue());
r.setComment(comment);
@@ -483,7 +483,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(LongLiteralExpr n, Object arg) {
+ public Visitable visit(final LongLiteralExpr n, final Object arg) {
Comment comment = cloneNode(n.getComment(), arg);
LongLiteralExpr r = new LongLiteralExpr(n.getTokenRange().orElse(null), n.getValue());
r.setComment(comment);
@@ -492,7 +492,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(CharLiteralExpr n, Object arg) {
+ public Visitable visit(final CharLiteralExpr n, final Object arg) {
Comment comment = cloneNode(n.getComment(), arg);
CharLiteralExpr r = new CharLiteralExpr(n.getTokenRange().orElse(null), n.getValue());
r.setComment(comment);
@@ -501,7 +501,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(DoubleLiteralExpr n, Object arg) {
+ public Visitable visit(final DoubleLiteralExpr n, final Object arg) {
Comment comment = cloneNode(n.getComment(), arg);
DoubleLiteralExpr r = new DoubleLiteralExpr(n.getTokenRange().orElse(null), n.getValue());
r.setComment(comment);
@@ -510,7 +510,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(BooleanLiteralExpr n, Object arg) {
+ public Visitable visit(final BooleanLiteralExpr n, final Object arg) {
Comment comment = cloneNode(n.getComment(), arg);
BooleanLiteralExpr r = new BooleanLiteralExpr(n.getTokenRange().orElse(null), n.getValue());
r.setComment(comment);
@@ -519,7 +519,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(NullLiteralExpr n, Object arg) {
+ public Visitable visit(final NullLiteralExpr n, final Object arg) {
Comment comment = cloneNode(n.getComment(), arg);
NullLiteralExpr r = new NullLiteralExpr(n.getTokenRange().orElse(null));
r.setComment(comment);
@@ -528,7 +528,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(MethodCallExpr n, Object arg) {
+ public Visitable visit(final MethodCallExpr n, final Object arg) {
NodeList<Expression> arguments = cloneList(n.getArguments(), arg);
SimpleName name = cloneNode(n.getName(), arg);
Expression scope = cloneNode(n.getScope(), arg);
@@ -541,7 +541,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(NameExpr n, Object arg) {
+ public Visitable visit(final NameExpr n, final Object arg) {
SimpleName name = cloneNode(n.getName(), arg);
Comment comment = cloneNode(n.getComment(), arg);
NameExpr r = new NameExpr(n.getTokenRange().orElse(null), name);
@@ -551,7 +551,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(ObjectCreationExpr n, Object arg) {
+ public Visitable visit(final ObjectCreationExpr n, final Object arg) {
NodeList<BodyDeclaration<?>> anonymousClassBody = cloneList(n.getAnonymousClassBody().orElse(null), arg);
NodeList<Expression> arguments = cloneList(n.getArguments(), arg);
Expression scope = cloneNode(n.getScope(), arg);
@@ -565,7 +565,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(Name n, Object arg) {
+ public Visitable visit(final Name n, final Object arg) {
NodeList<AnnotationExpr> annotations = cloneList(n.getAnnotations(), arg);
Name qualifier = cloneNode(n.getQualifier(), arg);
Comment comment = cloneNode(n.getComment(), arg);
@@ -576,7 +576,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(SimpleName n, Object arg) {
+ public Visitable visit(final SimpleName n, final Object arg) {
Comment comment = cloneNode(n.getComment(), arg);
SimpleName r = new SimpleName(n.getTokenRange().orElse(null), n.getIdentifier());
r.setComment(comment);
@@ -585,7 +585,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(ThisExpr n, Object arg) {
+ public Visitable visit(final ThisExpr n, final Object arg) {
Expression classExpr = cloneNode(n.getClassExpr(), arg);
Comment comment = cloneNode(n.getComment(), arg);
ThisExpr r = new ThisExpr(n.getTokenRange().orElse(null), classExpr);
@@ -595,7 +595,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(SuperExpr n, Object arg) {
+ public Visitable visit(final SuperExpr n, final Object arg) {
Expression classExpr = cloneNode(n.getClassExpr(), arg);
Comment comment = cloneNode(n.getComment(), arg);
SuperExpr r = new SuperExpr(n.getTokenRange().orElse(null), classExpr);
@@ -605,7 +605,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(UnaryExpr n, Object arg) {
+ public Visitable visit(final UnaryExpr n, final Object arg) {
Expression expression = cloneNode(n.getExpression(), arg);
Comment comment = cloneNode(n.getComment(), arg);
UnaryExpr r = new UnaryExpr(n.getTokenRange().orElse(null), expression, n.getOperator());
@@ -615,7 +615,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(VariableDeclarationExpr n, Object arg) {
+ public Visitable visit(final VariableDeclarationExpr n, final Object arg) {
NodeList<AnnotationExpr> annotations = cloneList(n.getAnnotations(), arg);
NodeList<VariableDeclarator> variables = cloneList(n.getVariables(), arg);
Comment comment = cloneNode(n.getComment(), arg);
@@ -626,7 +626,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(MarkerAnnotationExpr n, Object arg) {
+ public Visitable visit(final MarkerAnnotationExpr n, final Object arg) {
Name name = cloneNode(n.getName(), arg);
Comment comment = cloneNode(n.getComment(), arg);
MarkerAnnotationExpr r = new MarkerAnnotationExpr(n.getTokenRange().orElse(null), name);
@@ -636,7 +636,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(SingleMemberAnnotationExpr n, Object arg) {
+ public Visitable visit(final SingleMemberAnnotationExpr n, final Object arg) {
Expression memberValue = cloneNode(n.getMemberValue(), arg);
Name name = cloneNode(n.getName(), arg);
Comment comment = cloneNode(n.getComment(), arg);
@@ -647,7 +647,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(NormalAnnotationExpr n, Object arg) {
+ public Visitable visit(final NormalAnnotationExpr n, final Object arg) {
NodeList<MemberValuePair> pairs = cloneList(n.getPairs(), arg);
Name name = cloneNode(n.getName(), arg);
Comment comment = cloneNode(n.getComment(), arg);
@@ -658,7 +658,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(MemberValuePair n, Object arg) {
+ public Visitable visit(final MemberValuePair n, final Object arg) {
SimpleName name = cloneNode(n.getName(), arg);
Expression value = cloneNode(n.getValue(), arg);
Comment comment = cloneNode(n.getComment(), arg);
@@ -669,7 +669,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(ExplicitConstructorInvocationStmt n, Object arg) {
+ public Visitable visit(final ExplicitConstructorInvocationStmt n, final Object arg) {
NodeList<Expression> arguments = cloneList(n.getArguments(), arg);
Expression expression = cloneNode(n.getExpression(), arg);
NodeList<Type> typeArguments = cloneList(n.getTypeArguments().orElse(null), arg);
@@ -681,7 +681,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(LocalClassDeclarationStmt n, Object arg) {
+ public Visitable visit(final LocalClassDeclarationStmt n, final Object arg) {
ClassOrInterfaceDeclaration classDeclaration = cloneNode(n.getClassDeclaration(), arg);
Comment comment = cloneNode(n.getComment(), arg);
LocalClassDeclarationStmt r = new LocalClassDeclarationStmt(n.getTokenRange().orElse(null), classDeclaration);
@@ -691,7 +691,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(AssertStmt n, Object arg) {
+ public Visitable visit(final AssertStmt n, final Object arg) {
Expression check = cloneNode(n.getCheck(), arg);
Expression message = cloneNode(n.getMessage(), arg);
Comment comment = cloneNode(n.getComment(), arg);
@@ -702,7 +702,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(BlockStmt n, Object arg) {
+ public Visitable visit(final BlockStmt n, final Object arg) {
NodeList<Statement> statements = cloneList(n.getStatements(), arg);
Comment comment = cloneNode(n.getComment(), arg);
BlockStmt r = new BlockStmt(n.getTokenRange().orElse(null), statements);
@@ -712,7 +712,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(LabeledStmt n, Object arg) {
+ public Visitable visit(final LabeledStmt n, final Object arg) {
SimpleName label = cloneNode(n.getLabel(), arg);
Statement statement = cloneNode(n.getStatement(), arg);
Comment comment = cloneNode(n.getComment(), arg);
@@ -723,7 +723,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(EmptyStmt n, Object arg) {
+ public Visitable visit(final EmptyStmt n, final Object arg) {
Comment comment = cloneNode(n.getComment(), arg);
EmptyStmt r = new EmptyStmt(n.getTokenRange().orElse(null));
r.setComment(comment);
@@ -732,7 +732,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(ExpressionStmt n, Object arg) {
+ public Visitable visit(final ExpressionStmt n, final Object arg) {
Expression expression = cloneNode(n.getExpression(), arg);
Comment comment = cloneNode(n.getComment(), arg);
ExpressionStmt r = new ExpressionStmt(n.getTokenRange().orElse(null), expression);
@@ -742,7 +742,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(SwitchStmt n, Object arg) {
+ public Visitable visit(final SwitchStmt n, final Object arg) {
NodeList<SwitchEntryStmt> entries = cloneList(n.getEntries(), arg);
Expression selector = cloneNode(n.getSelector(), arg);
Comment comment = cloneNode(n.getComment(), arg);
@@ -753,7 +753,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(SwitchEntryStmt n, Object arg) {
+ public Visitable visit(final SwitchEntryStmt n, final Object arg) {
Expression label = cloneNode(n.getLabel(), arg);
NodeList<Statement> statements = cloneList(n.getStatements(), arg);
Comment comment = cloneNode(n.getComment(), arg);
@@ -764,7 +764,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(BreakStmt n, Object arg) {
+ public Visitable visit(final BreakStmt n, final Object arg) {
SimpleName label = cloneNode(n.getLabel(), arg);
Comment comment = cloneNode(n.getComment(), arg);
BreakStmt r = new BreakStmt(n.getTokenRange().orElse(null), label);
@@ -774,7 +774,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(ReturnStmt n, Object arg) {
+ public Visitable visit(final ReturnStmt n, final Object arg) {
Expression expression = cloneNode(n.getExpression(), arg);
Comment comment = cloneNode(n.getComment(), arg);
ReturnStmt r = new ReturnStmt(n.getTokenRange().orElse(null), expression);
@@ -784,7 +784,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(IfStmt n, Object arg) {
+ public Visitable visit(final IfStmt n, final Object arg) {
Expression condition = cloneNode(n.getCondition(), arg);
Statement elseStmt = cloneNode(n.getElseStmt(), arg);
Statement thenStmt = cloneNode(n.getThenStmt(), arg);
@@ -796,7 +796,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(WhileStmt n, Object arg) {
+ public Visitable visit(final WhileStmt n, final Object arg) {
Statement body = cloneNode(n.getBody(), arg);
Expression condition = cloneNode(n.getCondition(), arg);
Comment comment = cloneNode(n.getComment(), arg);
@@ -807,7 +807,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(ContinueStmt n, Object arg) {
+ public Visitable visit(final ContinueStmt n, final Object arg) {
SimpleName label = cloneNode(n.getLabel(), arg);
Comment comment = cloneNode(n.getComment(), arg);
ContinueStmt r = new ContinueStmt(n.getTokenRange().orElse(null), label);
@@ -817,7 +817,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(DoStmt n, Object arg) {
+ public Visitable visit(final DoStmt n, final Object arg) {
Statement body = cloneNode(n.getBody(), arg);
Expression condition = cloneNode(n.getCondition(), arg);
Comment comment = cloneNode(n.getComment(), arg);
@@ -828,7 +828,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(ForeachStmt n, Object arg) {
+ public Visitable visit(final ForeachStmt n, final Object arg) {
Statement body = cloneNode(n.getBody(), arg);
Expression iterable = cloneNode(n.getIterable(), arg);
VariableDeclarationExpr variable = cloneNode(n.getVariable(), arg);
@@ -840,7 +840,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(ForStmt n, Object arg) {
+ public Visitable visit(final ForStmt n, final Object arg) {
Statement body = cloneNode(n.getBody(), arg);
Expression compare = cloneNode(n.getCompare(), arg);
NodeList<Expression> initialization = cloneList(n.getInitialization(), arg);
@@ -853,7 +853,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(ThrowStmt n, Object arg) {
+ public Visitable visit(final ThrowStmt n, final Object arg) {
Expression expression = cloneNode(n.getExpression(), arg);
Comment comment = cloneNode(n.getComment(), arg);
ThrowStmt r = new ThrowStmt(n.getTokenRange().orElse(null), expression);
@@ -863,7 +863,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(SynchronizedStmt n, Object arg) {
+ public Visitable visit(final SynchronizedStmt n, final Object arg) {
BlockStmt body = cloneNode(n.getBody(), arg);
Expression expression = cloneNode(n.getExpression(), arg);
Comment comment = cloneNode(n.getComment(), arg);
@@ -874,7 +874,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(TryStmt n, Object arg) {
+ public Visitable visit(final TryStmt n, final Object arg) {
NodeList<CatchClause> catchClauses = cloneList(n.getCatchClauses(), arg);
BlockStmt finallyBlock = cloneNode(n.getFinallyBlock(), arg);
NodeList<VariableDeclarationExpr> resources = cloneList(n.getResources(), arg);
@@ -887,7 +887,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(CatchClause n, Object arg) {
+ public Visitable visit(final CatchClause n, final Object arg) {
BlockStmt body = cloneNode(n.getBody(), arg);
Parameter parameter = cloneNode(n.getParameter(), arg);
Comment comment = cloneNode(n.getComment(), arg);
@@ -898,7 +898,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(LambdaExpr n, Object arg) {
+ public Visitable visit(final LambdaExpr n, final Object arg) {
Statement body = cloneNode(n.getBody(), arg);
NodeList<Parameter> parameters = cloneList(n.getParameters(), arg);
Comment comment = cloneNode(n.getComment(), arg);
@@ -909,7 +909,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(MethodReferenceExpr n, Object arg) {
+ public Visitable visit(final MethodReferenceExpr n, final Object arg) {
Expression scope = cloneNode(n.getScope(), arg);
NodeList<Type> typeArguments = cloneList(n.getTypeArguments().orElse(null), arg);
Comment comment = cloneNode(n.getComment(), arg);
@@ -920,7 +920,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(TypeExpr n, Object arg) {
+ public Visitable visit(final TypeExpr n, final Object arg) {
Type type = cloneNode(n.getType(), arg);
Comment comment = cloneNode(n.getComment(), arg);
TypeExpr r = new TypeExpr(n.getTokenRange().orElse(null), type);
@@ -942,7 +942,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Node visit(ImportDeclaration n, Object arg) {
+ public Node visit(final ImportDeclaration n, final Object arg) {
Name name = cloneNode(n.getName(), arg);
Comment comment = cloneNode(n.getComment(), arg);
ImportDeclaration r = new ImportDeclaration(n.getTokenRange().orElse(null), name, n.isStatic(), n.isAsterisk());
@@ -952,7 +952,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(ModuleDeclaration n, Object arg) {
+ public Visitable visit(final ModuleDeclaration n, final Object arg) {
NodeList<AnnotationExpr> annotations = cloneList(n.getAnnotations(), arg);
NodeList<ModuleStmt> moduleStmts = cloneList(n.getModuleStmts(), arg);
Name name = cloneNode(n.getName(), arg);
@@ -964,7 +964,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(ModuleRequiresStmt n, Object arg) {
+ public Visitable visit(final ModuleRequiresStmt n, final Object arg) {
Name name = cloneNode(n.getName(), arg);
Comment comment = cloneNode(n.getComment(), arg);
ModuleRequiresStmt r = new ModuleRequiresStmt(n.getTokenRange().orElse(null), n.getModifiers(), name);
@@ -1005,7 +1005,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(ModuleExportsStmt n, Object arg) {
+ public Visitable visit(final ModuleExportsStmt n, final Object arg) {
NodeList<Name> moduleNames = cloneList(n.getModuleNames(), arg);
Name name = cloneNode(n.getName(), arg);
Comment comment = cloneNode(n.getComment(), arg);
@@ -1016,7 +1016,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(ModuleProvidesStmt n, Object arg) {
+ public Visitable visit(final ModuleProvidesStmt n, final Object arg) {
Type type = cloneNode(n.getType(), arg);
NodeList<Type> withTypes = cloneList(n.getWithTypes(), arg);
Comment comment = cloneNode(n.getComment(), arg);
@@ -1027,7 +1027,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(ModuleUsesStmt n, Object arg) {
+ public Visitable visit(final ModuleUsesStmt n, final Object arg) {
Type type = cloneNode(n.getType(), arg);
Comment comment = cloneNode(n.getComment(), arg);
ModuleUsesStmt r = new ModuleUsesStmt(n.getTokenRange().orElse(null), type);
@@ -1037,7 +1037,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(ModuleOpensStmt n, Object arg) {
+ public Visitable visit(final ModuleOpensStmt n, final Object arg) {
NodeList<Name> moduleNames = cloneList(n.getModuleNames(), arg);
Name name = cloneNode(n.getName(), arg);
Comment comment = cloneNode(n.getComment(), arg);
@@ -1048,7 +1048,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.CloneVisitorGenerator")
- public Visitable visit(UnparsableStmt n, Object arg) {
+ public Visitable visit(final UnparsableStmt n, final Object arg) {
Comment comment = cloneNode(n.getComment(), arg);
UnparsableStmt r = new UnparsableStmt(n.getTokenRange().orElse(null));
r.setComment(comment);
diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/EqualsVisitor.java b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/EqualsVisitor.java
index 1b95d7e..7aacffb 100644
--- a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/EqualsVisitor.java
+++ b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/EqualsVisitor.java
@@ -453,7 +453,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.EqualsVisitorGenerator")
- public Boolean visit(ArrayType n, Visitable arg) {
+ public Boolean visit(final ArrayType n, final Visitable arg) {
final ArrayType n2 = (ArrayType) arg;
if (!nodeEquals(n.getComponentType(), n2.getComponentType()))
return false;
@@ -466,7 +466,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.EqualsVisitorGenerator")
- public Boolean visit(ArrayCreationLevel n, Visitable arg) {
+ public Boolean visit(final ArrayCreationLevel n, final Visitable arg) {
final ArrayCreationLevel n2 = (ArrayCreationLevel) arg;
if (!nodesEquals(n.getAnnotations(), n2.getAnnotations()))
return false;
@@ -505,7 +505,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.EqualsVisitorGenerator")
- public Boolean visit(VoidType n, Visitable arg) {
+ public Boolean visit(final VoidType n, final Visitable arg) {
final VoidType n2 = (VoidType) arg;
if (!nodesEquals(n.getAnnotations(), n2.getAnnotations()))
return false;
@@ -826,7 +826,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.EqualsVisitorGenerator")
- public Boolean visit(SimpleName n, Visitable arg) {
+ public Boolean visit(final SimpleName n, final Visitable arg) {
final SimpleName n2 = (SimpleName) arg;
if (!objEquals(n.getIdentifier(), n2.getIdentifier()))
return false;
@@ -1208,7 +1208,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.EqualsVisitorGenerator")
- public Boolean visit(LambdaExpr n, Visitable arg) {
+ public Boolean visit(final LambdaExpr n, final Visitable arg) {
final LambdaExpr n2 = (LambdaExpr) arg;
if (!nodeEquals(n.getBody(), n2.getBody()))
return false;
@@ -1223,7 +1223,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.EqualsVisitorGenerator")
- public Boolean visit(MethodReferenceExpr n, Visitable arg) {
+ public Boolean visit(final MethodReferenceExpr n, final Visitable arg) {
final MethodReferenceExpr n2 = (MethodReferenceExpr) arg;
if (!objEquals(n.getIdentifier(), n2.getIdentifier()))
return false;
@@ -1238,7 +1238,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.EqualsVisitorGenerator")
- public Boolean visit(TypeExpr n, Visitable arg) {
+ public Boolean visit(final TypeExpr n, final Visitable arg) {
final TypeExpr n2 = (TypeExpr) arg;
if (!nodeEquals(n.getType(), n2.getType()))
return false;
@@ -1269,7 +1269,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.EqualsVisitorGenerator")
- public Boolean visit(ModuleDeclaration n, Visitable arg) {
+ public Boolean visit(final ModuleDeclaration n, final Visitable arg) {
final ModuleDeclaration n2 = (ModuleDeclaration) arg;
if (!nodesEquals(n.getAnnotations(), n2.getAnnotations()))
return false;
@@ -1286,7 +1286,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.EqualsVisitorGenerator")
- public Boolean visit(ModuleRequiresStmt n, Visitable arg) {
+ public Boolean visit(final ModuleRequiresStmt n, final Visitable arg) {
final ModuleRequiresStmt n2 = (ModuleRequiresStmt) arg;
if (!objEquals(n.getModifiers(), n2.getModifiers()))
return false;
@@ -1299,7 +1299,7 @@
@Override()
@Generated("com.github.javaparser.generator.core.visitor.EqualsVisitorGenerator")
- public Boolean visit(ModuleExportsStmt n, Visitable arg) {
+ public Boolean visit(final ModuleExportsStmt n, final Visitable arg) {
final ModuleExportsStmt n2 = (ModuleExportsStmt) arg;
if (!nodesEquals(n.getModuleNames(), n2.getModuleNames()))
return false;
@@ -1312,7 +1312,7 @@
@Override()
@Generated("com.github.javaparser.generator.core.visitor.EqualsVisitorGenerator")
- public Boolean visit(ModuleProvidesStmt n, Visitable arg) {
+ public Boolean visit(final ModuleProvidesStmt n, final Visitable arg) {
final ModuleProvidesStmt n2 = (ModuleProvidesStmt) arg;
if (!nodeEquals(n.getType(), n2.getType()))
return false;
@@ -1325,7 +1325,7 @@
@Override()
@Generated("com.github.javaparser.generator.core.visitor.EqualsVisitorGenerator")
- public Boolean visit(ModuleUsesStmt n, Visitable arg) {
+ public Boolean visit(final ModuleUsesStmt n, final Visitable arg) {
final ModuleUsesStmt n2 = (ModuleUsesStmt) arg;
if (!nodeEquals(n.getType(), n2.getType()))
return false;
@@ -1336,7 +1336,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.EqualsVisitorGenerator")
- public Boolean visit(ModuleOpensStmt n, Visitable arg) {
+ public Boolean visit(final ModuleOpensStmt n, final Visitable arg) {
final ModuleOpensStmt n2 = (ModuleOpensStmt) arg;
if (!nodesEquals(n.getModuleNames(), n2.getModuleNames()))
return false;
@@ -1349,7 +1349,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.EqualsVisitorGenerator")
- public Boolean visit(UnparsableStmt n, Visitable arg) {
+ public Boolean visit(final UnparsableStmt n, final Visitable arg) {
final UnparsableStmt n2 = (UnparsableStmt) arg;
if (!nodeEquals(n.getComment(), n2.getComment()))
return false;
diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/GenericListVisitorAdapter.java b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/GenericListVisitorAdapter.java
index afc5e22..0642591 100644
--- a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/GenericListVisitorAdapter.java
+++ b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/GenericListVisitorAdapter.java
@@ -45,7 +45,7 @@
public abstract class GenericListVisitorAdapter<R, A> implements GenericVisitor<List<R>, A> {
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(AnnotationDeclaration n, A arg) {
+ public List<R> visit(final AnnotationDeclaration n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -72,7 +72,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(AnnotationMemberDeclaration n, A arg) {
+ public List<R> visit(final AnnotationMemberDeclaration n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
if (n.getDefaultValue().isPresent()) {
@@ -104,7 +104,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(ArrayAccessExpr n, A arg) {
+ public List<R> visit(final ArrayAccessExpr n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -126,7 +126,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(ArrayCreationExpr n, A arg) {
+ public List<R> visit(final ArrayCreationExpr n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -153,7 +153,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(ArrayCreationLevel n, A arg) {
+ public List<R> visit(final ArrayCreationLevel n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -175,7 +175,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(ArrayInitializerExpr n, A arg) {
+ public List<R> visit(final ArrayInitializerExpr n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -192,7 +192,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(ArrayType n, A arg) {
+ public List<R> visit(final ArrayType n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -214,7 +214,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(AssertStmt n, A arg) {
+ public List<R> visit(final AssertStmt n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -236,7 +236,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(AssignExpr n, A arg) {
+ public List<R> visit(final AssignExpr n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -258,7 +258,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(BinaryExpr n, A arg) {
+ public List<R> visit(final BinaryExpr n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -280,7 +280,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(BlockComment n, A arg) {
+ public List<R> visit(final BlockComment n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
if (n.getComment().isPresent()) {
@@ -292,7 +292,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(BlockStmt n, A arg) {
+ public List<R> visit(final BlockStmt n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -309,7 +309,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(BooleanLiteralExpr n, A arg) {
+ public List<R> visit(final BooleanLiteralExpr n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
if (n.getComment().isPresent()) {
@@ -321,7 +321,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(BreakStmt n, A arg) {
+ public List<R> visit(final BreakStmt n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
if (n.getLabel().isPresent()) {
@@ -338,7 +338,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(CastExpr n, A arg) {
+ public List<R> visit(final CastExpr n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -360,7 +360,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(CatchClause n, A arg) {
+ public List<R> visit(final CatchClause n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -382,7 +382,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(CharLiteralExpr n, A arg) {
+ public List<R> visit(final CharLiteralExpr n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
if (n.getComment().isPresent()) {
@@ -394,7 +394,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(ClassExpr n, A arg) {
+ public List<R> visit(final ClassExpr n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -411,7 +411,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(ClassOrInterfaceDeclaration n, A arg) {
+ public List<R> visit(final ClassOrInterfaceDeclaration n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -453,7 +453,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(ClassOrInterfaceType n, A arg) {
+ public List<R> visit(final ClassOrInterfaceType n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -485,7 +485,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(CompilationUnit n, A arg) {
+ public List<R> visit(final CompilationUnit n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -517,7 +517,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(ConditionalExpr n, A arg) {
+ public List<R> visit(final ConditionalExpr n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -544,7 +544,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(ConstructorDeclaration n, A arg) {
+ public List<R> visit(final ConstructorDeclaration n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -586,7 +586,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(ContinueStmt n, A arg) {
+ public List<R> visit(final ContinueStmt n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
if (n.getLabel().isPresent()) {
@@ -603,7 +603,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(DoStmt n, A arg) {
+ public List<R> visit(final DoStmt n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -625,7 +625,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(DoubleLiteralExpr n, A arg) {
+ public List<R> visit(final DoubleLiteralExpr n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
if (n.getComment().isPresent()) {
@@ -637,7 +637,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(EmptyStmt n, A arg) {
+ public List<R> visit(final EmptyStmt n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
if (n.getComment().isPresent()) {
@@ -649,7 +649,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(EnclosedExpr n, A arg) {
+ public List<R> visit(final EnclosedExpr n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -666,7 +666,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(EnumConstantDeclaration n, A arg) {
+ public List<R> visit(final EnumConstantDeclaration n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -698,7 +698,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(EnumDeclaration n, A arg) {
+ public List<R> visit(final EnumDeclaration n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -735,7 +735,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(ExplicitConstructorInvocationStmt n, A arg) {
+ public List<R> visit(final ExplicitConstructorInvocationStmt n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -762,7 +762,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(ExpressionStmt n, A arg) {
+ public List<R> visit(final ExpressionStmt n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -779,7 +779,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(FieldAccessExpr n, A arg) {
+ public List<R> visit(final FieldAccessExpr n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -806,7 +806,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(FieldDeclaration n, A arg) {
+ public List<R> visit(final FieldDeclaration n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -828,7 +828,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(ForStmt n, A arg) {
+ public List<R> visit(final ForStmt n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -860,7 +860,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(ForeachStmt n, A arg) {
+ public List<R> visit(final ForeachStmt n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -887,7 +887,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(IfStmt n, A arg) {
+ public List<R> visit(final IfStmt n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -914,7 +914,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(ImportDeclaration n, A arg) {
+ public List<R> visit(final ImportDeclaration n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -931,7 +931,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(InitializerDeclaration n, A arg) {
+ public List<R> visit(final InitializerDeclaration n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -953,7 +953,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(InstanceOfExpr n, A arg) {
+ public List<R> visit(final InstanceOfExpr n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -975,7 +975,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(IntegerLiteralExpr n, A arg) {
+ public List<R> visit(final IntegerLiteralExpr n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
if (n.getComment().isPresent()) {
@@ -987,7 +987,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(IntersectionType n, A arg) {
+ public List<R> visit(final IntersectionType n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -1009,7 +1009,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(JavadocComment n, A arg) {
+ public List<R> visit(final JavadocComment n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
if (n.getComment().isPresent()) {
@@ -1021,7 +1021,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(LabeledStmt n, A arg) {
+ public List<R> visit(final LabeledStmt n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -1043,7 +1043,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(LambdaExpr n, A arg) {
+ public List<R> visit(final LambdaExpr n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -1065,7 +1065,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(LineComment n, A arg) {
+ public List<R> visit(final LineComment n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
if (n.getComment().isPresent()) {
@@ -1077,7 +1077,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(LocalClassDeclarationStmt n, A arg) {
+ public List<R> visit(final LocalClassDeclarationStmt n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -1094,7 +1094,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(LongLiteralExpr n, A arg) {
+ public List<R> visit(final LongLiteralExpr n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
if (n.getComment().isPresent()) {
@@ -1106,7 +1106,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(MarkerAnnotationExpr n, A arg) {
+ public List<R> visit(final MarkerAnnotationExpr n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -1123,7 +1123,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(MemberValuePair n, A arg) {
+ public List<R> visit(final MemberValuePair n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -1145,7 +1145,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(MethodCallExpr n, A arg) {
+ public List<R> visit(final MethodCallExpr n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -1177,7 +1177,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(MethodDeclaration n, A arg) {
+ public List<R> visit(final MethodDeclaration n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
if (n.getBody().isPresent()) {
@@ -1224,7 +1224,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(MethodReferenceExpr n, A arg) {
+ public List<R> visit(final MethodReferenceExpr n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -1246,7 +1246,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(NameExpr n, A arg) {
+ public List<R> visit(final NameExpr n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -1263,7 +1263,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(Name n, A arg) {
+ public List<R> visit(final Name n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -1285,7 +1285,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(NormalAnnotationExpr n, A arg) {
+ public List<R> visit(final NormalAnnotationExpr n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -1307,7 +1307,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(NullLiteralExpr n, A arg) {
+ public List<R> visit(final NullLiteralExpr n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
if (n.getComment().isPresent()) {
@@ -1319,7 +1319,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(ObjectCreationExpr n, A arg) {
+ public List<R> visit(final ObjectCreationExpr n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
if (n.getAnonymousClassBody().isPresent()) {
@@ -1356,7 +1356,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(PackageDeclaration n, A arg) {
+ public List<R> visit(final PackageDeclaration n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -1378,7 +1378,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(Parameter n, A arg) {
+ public List<R> visit(final Parameter n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -1410,7 +1410,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(PrimitiveType n, A arg) {
+ public List<R> visit(final PrimitiveType n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -1427,7 +1427,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(ReturnStmt n, A arg) {
+ public List<R> visit(final ReturnStmt n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
if (n.getExpression().isPresent()) {
@@ -1444,7 +1444,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(SimpleName n, A arg) {
+ public List<R> visit(final SimpleName n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
if (n.getComment().isPresent()) {
@@ -1456,7 +1456,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(SingleMemberAnnotationExpr n, A arg) {
+ public List<R> visit(final SingleMemberAnnotationExpr n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -1478,7 +1478,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(StringLiteralExpr n, A arg) {
+ public List<R> visit(final StringLiteralExpr n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
if (n.getComment().isPresent()) {
@@ -1490,7 +1490,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(SuperExpr n, A arg) {
+ public List<R> visit(final SuperExpr n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
if (n.getClassExpr().isPresent()) {
@@ -1507,7 +1507,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(SwitchEntryStmt n, A arg) {
+ public List<R> visit(final SwitchEntryStmt n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
if (n.getLabel().isPresent()) {
@@ -1529,7 +1529,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(SwitchStmt n, A arg) {
+ public List<R> visit(final SwitchStmt n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -1551,7 +1551,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(SynchronizedStmt n, A arg) {
+ public List<R> visit(final SynchronizedStmt n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -1573,7 +1573,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(ThisExpr n, A arg) {
+ public List<R> visit(final ThisExpr n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
if (n.getClassExpr().isPresent()) {
@@ -1590,7 +1590,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(ThrowStmt n, A arg) {
+ public List<R> visit(final ThrowStmt n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -1607,7 +1607,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(TryStmt n, A arg) {
+ public List<R> visit(final TryStmt n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -1639,7 +1639,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(TypeExpr n, A arg) {
+ public List<R> visit(final TypeExpr n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -1656,7 +1656,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(TypeParameter n, A arg) {
+ public List<R> visit(final TypeParameter n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -1683,7 +1683,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(UnaryExpr n, A arg) {
+ public List<R> visit(final UnaryExpr n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -1700,7 +1700,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(UnionType n, A arg) {
+ public List<R> visit(final UnionType n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -1722,7 +1722,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(UnknownType n, A arg) {
+ public List<R> visit(final UnknownType n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -1739,7 +1739,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(VariableDeclarationExpr n, A arg) {
+ public List<R> visit(final VariableDeclarationExpr n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -1761,7 +1761,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(VariableDeclarator n, A arg) {
+ public List<R> visit(final VariableDeclarator n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
if (n.getInitializer().isPresent()) {
@@ -1788,7 +1788,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(VoidType n, A arg) {
+ public List<R> visit(final VoidType n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -1805,7 +1805,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(WhileStmt n, A arg) {
+ public List<R> visit(final WhileStmt n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -1827,7 +1827,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(WildcardType n, A arg) {
+ public List<R> visit(final WildcardType n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
if (n.getExtendedType().isPresent()) {
@@ -1860,7 +1860,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(ModuleDeclaration n, A arg) {
+ public List<R> visit(final ModuleDeclaration n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -1888,7 +1888,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(ModuleExportsStmt n, A arg) {
+ public List<R> visit(final ModuleExportsStmt n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -1911,7 +1911,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(ModuleOpensStmt n, A arg) {
+ public List<R> visit(final ModuleOpensStmt n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -1934,7 +1934,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(ModuleProvidesStmt n, A arg) {
+ public List<R> visit(final ModuleProvidesStmt n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -1957,7 +1957,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(ModuleRequiresStmt n, A arg) {
+ public List<R> visit(final ModuleRequiresStmt n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -1975,7 +1975,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(ModuleUsesStmt n, A arg) {
+ public List<R> visit(final ModuleUsesStmt n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
{
@@ -1993,7 +1993,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.GenericListVisitorAdapterGenerator")
- public List<R> visit(UnparsableStmt n, A arg) {
+ public List<R> visit(final UnparsableStmt n, final A arg) {
List<R> result = new ArrayList<>();
List<R> tmp;
if (n.getComment().isPresent()) {
diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/GenericVisitorAdapter.java b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/GenericVisitorAdapter.java
index 68fcecc..0bc8ad6 100644
--- a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/GenericVisitorAdapter.java
+++ b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/GenericVisitorAdapter.java
@@ -1256,7 +1256,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.GenericVisitorAdapterGenerator")
- public R visit(SimpleName n, A arg) {
+ public R visit(final SimpleName n, final A arg) {
R result;
if (n.getComment().isPresent()) {
result = n.getComment().get().accept(this, arg);
@@ -1268,7 +1268,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.GenericVisitorAdapterGenerator")
- public R visit(ArrayType n, A arg) {
+ public R visit(final ArrayType n, final A arg) {
R result;
{
result = n.getComponentType().accept(this, arg);
@@ -1290,7 +1290,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.GenericVisitorAdapterGenerator")
- public R visit(ArrayCreationLevel n, A arg) {
+ public R visit(final ArrayCreationLevel n, final A arg) {
R result;
{
result = n.getAnnotations().accept(this, arg);
@@ -1749,7 +1749,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.GenericVisitorAdapterGenerator")
- public R visit(LambdaExpr n, A arg) {
+ public R visit(final LambdaExpr n, final A arg) {
R result;
{
result = n.getBody().accept(this, arg);
@@ -1771,7 +1771,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.GenericVisitorAdapterGenerator")
- public R visit(MethodReferenceExpr n, A arg) {
+ public R visit(final MethodReferenceExpr n, final A arg) {
R result;
{
result = n.getScope().accept(this, arg);
@@ -1793,7 +1793,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.GenericVisitorAdapterGenerator")
- public R visit(TypeExpr n, A arg) {
+ public R visit(final TypeExpr n, final A arg) {
R result;
{
result = n.getType().accept(this, arg);
@@ -1862,7 +1862,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.GenericVisitorAdapterGenerator")
- public R visit(ModuleDeclaration n, A arg) {
+ public R visit(final ModuleDeclaration n, final A arg) {
R result;
{
result = n.getAnnotations().accept(this, arg);
@@ -1889,7 +1889,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.GenericVisitorAdapterGenerator")
- public R visit(ModuleRequiresStmt n, A arg) {
+ public R visit(final ModuleRequiresStmt n, final A arg) {
R result;
{
result = n.getName().accept(this, arg);
@@ -1906,7 +1906,7 @@
@Override()
@Generated("com.github.javaparser.generator.core.visitor.GenericVisitorAdapterGenerator")
- public R visit(ModuleExportsStmt n, A arg) {
+ public R visit(final ModuleExportsStmt n, final A arg) {
R result;
{
result = n.getModuleNames().accept(this, arg);
@@ -1928,7 +1928,7 @@
@Override()
@Generated("com.github.javaparser.generator.core.visitor.GenericVisitorAdapterGenerator")
- public R visit(ModuleProvidesStmt n, A arg) {
+ public R visit(final ModuleProvidesStmt n, final A arg) {
R result;
{
result = n.getType().accept(this, arg);
@@ -1950,7 +1950,7 @@
@Override()
@Generated("com.github.javaparser.generator.core.visitor.GenericVisitorAdapterGenerator")
- public R visit(ModuleUsesStmt n, A arg) {
+ public R visit(final ModuleUsesStmt n, final A arg) {
R result;
{
result = n.getType().accept(this, arg);
@@ -1967,7 +1967,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.GenericVisitorAdapterGenerator")
- public R visit(ModuleOpensStmt n, A arg) {
+ public R visit(final ModuleOpensStmt n, final A arg) {
R result;
{
result = n.getModuleNames().accept(this, arg);
@@ -1989,7 +1989,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.GenericVisitorAdapterGenerator")
- public R visit(UnparsableStmt n, A arg) {
+ public R visit(final UnparsableStmt n, final A arg) {
R result;
if (n.getComment().isPresent()) {
result = n.getComment().get().accept(this, arg);
diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/HashCodeVisitor.java b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/HashCodeVisitor.java
index 782563c..c0736a6 100644
--- a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/HashCodeVisitor.java
+++ b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/HashCodeVisitor.java
@@ -48,277 +48,277 @@
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(AnnotationDeclaration n, Void arg) {
+ public Integer visit(final AnnotationDeclaration n, final Void arg) {
return (n.getMembers().accept(this, arg)) * 31 + (n.getModifiers().hashCode()) * 31 + (n.getName().accept(this, arg)) * 31 + (n.getAnnotations().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(AnnotationMemberDeclaration n, Void arg) {
+ public Integer visit(final AnnotationMemberDeclaration n, final Void arg) {
return (n.getDefaultValue().isPresent() ? n.getDefaultValue().get().accept(this, arg) : 0) * 31 + (n.getModifiers().hashCode()) * 31 + (n.getName().accept(this, arg)) * 31 + (n.getType().accept(this, arg)) * 31 + (n.getAnnotations().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(ArrayAccessExpr n, Void arg) {
+ public Integer visit(final ArrayAccessExpr n, final Void arg) {
return (n.getIndex().accept(this, arg)) * 31 + (n.getName().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(ArrayCreationExpr n, Void arg) {
+ public Integer visit(final ArrayCreationExpr n, final Void arg) {
return (n.getElementType().accept(this, arg)) * 31 + (n.getInitializer().isPresent() ? n.getInitializer().get().accept(this, arg) : 0) * 31 + (n.getLevels().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(ArrayCreationLevel n, Void arg) {
+ public Integer visit(final ArrayCreationLevel n, final Void arg) {
return (n.getAnnotations().accept(this, arg)) * 31 + (n.getDimension().isPresent() ? n.getDimension().get().accept(this, arg) : 0) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(ArrayInitializerExpr n, Void arg) {
+ public Integer visit(final ArrayInitializerExpr n, final Void arg) {
return (n.getValues().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(ArrayType n, Void arg) {
+ public Integer visit(final ArrayType n, final Void arg) {
return (n.getComponentType().accept(this, arg)) * 31 + (n.getAnnotations().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(AssertStmt n, Void arg) {
+ public Integer visit(final AssertStmt n, final Void arg) {
return (n.getCheck().accept(this, arg)) * 31 + (n.getMessage().isPresent() ? n.getMessage().get().accept(this, arg) : 0) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(AssignExpr n, Void arg) {
+ public Integer visit(final AssignExpr n, final Void arg) {
return (n.getOperator().hashCode()) * 31 + (n.getTarget().accept(this, arg)) * 31 + (n.getValue().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(BinaryExpr n, Void arg) {
+ public Integer visit(final BinaryExpr n, final Void arg) {
return (n.getLeft().accept(this, arg)) * 31 + (n.getOperator().hashCode()) * 31 + (n.getRight().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(BlockComment n, Void arg) {
+ public Integer visit(final BlockComment n, final Void arg) {
return (n.getContent().hashCode()) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(BlockStmt n, Void arg) {
+ public Integer visit(final BlockStmt n, final Void arg) {
return (n.getStatements().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(BooleanLiteralExpr n, Void arg) {
+ public Integer visit(final BooleanLiteralExpr n, final Void arg) {
return (n.getValue() ? 1 : 0) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(BreakStmt n, Void arg) {
+ public Integer visit(final BreakStmt n, final Void arg) {
return (n.getLabel().isPresent() ? n.getLabel().get().accept(this, arg) : 0) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(CastExpr n, Void arg) {
+ public Integer visit(final CastExpr n, final Void arg) {
return (n.getExpression().accept(this, arg)) * 31 + (n.getType().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(CatchClause n, Void arg) {
+ public Integer visit(final CatchClause n, final Void arg) {
return (n.getBody().accept(this, arg)) * 31 + (n.getParameter().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(CharLiteralExpr n, Void arg) {
+ public Integer visit(final CharLiteralExpr n, final Void arg) {
return (n.getValue().hashCode()) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(ClassExpr n, Void arg) {
+ public Integer visit(final ClassExpr n, final Void arg) {
return (n.getType().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(ClassOrInterfaceDeclaration n, Void arg) {
+ public Integer visit(final ClassOrInterfaceDeclaration n, final Void arg) {
return (n.getExtendedTypes().accept(this, arg)) * 31 + (n.getImplementedTypes().accept(this, arg)) * 31 + (n.isInterface() ? 1 : 0) * 31 + (n.getTypeParameters().accept(this, arg)) * 31 + (n.getMembers().accept(this, arg)) * 31 + (n.getModifiers().hashCode()) * 31 + (n.getName().accept(this, arg)) * 31 + (n.getAnnotations().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(ClassOrInterfaceType n, Void arg) {
+ public Integer visit(final ClassOrInterfaceType n, final Void arg) {
return (n.getName().accept(this, arg)) * 31 + (n.getScope().isPresent() ? n.getScope().get().accept(this, arg) : 0) * 31 + (n.getTypeArguments().isPresent() ? n.getTypeArguments().get().accept(this, arg) : 0) * 31 + (n.getAnnotations().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(CompilationUnit n, Void arg) {
+ public Integer visit(final CompilationUnit n, final Void arg) {
return (n.getImports().accept(this, arg)) * 31 + (n.getModule().isPresent() ? n.getModule().get().accept(this, arg) : 0) * 31 + (n.getPackageDeclaration().isPresent() ? n.getPackageDeclaration().get().accept(this, arg) : 0) * 31 + (n.getTypes().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(ConditionalExpr n, Void arg) {
+ public Integer visit(final ConditionalExpr n, final Void arg) {
return (n.getCondition().accept(this, arg)) * 31 + (n.getElseExpr().accept(this, arg)) * 31 + (n.getThenExpr().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(ConstructorDeclaration n, Void arg) {
+ public Integer visit(final ConstructorDeclaration n, final Void arg) {
return (n.getBody().accept(this, arg)) * 31 + (n.getModifiers().hashCode()) * 31 + (n.getName().accept(this, arg)) * 31 + (n.getParameters().accept(this, arg)) * 31 + (n.getThrownExceptions().accept(this, arg)) * 31 + (n.getTypeParameters().accept(this, arg)) * 31 + (n.getAnnotations().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(ContinueStmt n, Void arg) {
+ public Integer visit(final ContinueStmt n, final Void arg) {
return (n.getLabel().isPresent() ? n.getLabel().get().accept(this, arg) : 0) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(DoStmt n, Void arg) {
+ public Integer visit(final DoStmt n, final Void arg) {
return (n.getBody().accept(this, arg)) * 31 + (n.getCondition().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(DoubleLiteralExpr n, Void arg) {
+ public Integer visit(final DoubleLiteralExpr n, final Void arg) {
return (n.getValue().hashCode()) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(EmptyStmt n, Void arg) {
+ public Integer visit(final EmptyStmt n, final Void arg) {
return (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(EnclosedExpr n, Void arg) {
+ public Integer visit(final EnclosedExpr n, final Void arg) {
return (n.getInner().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(EnumConstantDeclaration n, Void arg) {
+ public Integer visit(final EnumConstantDeclaration n, final Void arg) {
return (n.getArguments().accept(this, arg)) * 31 + (n.getClassBody().accept(this, arg)) * 31 + (n.getName().accept(this, arg)) * 31 + (n.getAnnotations().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(EnumDeclaration n, Void arg) {
+ public Integer visit(final EnumDeclaration n, final Void arg) {
return (n.getEntries().accept(this, arg)) * 31 + (n.getImplementedTypes().accept(this, arg)) * 31 + (n.getMembers().accept(this, arg)) * 31 + (n.getModifiers().hashCode()) * 31 + (n.getName().accept(this, arg)) * 31 + (n.getAnnotations().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(ExplicitConstructorInvocationStmt n, Void arg) {
+ public Integer visit(final ExplicitConstructorInvocationStmt n, final Void arg) {
return (n.getArguments().accept(this, arg)) * 31 + (n.getExpression().isPresent() ? n.getExpression().get().accept(this, arg) : 0) * 31 + (n.isThis() ? 1 : 0) * 31 + (n.getTypeArguments().isPresent() ? n.getTypeArguments().get().accept(this, arg) : 0) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(ExpressionStmt n, Void arg) {
+ public Integer visit(final ExpressionStmt n, final Void arg) {
return (n.getExpression().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(FieldAccessExpr n, Void arg) {
+ public Integer visit(final FieldAccessExpr n, final Void arg) {
return (n.getName().accept(this, arg)) * 31 + (n.getScope().accept(this, arg)) * 31 + (n.getTypeArguments().isPresent() ? n.getTypeArguments().get().accept(this, arg) : 0) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(FieldDeclaration n, Void arg) {
+ public Integer visit(final FieldDeclaration n, final Void arg) {
return (n.getModifiers().hashCode()) * 31 + (n.getVariables().accept(this, arg)) * 31 + (n.getAnnotations().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(ForStmt n, Void arg) {
+ public Integer visit(final ForStmt n, final Void arg) {
return (n.getBody().accept(this, arg)) * 31 + (n.getCompare().isPresent() ? n.getCompare().get().accept(this, arg) : 0) * 31 + (n.getInitialization().accept(this, arg)) * 31 + (n.getUpdate().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(ForeachStmt n, Void arg) {
+ public Integer visit(final ForeachStmt n, final Void arg) {
return (n.getBody().accept(this, arg)) * 31 + (n.getIterable().accept(this, arg)) * 31 + (n.getVariable().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(IfStmt n, Void arg) {
+ public Integer visit(final IfStmt n, final Void arg) {
return (n.getCondition().accept(this, arg)) * 31 + (n.getElseStmt().isPresent() ? n.getElseStmt().get().accept(this, arg) : 0) * 31 + (n.getThenStmt().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(ImportDeclaration n, Void arg) {
+ public Integer visit(final ImportDeclaration n, final Void arg) {
return (n.isAsterisk() ? 1 : 0) * 31 + (n.isStatic() ? 1 : 0) * 31 + (n.getName().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(InitializerDeclaration n, Void arg) {
+ public Integer visit(final InitializerDeclaration n, final Void arg) {
return (n.getBody().accept(this, arg)) * 31 + (n.isStatic() ? 1 : 0) * 31 + (n.getAnnotations().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(InstanceOfExpr n, Void arg) {
+ public Integer visit(final InstanceOfExpr n, final Void arg) {
return (n.getExpression().accept(this, arg)) * 31 + (n.getType().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(IntegerLiteralExpr n, Void arg) {
+ public Integer visit(final IntegerLiteralExpr n, final Void arg) {
return (n.getValue().hashCode()) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(IntersectionType n, Void arg) {
+ public Integer visit(final IntersectionType n, final Void arg) {
return (n.getElements().accept(this, arg)) * 31 + (n.getAnnotations().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(JavadocComment n, Void arg) {
+ public Integer visit(final JavadocComment n, final Void arg) {
return (n.getContent().hashCode()) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(LabeledStmt n, Void arg) {
+ public Integer visit(final LabeledStmt n, final Void arg) {
return (n.getLabel().accept(this, arg)) * 31 + (n.getStatement().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(LambdaExpr n, Void arg) {
+ public Integer visit(final LambdaExpr n, final Void arg) {
return (n.getBody().accept(this, arg)) * 31 + (n.isEnclosingParameters() ? 1 : 0) * 31 + (n.getParameters().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(LineComment n, Void arg) {
+ public Integer visit(final LineComment n, final Void arg) {
return (n.getContent().hashCode()) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(LocalClassDeclarationStmt n, Void arg) {
+ public Integer visit(final LocalClassDeclarationStmt n, final Void arg) {
return (n.getClassDeclaration().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(LongLiteralExpr n, Void arg) {
+ public Integer visit(final LongLiteralExpr n, final Void arg) {
return (n.getValue().hashCode()) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(MarkerAnnotationExpr n, Void arg) {
+ public Integer visit(final MarkerAnnotationExpr n, final Void arg) {
return (n.getName().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(MemberValuePair n, Void arg) {
+ public Integer visit(final MemberValuePair n, final Void arg) {
return (n.getName().accept(this, arg)) * 31 + (n.getValue().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(MethodCallExpr n, Void arg) {
+ public Integer visit(final MethodCallExpr n, final Void arg) {
return (n.getArguments().accept(this, arg)) * 31 + (n.getName().accept(this, arg)) * 31 + (n.getScope().isPresent() ? n.getScope().get().accept(this, arg) : 0) * 31 + (n.getTypeArguments().isPresent() ? n.getTypeArguments().get().accept(this, arg) : 0) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(MethodDeclaration n, Void arg) {
+ public Integer visit(final MethodDeclaration n, final Void arg) {
return (n.getBody().isPresent() ? n.getBody().get().accept(this, arg) : 0) * 31 + (n.getType().accept(this, arg)) * 31 + (n.getModifiers().hashCode()) * 31 + (n.getName().accept(this, arg)) * 31 + (n.getParameters().accept(this, arg)) * 31 + (n.getThrownExceptions().accept(this, arg)) * 31 + (n.getTypeParameters().accept(this, arg)) * 31 + (n.getAnnotations().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(MethodReferenceExpr n, Void arg) {
+ public Integer visit(final MethodReferenceExpr n, final Void arg) {
return (n.getIdentifier().hashCode()) * 31 + (n.getScope().accept(this, arg)) * 31 + (n.getTypeArguments().isPresent() ? n.getTypeArguments().get().accept(this, arg) : 0) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(NameExpr n, Void arg) {
+ public Integer visit(final NameExpr n, final Void arg) {
return (n.getName().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(Name n, Void arg) {
+ public Integer visit(final Name n, final Void arg) {
return (n.getAnnotations().accept(this, arg)) * 31 + (n.getIdentifier().hashCode()) * 31 + (n.getQualifier().isPresent() ? n.getQualifier().get().accept(this, arg) : 0) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@@ -331,177 +331,177 @@
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(NormalAnnotationExpr n, Void arg) {
+ public Integer visit(final NormalAnnotationExpr n, final Void arg) {
return (n.getPairs().accept(this, arg)) * 31 + (n.getName().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(NullLiteralExpr n, Void arg) {
+ public Integer visit(final NullLiteralExpr n, final Void arg) {
return (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(ObjectCreationExpr n, Void arg) {
+ public Integer visit(final ObjectCreationExpr n, final Void arg) {
return (n.getAnonymousClassBody().isPresent() ? n.getAnonymousClassBody().get().accept(this, arg) : 0) * 31 + (n.getArguments().accept(this, arg)) * 31 + (n.getScope().isPresent() ? n.getScope().get().accept(this, arg) : 0) * 31 + (n.getType().accept(this, arg)) * 31 + (n.getTypeArguments().isPresent() ? n.getTypeArguments().get().accept(this, arg) : 0) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(PackageDeclaration n, Void arg) {
+ public Integer visit(final PackageDeclaration n, final Void arg) {
return (n.getAnnotations().accept(this, arg)) * 31 + (n.getName().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(Parameter n, Void arg) {
+ public Integer visit(final Parameter n, final Void arg) {
return (n.getAnnotations().accept(this, arg)) * 31 + (n.isVarArgs() ? 1 : 0) * 31 + (n.getModifiers().hashCode()) * 31 + (n.getName().accept(this, arg)) * 31 + (n.getType().accept(this, arg)) * 31 + (n.getVarArgsAnnotations().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(PrimitiveType n, Void arg) {
+ public Integer visit(final PrimitiveType n, final Void arg) {
return (n.getType().hashCode()) * 31 + (n.getAnnotations().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(ReturnStmt n, Void arg) {
+ public Integer visit(final ReturnStmt n, final Void arg) {
return (n.getExpression().isPresent() ? n.getExpression().get().accept(this, arg) : 0) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(SimpleName n, Void arg) {
+ public Integer visit(final SimpleName n, final Void arg) {
return (n.getIdentifier().hashCode()) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(SingleMemberAnnotationExpr n, Void arg) {
+ public Integer visit(final SingleMemberAnnotationExpr n, final Void arg) {
return (n.getMemberValue().accept(this, arg)) * 31 + (n.getName().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(StringLiteralExpr n, Void arg) {
+ public Integer visit(final StringLiteralExpr n, final Void arg) {
return (n.getValue().hashCode()) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(SuperExpr n, Void arg) {
+ public Integer visit(final SuperExpr n, final Void arg) {
return (n.getClassExpr().isPresent() ? n.getClassExpr().get().accept(this, arg) : 0) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(SwitchEntryStmt n, Void arg) {
+ public Integer visit(final SwitchEntryStmt n, final Void arg) {
return (n.getLabel().isPresent() ? n.getLabel().get().accept(this, arg) : 0) * 31 + (n.getStatements().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(SwitchStmt n, Void arg) {
+ public Integer visit(final SwitchStmt n, final Void arg) {
return (n.getEntries().accept(this, arg)) * 31 + (n.getSelector().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(SynchronizedStmt n, Void arg) {
+ public Integer visit(final SynchronizedStmt n, final Void arg) {
return (n.getBody().accept(this, arg)) * 31 + (n.getExpression().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(ThisExpr n, Void arg) {
+ public Integer visit(final ThisExpr n, final Void arg) {
return (n.getClassExpr().isPresent() ? n.getClassExpr().get().accept(this, arg) : 0) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(ThrowStmt n, Void arg) {
+ public Integer visit(final ThrowStmt n, final Void arg) {
return (n.getExpression().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(TryStmt n, Void arg) {
+ public Integer visit(final TryStmt n, final Void arg) {
return (n.getCatchClauses().accept(this, arg)) * 31 + (n.getFinallyBlock().isPresent() ? n.getFinallyBlock().get().accept(this, arg) : 0) * 31 + (n.getResources().accept(this, arg)) * 31 + (n.getTryBlock().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(TypeExpr n, Void arg) {
+ public Integer visit(final TypeExpr n, final Void arg) {
return (n.getType().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(TypeParameter n, Void arg) {
+ public Integer visit(final TypeParameter n, final Void arg) {
return (n.getName().accept(this, arg)) * 31 + (n.getTypeBound().accept(this, arg)) * 31 + (n.getAnnotations().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(UnaryExpr n, Void arg) {
+ public Integer visit(final UnaryExpr n, final Void arg) {
return (n.getExpression().accept(this, arg)) * 31 + (n.getOperator().hashCode()) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(UnionType n, Void arg) {
+ public Integer visit(final UnionType n, final Void arg) {
return (n.getElements().accept(this, arg)) * 31 + (n.getAnnotations().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(UnknownType n, Void arg) {
+ public Integer visit(final UnknownType n, final Void arg) {
return (n.getAnnotations().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(VariableDeclarationExpr n, Void arg) {
+ public Integer visit(final VariableDeclarationExpr n, final Void arg) {
return (n.getAnnotations().accept(this, arg)) * 31 + (n.getModifiers().hashCode()) * 31 + (n.getVariables().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(VariableDeclarator n, Void arg) {
+ public Integer visit(final VariableDeclarator n, final Void arg) {
return (n.getInitializer().isPresent() ? n.getInitializer().get().accept(this, arg) : 0) * 31 + (n.getName().accept(this, arg)) * 31 + (n.getType().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(VoidType n, Void arg) {
+ public Integer visit(final VoidType n, final Void arg) {
return (n.getAnnotations().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(WhileStmt n, Void arg) {
+ public Integer visit(final WhileStmt n, final Void arg) {
return (n.getBody().accept(this, arg)) * 31 + (n.getCondition().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(WildcardType n, Void arg) {
+ public Integer visit(final WildcardType n, final Void arg) {
return (n.getExtendedType().isPresent() ? n.getExtendedType().get().accept(this, arg) : 0) * 31 + (n.getSuperType().isPresent() ? n.getSuperType().get().accept(this, arg) : 0) * 31 + (n.getAnnotations().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(ModuleDeclaration n, Void arg) {
+ public Integer visit(final ModuleDeclaration n, final Void arg) {
return (n.getAnnotations().accept(this, arg)) * 31 + (n.isOpen() ? 1 : 0) * 31 + (n.getModuleStmts().accept(this, arg)) * 31 + (n.getName().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(ModuleRequiresStmt n, Void arg) {
+ public Integer visit(final ModuleRequiresStmt n, final Void arg) {
return (n.getModifiers().hashCode()) * 31 + (n.getName().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Override()
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(ModuleExportsStmt n, Void arg) {
+ public Integer visit(final ModuleExportsStmt n, final Void arg) {
return (n.getModuleNames().accept(this, arg)) * 31 + (n.getName().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Override()
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(ModuleProvidesStmt n, Void arg) {
+ public Integer visit(final ModuleProvidesStmt n, final Void arg) {
return (n.getType().accept(this, arg)) * 31 + (n.getWithTypes().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Override()
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(ModuleUsesStmt n, Void arg) {
+ public Integer visit(final ModuleUsesStmt n, final Void arg) {
return (n.getType().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Override
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(ModuleOpensStmt n, Void arg) {
+ public Integer visit(final ModuleOpensStmt n, final Void arg) {
return (n.getModuleNames().accept(this, arg)) * 31 + (n.getName().accept(this, arg)) * 31 + (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
@Override
@Generated("com.github.javaparser.generator.core.visitor.HashCodeVisitorGenerator")
- public Integer visit(UnparsableStmt n, Void arg) {
+ public Integer visit(final UnparsableStmt n, final Void arg) {
return (n.getComment().isPresent() ? n.getComment().get().accept(this, arg) : 0);
}
}
diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/ModifierVisitor.java b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/ModifierVisitor.java
index 8b66d21..b609fba 100644
--- a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/ModifierVisitor.java
+++ b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/ModifierVisitor.java
@@ -777,7 +777,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.ModifierVisitorGenerator")
- public Visitable visit(SimpleName n, A arg) {
+ public Visitable visit(final SimpleName n, final A arg) {
Comment comment = n.getComment().map(s -> (Comment) s.accept(this, arg)).orElse(null);
n.setComment(comment);
return n;
@@ -785,7 +785,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.ModifierVisitorGenerator")
- public Visitable visit(ArrayType n, A arg) {
+ public Visitable visit(final ArrayType n, final A arg) {
Type componentType = (Type) n.getComponentType().accept(this, arg);
NodeList<AnnotationExpr> annotations = modifyList(n.getAnnotations(), arg);
Comment comment = n.getComment().map(s -> (Comment) s.accept(this, arg)).orElse(null);
@@ -799,7 +799,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.ModifierVisitorGenerator")
- public Visitable visit(ArrayCreationLevel n, A arg) {
+ public Visitable visit(final ArrayCreationLevel n, final A arg) {
NodeList<AnnotationExpr> annotations = modifyList(n.getAnnotations(), arg);
Expression dimension = n.getDimension().map(s -> (Expression) s.accept(this, arg)).orElse(null);
Comment comment = n.getComment().map(s -> (Comment) s.accept(this, arg)).orElse(null);
@@ -1179,7 +1179,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.ModifierVisitorGenerator")
- public Visitable visit(ModuleDeclaration n, A arg) {
+ public Visitable visit(final ModuleDeclaration n, final A arg) {
NodeList<AnnotationExpr> annotations = modifyList(n.getAnnotations(), arg);
NodeList<ModuleStmt> moduleStmts = modifyList(n.getModuleStmts(), arg);
Name name = (Name) n.getName().accept(this, arg);
@@ -1194,7 +1194,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.ModifierVisitorGenerator")
- public Visitable visit(ModuleRequiresStmt n, A arg) {
+ public Visitable visit(final ModuleRequiresStmt n, final A arg) {
Name name = (Name) n.getName().accept(this, arg);
Comment comment = n.getComment().map(s -> (Comment) s.accept(this, arg)).orElse(null);
if (name == null)
@@ -1206,7 +1206,7 @@
@Override()
@Generated("com.github.javaparser.generator.core.visitor.ModifierVisitorGenerator")
- public Visitable visit(ModuleExportsStmt n, A arg) {
+ public Visitable visit(final ModuleExportsStmt n, final A arg) {
NodeList<Name> moduleNames = modifyList(n.getModuleNames(), arg);
Name name = (Name) n.getName().accept(this, arg);
Comment comment = n.getComment().map(s -> (Comment) s.accept(this, arg)).orElse(null);
@@ -1220,7 +1220,7 @@
@Override()
@Generated("com.github.javaparser.generator.core.visitor.ModifierVisitorGenerator")
- public Visitable visit(ModuleProvidesStmt n, A arg) {
+ public Visitable visit(final ModuleProvidesStmt n, final A arg) {
Type type = (Type) n.getType().accept(this, arg);
NodeList<Type> withTypes = modifyList(n.getWithTypes(), arg);
Comment comment = n.getComment().map(s -> (Comment) s.accept(this, arg)).orElse(null);
@@ -1234,7 +1234,7 @@
@Override()
@Generated("com.github.javaparser.generator.core.visitor.ModifierVisitorGenerator")
- public Visitable visit(ModuleUsesStmt n, A arg) {
+ public Visitable visit(final ModuleUsesStmt n, final A arg) {
Type type = (Type) n.getType().accept(this, arg);
Comment comment = n.getComment().map(s -> (Comment) s.accept(this, arg)).orElse(null);
if (type == null)
@@ -1246,7 +1246,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.ModifierVisitorGenerator")
- public Visitable visit(ModuleOpensStmt n, A arg) {
+ public Visitable visit(final ModuleOpensStmt n, final A arg) {
NodeList<Name> moduleNames = modifyList(n.getModuleNames(), arg);
Name name = (Name) n.getName().accept(this, arg);
Comment comment = n.getComment().map(s -> (Comment) s.accept(this, arg)).orElse(null);
@@ -1260,7 +1260,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.ModifierVisitorGenerator")
- public Visitable visit(UnparsableStmt n, A arg) {
+ public Visitable visit(final UnparsableStmt n, final A arg) {
Comment comment = n.getComment().map(s -> (Comment) s.accept(this, arg)).orElse(null);
n.setComment(comment);
return n;
diff --git a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/VoidVisitorAdapter.java b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/VoidVisitorAdapter.java
index d6fbfb4..db35866 100644
--- a/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/VoidVisitorAdapter.java
+++ b/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/VoidVisitorAdapter.java
@@ -483,13 +483,13 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.VoidVisitorAdapterGenerator")
- public void visit(SimpleName n, A arg) {
+ public void visit(final SimpleName n, final A arg) {
n.getComment().ifPresent(l -> l.accept(this, arg));
}
@Override
@Generated("com.github.javaparser.generator.core.visitor.VoidVisitorAdapterGenerator")
- public void visit(ArrayType n, A arg) {
+ public void visit(final ArrayType n, final A arg) {
n.getComponentType().accept(this, arg);
n.getAnnotations().forEach(p -> p.accept(this, arg));
n.getComment().ifPresent(l -> l.accept(this, arg));
@@ -497,7 +497,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.VoidVisitorAdapterGenerator")
- public void visit(ArrayCreationLevel n, A arg) {
+ public void visit(final ArrayCreationLevel n, final A arg) {
n.getAnnotations().forEach(p -> p.accept(this, arg));
n.getDimension().ifPresent(l -> l.accept(this, arg));
n.getComment().ifPresent(l -> l.accept(this, arg));
@@ -668,7 +668,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.VoidVisitorAdapterGenerator")
- public void visit(LambdaExpr n, final A arg) {
+ public void visit(final LambdaExpr n, final A arg) {
n.getBody().accept(this, arg);
n.getParameters().forEach(p -> p.accept(this, arg));
n.getComment().ifPresent(l -> l.accept(this, arg));
@@ -676,7 +676,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.VoidVisitorAdapterGenerator")
- public void visit(MethodReferenceExpr n, final A arg) {
+ public void visit(final MethodReferenceExpr n, final A arg) {
n.getScope().accept(this, arg);
n.getTypeArguments().ifPresent(l -> l.forEach(v -> v.accept(this, arg)));
n.getComment().ifPresent(l -> l.accept(this, arg));
@@ -684,7 +684,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.VoidVisitorAdapterGenerator")
- public void visit(TypeExpr n, final A arg) {
+ public void visit(final TypeExpr n, final A arg) {
n.getType().accept(this, arg);
n.getComment().ifPresent(l -> l.accept(this, arg));
}
@@ -704,7 +704,7 @@
}
@Generated("com.github.javaparser.generator.core.visitor.VoidVisitorAdapterGenerator")
- public void visit(ModuleDeclaration n, A arg) {
+ public void visit(final ModuleDeclaration n, final A arg) {
n.getAnnotations().forEach(p -> p.accept(this, arg));
n.getModuleStmts().forEach(p -> p.accept(this, arg));
n.getName().accept(this, arg);
@@ -712,14 +712,14 @@
}
@Generated("com.github.javaparser.generator.core.visitor.VoidVisitorAdapterGenerator")
- public void visit(ModuleRequiresStmt n, A arg) {
+ public void visit(final ModuleRequiresStmt n, final A arg) {
n.getName().accept(this, arg);
n.getComment().ifPresent(l -> l.accept(this, arg));
}
@Override
@Generated("com.github.javaparser.generator.core.visitor.VoidVisitorAdapterGenerator")
- public void visit(ModuleExportsStmt n, A arg) {
+ public void visit(final ModuleExportsStmt n, final A arg) {
n.getModuleNames().forEach(p -> p.accept(this, arg));
n.getName().accept(this, arg);
n.getComment().ifPresent(l -> l.accept(this, arg));
@@ -727,7 +727,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.VoidVisitorAdapterGenerator")
- public void visit(ModuleProvidesStmt n, A arg) {
+ public void visit(final ModuleProvidesStmt n, final A arg) {
n.getType().accept(this, arg);
n.getWithTypes().forEach(p -> p.accept(this, arg));
n.getComment().ifPresent(l -> l.accept(this, arg));
@@ -735,14 +735,14 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.VoidVisitorAdapterGenerator")
- public void visit(ModuleUsesStmt n, A arg) {
+ public void visit(final ModuleUsesStmt n, final A arg) {
n.getType().accept(this, arg);
n.getComment().ifPresent(l -> l.accept(this, arg));
}
@Override
@Generated("com.github.javaparser.generator.core.visitor.VoidVisitorAdapterGenerator")
- public void visit(ModuleOpensStmt n, A arg) {
+ public void visit(final ModuleOpensStmt n, final A arg) {
n.getModuleNames().forEach(p -> p.accept(this, arg));
n.getName().accept(this, arg);
n.getComment().ifPresent(l -> l.accept(this, arg));
@@ -750,7 +750,7 @@
@Override
@Generated("com.github.javaparser.generator.core.visitor.VoidVisitorAdapterGenerator")
- public void visit(UnparsableStmt n, A arg) {
+ public void visit(final UnparsableStmt n, final A arg) {
n.getComment().ifPresent(l -> l.accept(this, arg));
}
}