Class JavaParserDecoratedVisitor
- java.lang.Object
-
- net.sourceforge.pmd.lang.java.ast.JavaParserDecoratedVisitor
-
- All Implemented Interfaces:
JavaParserVisitor
@Deprecated public class JavaParserDecoratedVisitor extends Object implements JavaParserVisitor
Deprecated.Visitor decorators are deprecated because they lead to fragile code.External wrapper for a visitor decorator. This one drives the AST visit, delegating to the base controlless visitor given in the constructor. Add decorators using thedecorateWith(JavaParserVisitorDecorator)
.Important! This modified decorator pattern compels you to use the data object as the accumulator for your result! The
visit
methods or your decorators and base visitors must only perform side effects on this object, their return values will be ignored.- Since:
- 6.0.0
- Author:
- Clément Fournier
-
-
Constructor Summary
Constructors Constructor Description JavaParserDecoratedVisitor(JavaParserControllessVisitor baseVisitor)
Deprecated.Creates a decorated visitor using the parameter as the base visitor.
-
Method Summary
-
-
-
Constructor Detail
-
JavaParserDecoratedVisitor
public JavaParserDecoratedVisitor(JavaParserControllessVisitor baseVisitor)
Deprecated.Creates a decorated visitor using the parameter as the base visitor. Add decorators using thedecorateWith(JavaParserVisitorDecorator)
method.- Parameters:
baseVisitor
- The base visitor
-
-
Method Detail
-
decorateWith
public void decorateWith(JavaParserVisitorDecorator decorator)
Deprecated.Adds a decorator to this decorated visitor.- Parameters:
decorator
- The decorator to add
-
visit
public Object visit(JavaNode node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTExtendsList node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTClassOrInterfaceDeclaration node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTImplementsList node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTTypeParameters node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTMemberSelector node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTTypeParameter node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTTypeBound node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTClassOrInterfaceBody node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTClassOrInterfaceBodyDeclaration node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTEnumBody node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTEnumConstant node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTReferenceType node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTClassOrInterfaceType node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTTypeArguments node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTTypeArgument node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTWildcardBounds node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTAnnotation node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTNormalAnnotation node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTMarkerAnnotation node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTSingleMemberAnnotation node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTMemberValuePairs node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTMemberValuePair node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTMemberValue node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTMemberValueArrayInitializer node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTAnnotationTypeDeclaration node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTAnnotationTypeBody node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTAnnotationTypeMemberDeclaration node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTAnnotationMethodDeclaration node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTDefaultValue node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
@Deprecated public Object visit(ASTRUNSIGNEDSHIFT node, Object data)
Deprecated.Will be removed in 7.0.0. UseASTShiftExpression.getOperator()
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
@Deprecated public Object visit(ASTRSIGNEDSHIFT node, Object data)
Deprecated.Will be removed in 7.0.0. UseASTShiftExpression.getOperator()
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTCompilationUnit node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTEnumDeclaration node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTAssertStatement node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTPackageDeclaration node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTImportDeclaration node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTTypeDeclaration node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTFieldDeclaration node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTVariableDeclarator node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTVariableDeclaratorId node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTVariableInitializer node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTArrayInitializer node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTMethodDeclaration node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTMethodDeclarator node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTFormalParameters node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTFormalParameter node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTConstructorDeclaration node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTExplicitConstructorInvocation node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTInitializer node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTType node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTPrimitiveType node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTResultType node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTName node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTNameList node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTExpression node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTAssignmentOperator node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTConditionalExpression node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTConditionalOrExpression node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTConditionalAndExpression node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTInclusiveOrExpression node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTExclusiveOrExpression node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTAndExpression node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTEqualityExpression node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTInstanceOfExpression node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTRelationalExpression node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTShiftExpression node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTAdditiveExpression node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTMultiplicativeExpression node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTUnaryExpression node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTPreIncrementExpression node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTPreDecrementExpression node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTUnaryExpressionNotPlusMinus node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTPostfixExpression node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTCastExpression node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTPrimaryExpression node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTPrimaryPrefix node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTPrimarySuffix node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTLiteral node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTBooleanLiteral node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTNullLiteral node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTArguments node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTArgumentList node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTAllocationExpression node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTArrayDimsAndInits node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTStatement node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTLabeledStatement node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTBlock node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTBlockStatement node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTLocalVariableDeclaration node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTEmptyStatement node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTStatementExpression node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTSwitchStatement node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTSwitchLabel node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTIfStatement node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTWhileStatement node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTDoStatement node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTForStatement node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTForInit node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTStatementExpressionList node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTForUpdate node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTBreakStatement node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTContinueStatement node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTReturnStatement node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTThrowStatement node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTSynchronizedStatement node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTTryStatement node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTResourceSpecification node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTResources node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTResource node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTFinallyStatement node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTCatchStatement node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTLambdaExpression node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTMethodReference node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTModuleDeclaration node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTModuleDirective node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTModuleName node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTSwitchExpression node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTSwitchLabeledBlock node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTSwitchLabeledExpression node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTSwitchLabeledThrowStatement node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public Object visit(ASTYieldStatement node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
@Experimental public Object visit(ASTTypeTestPattern node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
@Experimental public Object visit(ASTRecordDeclaration node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
@Experimental public Object visit(ASTRecordComponentList node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
@Experimental public Object visit(ASTRecordComponent node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
@Experimental public Object visit(ASTRecordBody node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
@Experimental public Object visit(ASTRecordConstructorDeclaration node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
-
-