Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
org.walkmod.checkstyle.visitors.AbstractCheckStyleRule Maven / Gradle / Ivy
package org.walkmod.checkstyle.visitors;
import org.walkmod.javalang.ast.BlockComment;
import org.walkmod.javalang.ast.CompilationUnit;
import org.walkmod.javalang.ast.ImportDeclaration;
import org.walkmod.javalang.ast.LineComment;
import org.walkmod.javalang.ast.PackageDeclaration;
import org.walkmod.javalang.ast.TypeParameter;
import org.walkmod.javalang.ast.body.AnnotationDeclaration;
import org.walkmod.javalang.ast.body.AnnotationMemberDeclaration;
import org.walkmod.javalang.ast.body.ClassOrInterfaceDeclaration;
import org.walkmod.javalang.ast.body.ConstructorDeclaration;
import org.walkmod.javalang.ast.body.EmptyMemberDeclaration;
import org.walkmod.javalang.ast.body.EmptyTypeDeclaration;
import org.walkmod.javalang.ast.body.EnumConstantDeclaration;
import org.walkmod.javalang.ast.body.EnumDeclaration;
import org.walkmod.javalang.ast.body.FieldDeclaration;
import org.walkmod.javalang.ast.body.InitializerDeclaration;
import org.walkmod.javalang.ast.body.JavadocComment;
import org.walkmod.javalang.ast.body.MethodDeclaration;
import org.walkmod.javalang.ast.body.MultiTypeParameter;
import org.walkmod.javalang.ast.body.Parameter;
import org.walkmod.javalang.ast.body.VariableDeclarator;
import org.walkmod.javalang.ast.body.VariableDeclaratorId;
import org.walkmod.javalang.ast.expr.ArrayAccessExpr;
import org.walkmod.javalang.ast.expr.ArrayCreationExpr;
import org.walkmod.javalang.ast.expr.ArrayInitializerExpr;
import org.walkmod.javalang.ast.expr.AssignExpr;
import org.walkmod.javalang.ast.expr.BinaryExpr;
import org.walkmod.javalang.ast.expr.BooleanLiteralExpr;
import org.walkmod.javalang.ast.expr.CastExpr;
import org.walkmod.javalang.ast.expr.CharLiteralExpr;
import org.walkmod.javalang.ast.expr.ClassExpr;
import org.walkmod.javalang.ast.expr.ConditionalExpr;
import org.walkmod.javalang.ast.expr.DoubleLiteralExpr;
import org.walkmod.javalang.ast.expr.EnclosedExpr;
import org.walkmod.javalang.ast.expr.FieldAccessExpr;
import org.walkmod.javalang.ast.expr.InstanceOfExpr;
import org.walkmod.javalang.ast.expr.IntegerLiteralExpr;
import org.walkmod.javalang.ast.expr.IntegerLiteralMinValueExpr;
import org.walkmod.javalang.ast.expr.LambdaExpr;
import org.walkmod.javalang.ast.expr.LongLiteralExpr;
import org.walkmod.javalang.ast.expr.LongLiteralMinValueExpr;
import org.walkmod.javalang.ast.expr.MarkerAnnotationExpr;
import org.walkmod.javalang.ast.expr.MemberValuePair;
import org.walkmod.javalang.ast.expr.MethodCallExpr;
import org.walkmod.javalang.ast.expr.MethodReferenceExpr;
import org.walkmod.javalang.ast.expr.NameExpr;
import org.walkmod.javalang.ast.expr.NormalAnnotationExpr;
import org.walkmod.javalang.ast.expr.NullLiteralExpr;
import org.walkmod.javalang.ast.expr.ObjectCreationExpr;
import org.walkmod.javalang.ast.expr.QualifiedNameExpr;
import org.walkmod.javalang.ast.expr.SingleMemberAnnotationExpr;
import org.walkmod.javalang.ast.expr.StringLiteralExpr;
import org.walkmod.javalang.ast.expr.SuperExpr;
import org.walkmod.javalang.ast.expr.ThisExpr;
import org.walkmod.javalang.ast.expr.TypeExpr;
import org.walkmod.javalang.ast.expr.UnaryExpr;
import org.walkmod.javalang.ast.expr.VariableDeclarationExpr;
import org.walkmod.javalang.ast.stmt.AssertStmt;
import org.walkmod.javalang.ast.stmt.BlockStmt;
import org.walkmod.javalang.ast.stmt.BreakStmt;
import org.walkmod.javalang.ast.stmt.CatchClause;
import org.walkmod.javalang.ast.stmt.ContinueStmt;
import org.walkmod.javalang.ast.stmt.DoStmt;
import org.walkmod.javalang.ast.stmt.EmptyStmt;
import org.walkmod.javalang.ast.stmt.ExplicitConstructorInvocationStmt;
import org.walkmod.javalang.ast.stmt.ExpressionStmt;
import org.walkmod.javalang.ast.stmt.ForStmt;
import org.walkmod.javalang.ast.stmt.ForeachStmt;
import org.walkmod.javalang.ast.stmt.IfStmt;
import org.walkmod.javalang.ast.stmt.LabeledStmt;
import org.walkmod.javalang.ast.stmt.ReturnStmt;
import org.walkmod.javalang.ast.stmt.SwitchEntryStmt;
import org.walkmod.javalang.ast.stmt.SwitchStmt;
import org.walkmod.javalang.ast.stmt.SynchronizedStmt;
import org.walkmod.javalang.ast.stmt.ThrowStmt;
import org.walkmod.javalang.ast.stmt.TryStmt;
import org.walkmod.javalang.ast.stmt.TypeDeclarationStmt;
import org.walkmod.javalang.ast.stmt.WhileStmt;
import org.walkmod.javalang.ast.type.ClassOrInterfaceType;
import org.walkmod.javalang.ast.type.IntersectionType;
import org.walkmod.javalang.ast.type.PrimitiveType;
import org.walkmod.javalang.ast.type.ReferenceType;
import org.walkmod.javalang.ast.type.VoidType;
import org.walkmod.javalang.ast.type.WildcardType;
import org.walkmod.javalang.visitors.VoidVisitorAdapter;
public class AbstractCheckStyleRule extends VoidVisitorAdapter {
private boolean visitChildren = true;
public void visit(CompilationUnit n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(PackageDeclaration n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(ImportDeclaration n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(TypeParameter n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(LineComment n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(BlockComment n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(ClassOrInterfaceDeclaration n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(EnumDeclaration n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(EmptyTypeDeclaration n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(EnumConstantDeclaration n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(AnnotationDeclaration n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(AnnotationMemberDeclaration n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(FieldDeclaration n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(VariableDeclarator n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(VariableDeclaratorId n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(ConstructorDeclaration n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(MethodDeclaration n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(Parameter n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(EmptyMemberDeclaration n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(InitializerDeclaration n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(JavadocComment n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(ClassOrInterfaceType n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(PrimitiveType n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(ReferenceType n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(VoidType n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(WildcardType n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(ArrayAccessExpr n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(ArrayCreationExpr n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(ArrayInitializerExpr n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(AssignExpr n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(BinaryExpr n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(CastExpr n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(ClassExpr n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(ConditionalExpr n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(EnclosedExpr n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(FieldAccessExpr n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(InstanceOfExpr n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(StringLiteralExpr n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(IntegerLiteralExpr n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(LongLiteralExpr n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(IntegerLiteralMinValueExpr n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(LongLiteralMinValueExpr n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(CharLiteralExpr n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(DoubleLiteralExpr n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(BooleanLiteralExpr n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(NullLiteralExpr n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(MethodCallExpr n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(NameExpr n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(ObjectCreationExpr n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(QualifiedNameExpr n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(ThisExpr n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(SuperExpr n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(UnaryExpr n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(VariableDeclarationExpr n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(MarkerAnnotationExpr n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(SingleMemberAnnotationExpr n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(NormalAnnotationExpr n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(MemberValuePair n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(ExplicitConstructorInvocationStmt n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(TypeDeclarationStmt n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(AssertStmt n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(BlockStmt n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(LabeledStmt n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(EmptyStmt n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(ExpressionStmt n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(SwitchStmt n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(SwitchEntryStmt n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(BreakStmt n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(ReturnStmt n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(IfStmt n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(WhileStmt n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(ContinueStmt n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(DoStmt n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(ForeachStmt n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(ForStmt n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(ThrowStmt n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(SynchronizedStmt n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(TryStmt n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(CatchClause n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(MultiTypeParameter n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(LambdaExpr n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(MethodReferenceExpr n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(TypeExpr n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visit(IntersectionType n, A arg) {
if (visitChildren) {
super.visit(n, arg);
}
}
public void visitChildren(boolean visitChildren) {
this.visitChildren = visitChildren;
}
}