Class AbstractJavaRule
- java.lang.Object
-
- net.sourceforge.pmd.properties.AbstractPropertySource
-
- net.sourceforge.pmd.lang.rule.AbstractRule
-
- net.sourceforge.pmd.lang.java.rule.AbstractJavaRule
-
- All Implemented Interfaces:
JavaParserVisitor
,net.sourceforge.pmd.lang.rule.ImmutableLanguage
,net.sourceforge.pmd.properties.PropertySource
,net.sourceforge.pmd.Rule
- Direct Known Subclasses:
AbstractCommentRule
,AbstractIgnoredAnnotationRule
,AbstractInefficientZeroCheck
,AbstractJavaMetricsRule
,AbstractJUnitRule
,AbstractOptimizationRule
,AbstractPoorMethodCall
,AbstractStatisticalJavaRule
,AbstractSunSecureRule
,AccessorClassGenerationRule
,AccessorMethodGenerationRule
,AppendCharacterWithCharRule
,AssignmentInOperandRule
,AssignmentToNonFinalStaticRule
,AvoidBranchingStatementAsLastInLoopRule
,AvoidCallingFinalizeRule
,AvoidCatchingThrowableRule
,AvoidDeeplyNestedIfStmtsRule
,AvoidDollarSignsRule
,AvoidDuplicateLiteralsRule
,AvoidFieldNameMatchingMethodNameRule
,AvoidFieldNameMatchingTypeNameRule
,AvoidMultipleUnaryOperatorsRule
,AvoidReassigningParametersRule
,AvoidUsingHardCodedIPRule
,AvoidUsingOctalValuesRule
,BigIntegerInstantiationRule
,BooleanInstantiationRule
,BrokenNullCheckRule
,CheckResultSetRule
,CheckSkipResultRule
,ClassNamingConventionsRule
,CloneMethodMustImplementCloneableRule
,CloseResourceRule
,CompareObjectsWithEqualsRule
,ConfusingTernaryRule
,ConsecutiveAppendsShouldReuseRule
,ConsecutiveLiteralAppendsRule
,ConstructorCallsOverridableMethodRule
,CouplingBetweenObjectsRule
,DataflowAnomalyAnalysisRule
,DontImportJavaLangRule
,DontImportSunRule
,DoubleCheckedLockingRule
,DuplicateImportsRule
,ExceptionAsFlowControlRule
,FieldDeclarationsShouldBeAtStartOfClassRule
,FieldNamingConventionsRule
,ForLoopCanBeForeachRule
,FormalParameterNamingConventionsRule
,GenericClassCounterRule
,GenericLiteralCheckerRule
,GodClassRule
,GuardLogStatementRule
,HardCodedCryptoKeyRule
,IdempotentOperationsRule
,IdenticalCatchBranchesRule
,ImportFromSamePackageRule
,InefficientStringBufferingRule
,InsecureCryptoIvRule
,InsufficientStringBufferDeclarationRule
,InvalidLogMessageFormatRule
,JavaDFAGraphRule
,LawOfDemeterRule
,LocalVariableNamingConventionsRule
,LooseCouplingRule
,LoosePackageCouplingRule
,MethodNamingConventionsRule
,MethodWithSameNameAsEnclosingClassRule
,MissingOverrideRule
,MoreThanOneLoggerRule
,NonThreadSafeSingletonRule
,NullAssignmentRule
,OnlyOneReturnRule
,OverrideBothEqualsAndHashcodeRule
,PositionalIteratorRule
,PrematureDeclarationRule
,PreserveStackTraceRule
,RedundantFieldInitializerRule
,SignatureDeclareThrowsExceptionRule
,SimplifyBooleanReturnsRule
,SingleMethodSingletonRule
,SingletonClassReturningNewInstanceRule
,StdCyclomaticComplexityRule
,StringConcatenationRule
,StringInstantiationRule
,StringToStringRule
,SuspiciousHashcodeMethodNameRule
,SuspiciousOctalEscapeRule
,SymbolTableTestRule
,TooManyFieldsRule
,UnnecessaryAnnotationValueElementRule
,UnnecessaryCaseChangeRule
,UnnecessaryCastRule
,UnnecessaryConversionTemporaryRule
,UnnecessaryFullyQualifiedNameRule
,UnnecessaryLocalBeforeReturnRule
,UnnecessaryModifierRule
,UnnecessaryReturnRule
,UnnecessaryWrapperObjectCreationRule
,UnsynchronizedStaticFormatterRule
,UnusedFormalParameterRule
,UnusedImportsRule
,UnusedLocalVariableRule
,UselessAssignment
,UselessOperationOnImmutableRule
,UselessOverridingMethodRule
,UselessStringValueOfRule
,UseStringBufferForStringAppendsRule
,UseStringBufferLengthRule
,VariableNamingConventionsRule
public abstract class AbstractJavaRule extends net.sourceforge.pmd.lang.rule.AbstractRule implements JavaParserVisitor, net.sourceforge.pmd.lang.rule.ImmutableLanguage
-
-
Constructor Summary
Constructors Constructor Description AbstractJavaRule()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
apply(java.util.List<? extends net.sourceforge.pmd.lang.ast.Node> nodes, net.sourceforge.pmd.RuleContext ctx)
protected java.lang.String
getDeclaringType(net.sourceforge.pmd.lang.ast.Node node)
Deprecated.This method just returns the type name as a string which doesn't leverage any type resolution.static boolean
importsPackage(ASTCompilationUnit node, java.lang.String packageName)
static boolean
isQualifiedName(net.sourceforge.pmd.lang.ast.Node node)
protected boolean
isSuppressed(net.sourceforge.pmd.lang.ast.Node node)
Deprecated.Not useful, and suppression should happen transparently to rule implementations.java.lang.Object
visit(ASTAdditiveExpression node, java.lang.Object data)
java.lang.Object
visit(ASTAllocationExpression node, java.lang.Object data)
java.lang.Object
visit(ASTAndExpression node, java.lang.Object data)
java.lang.Object
visit(ASTAnnotationMethodDeclaration node, java.lang.Object data)
java.lang.Object
visit(ASTAnnotation node, java.lang.Object data)
java.lang.Object
visit(ASTAnnotationTypeBody node, java.lang.Object data)
java.lang.Object
visit(ASTAnnotationTypeDeclaration node, java.lang.Object data)
java.lang.Object
visit(ASTAnnotationTypeMemberDeclaration node, java.lang.Object data)
java.lang.Object
visit(ASTArgumentList node, java.lang.Object data)
java.lang.Object
visit(ASTArguments node, java.lang.Object data)
java.lang.Object
visit(ASTArrayDimsAndInits node, java.lang.Object data)
java.lang.Object
visit(ASTArrayInitializer node, java.lang.Object data)
java.lang.Object
visit(ASTAssertStatement node, java.lang.Object data)
java.lang.Object
visit(ASTAssignmentOperator node, java.lang.Object data)
java.lang.Object
visit(ASTBlock node, java.lang.Object data)
java.lang.Object
visit(ASTBlockStatement node, java.lang.Object data)
java.lang.Object
visit(ASTBooleanLiteral node, java.lang.Object data)
java.lang.Object
visit(ASTBreakStatement node, java.lang.Object data)
java.lang.Object
visit(ASTCastExpression node, java.lang.Object data)
java.lang.Object
visit(ASTCatchStatement node, java.lang.Object data)
java.lang.Object
visit(ASTClassOrInterfaceBodyDeclaration node, java.lang.Object data)
java.lang.Object
visit(ASTClassOrInterfaceBody node, java.lang.Object data)
java.lang.Object
visit(ASTClassOrInterfaceDeclaration node, java.lang.Object data)
java.lang.Object
visit(ASTClassOrInterfaceType node, java.lang.Object data)
java.lang.Object
visit(ASTCompilationUnit node, java.lang.Object data)
java.lang.Object
visit(ASTConditionalAndExpression node, java.lang.Object data)
java.lang.Object
visit(ASTConditionalExpression node, java.lang.Object data)
java.lang.Object
visit(ASTConditionalOrExpression node, java.lang.Object data)
java.lang.Object
visit(ASTConstructorDeclaration node, java.lang.Object data)
java.lang.Object
visit(ASTContinueStatement node, java.lang.Object data)
java.lang.Object
visit(ASTDefaultValue node, java.lang.Object data)
java.lang.Object
visit(ASTDoStatement node, java.lang.Object data)
java.lang.Object
visit(ASTEmptyStatement node, java.lang.Object data)
java.lang.Object
visit(ASTEnumBody node, java.lang.Object data)
java.lang.Object
visit(ASTEnumConstant node, java.lang.Object data)
java.lang.Object
visit(ASTEnumDeclaration node, java.lang.Object data)
java.lang.Object
visit(ASTEqualityExpression node, java.lang.Object data)
java.lang.Object
visit(ASTExclusiveOrExpression node, java.lang.Object data)
java.lang.Object
visit(ASTExplicitConstructorInvocation node, java.lang.Object data)
java.lang.Object
visit(ASTExpression node, java.lang.Object data)
java.lang.Object
visit(ASTExtendsList node, java.lang.Object data)
java.lang.Object
visit(ASTFieldDeclaration node, java.lang.Object data)
java.lang.Object
visit(ASTFinallyStatement node, java.lang.Object data)
java.lang.Object
visit(ASTForInit node, java.lang.Object data)
java.lang.Object
visit(ASTFormalParameter node, java.lang.Object data)
java.lang.Object
visit(ASTFormalParameters node, java.lang.Object data)
java.lang.Object
visit(ASTForStatement node, java.lang.Object data)
java.lang.Object
visit(ASTForUpdate node, java.lang.Object data)
java.lang.Object
visit(ASTIfStatement node, java.lang.Object data)
java.lang.Object
visit(ASTImplementsList node, java.lang.Object data)
java.lang.Object
visit(ASTImportDeclaration node, java.lang.Object data)
java.lang.Object
visit(ASTInclusiveOrExpression node, java.lang.Object data)
java.lang.Object
visit(ASTInitializer node, java.lang.Object data)
java.lang.Object
visit(ASTInstanceOfExpression node, java.lang.Object data)
java.lang.Object
visit(ASTLabeledStatement node, java.lang.Object data)
java.lang.Object
visit(ASTLambdaExpression node, java.lang.Object data)
java.lang.Object
visit(ASTLiteral node, java.lang.Object data)
java.lang.Object
visit(ASTLocalVariableDeclaration node, java.lang.Object data)
java.lang.Object
visit(ASTMarkerAnnotation node, java.lang.Object data)
java.lang.Object
visit(ASTMemberSelector node, java.lang.Object data)
java.lang.Object
visit(ASTMemberValueArrayInitializer node, java.lang.Object data)
java.lang.Object
visit(ASTMemberValuePair node, java.lang.Object data)
java.lang.Object
visit(ASTMemberValuePairs node, java.lang.Object data)
java.lang.Object
visit(ASTMemberValue node, java.lang.Object data)
java.lang.Object
visit(ASTMethodDeclaration node, java.lang.Object data)
java.lang.Object
visit(ASTMethodDeclarator node, java.lang.Object data)
java.lang.Object
visit(ASTMethodReference node, java.lang.Object data)
java.lang.Object
visit(ASTModuleDeclaration node, java.lang.Object data)
java.lang.Object
visit(ASTModuleDirective node, java.lang.Object data)
java.lang.Object
visit(ASTModuleName node, java.lang.Object data)
java.lang.Object
visit(ASTMultiplicativeExpression node, java.lang.Object data)
java.lang.Object
visit(ASTNameList node, java.lang.Object data)
java.lang.Object
visit(ASTName node, java.lang.Object data)
java.lang.Object
visit(ASTNormalAnnotation node, java.lang.Object data)
java.lang.Object
visit(ASTNullLiteral node, java.lang.Object data)
java.lang.Object
visit(ASTPackageDeclaration node, java.lang.Object data)
java.lang.Object
visit(ASTPostfixExpression node, java.lang.Object data)
java.lang.Object
visit(ASTPreDecrementExpression node, java.lang.Object data)
java.lang.Object
visit(ASTPreIncrementExpression node, java.lang.Object data)
java.lang.Object
visit(ASTPrimaryExpression node, java.lang.Object data)
java.lang.Object
visit(ASTPrimaryPrefix node, java.lang.Object data)
java.lang.Object
visit(ASTPrimarySuffix node, java.lang.Object data)
java.lang.Object
visit(ASTPrimitiveType node, java.lang.Object data)
java.lang.Object
visit(ASTReferenceType node, java.lang.Object data)
java.lang.Object
visit(ASTRelationalExpression node, java.lang.Object data)
java.lang.Object
visit(ASTResource node, java.lang.Object data)
java.lang.Object
visit(ASTResourceSpecification node, java.lang.Object data)
java.lang.Object
visit(ASTResources node, java.lang.Object data)
java.lang.Object
visit(ASTResultType node, java.lang.Object data)
java.lang.Object
visit(ASTReturnStatement node, java.lang.Object data)
java.lang.Object
visit(ASTRSIGNEDSHIFT node, java.lang.Object data)
Deprecated.Will be removed in 7.0.0.java.lang.Object
visit(ASTRUNSIGNEDSHIFT node, java.lang.Object data)
Deprecated.Will be removed in 7.0.0.java.lang.Object
visit(ASTShiftExpression node, java.lang.Object data)
java.lang.Object
visit(ASTSingleMemberAnnotation node, java.lang.Object data)
java.lang.Object
visit(ASTStatementExpressionList node, java.lang.Object data)
java.lang.Object
visit(ASTStatementExpression node, java.lang.Object data)
java.lang.Object
visit(ASTStatement node, java.lang.Object data)
java.lang.Object
visit(ASTSwitchExpression node, java.lang.Object data)
java.lang.Object
visit(ASTSwitchLabeledBlock node, java.lang.Object data)
java.lang.Object
visit(ASTSwitchLabeledExpression node, java.lang.Object data)
java.lang.Object
visit(ASTSwitchLabeledThrowStatement node, java.lang.Object data)
java.lang.Object
visit(ASTSwitchLabel node, java.lang.Object data)
java.lang.Object
visit(ASTSwitchStatement node, java.lang.Object data)
java.lang.Object
visit(ASTSynchronizedStatement node, java.lang.Object data)
java.lang.Object
visit(ASTThrowStatement node, java.lang.Object data)
java.lang.Object
visit(ASTTryStatement node, java.lang.Object data)
java.lang.Object
visit(ASTTypeArgument node, java.lang.Object data)
java.lang.Object
visit(ASTTypeArguments node, java.lang.Object data)
java.lang.Object
visit(ASTTypeBound node, java.lang.Object data)
java.lang.Object
visit(ASTTypeDeclaration node, java.lang.Object data)
java.lang.Object
visit(ASTTypeParameter node, java.lang.Object data)
java.lang.Object
visit(ASTTypeParameters node, java.lang.Object data)
java.lang.Object
visit(ASTType node, java.lang.Object data)
java.lang.Object
visit(ASTUnaryExpressionNotPlusMinus node, java.lang.Object data)
java.lang.Object
visit(ASTUnaryExpression node, java.lang.Object data)
java.lang.Object
visit(ASTVariableDeclaratorId node, java.lang.Object data)
java.lang.Object
visit(ASTVariableDeclarator node, java.lang.Object data)
java.lang.Object
visit(ASTVariableInitializer node, java.lang.Object data)
java.lang.Object
visit(ASTWhileStatement node, java.lang.Object data)
java.lang.Object
visit(ASTWildcardBounds node, java.lang.Object data)
java.lang.Object
visit(ASTYieldStatement node, java.lang.Object data)
java.lang.Object
visit(JavaNode node, java.lang.Object data)
protected void
visitAll(java.util.List<? extends net.sourceforge.pmd.lang.ast.Node> nodes, net.sourceforge.pmd.RuleContext ctx)
-
Methods inherited from class net.sourceforge.pmd.lang.rule.AbstractRule
addExample, addRuleChainVisit, addRuleChainVisit, addViolation, addViolation, addViolation, addViolationWithMessage, addViolationWithMessage, addViolationWithMessage, deepCopy, deepCopyValuesTo, end, equals, getDescription, getExamples, getExternalInfoUrl, getLanguage, getMaximumLanguageVersion, getMessage, getMinimumLanguageVersion, getName, getParserOptions, getPriority, getPropertySourceType, getRuleChainVisits, getRuleClass, getRuleSetName, getSince, hashCode, isDeprecated, isDfa, isMultifile, isRuleChain, isTypeResolution, setDeprecated, setDescription, setDfa, setExternalInfoUrl, setLanguage, setMaximumLanguageVersion, setMessage, setMinimumLanguageVersion, setMultifile, setName, setPriority, setRuleClass, setRuleSetName, setSince, setTypeResolution, setUsesDFA, setUsesMultifile, setUsesTypeResolution, start, usesDFA, usesMultifile, usesRuleChain, usesTypeResolution
-
Methods inherited from class net.sourceforge.pmd.properties.AbstractPropertySource
copyPropertyDescriptors, copyPropertyValues, definePropertyDescriptor, dysfunctionReason, getOverriddenPropertiesByPropertyDescriptor, getOverriddenPropertyDescriptors, getPropertiesByPropertyDescriptor, getProperty, getPropertyDescriptor, getPropertyDescriptors, hasDescriptor, ignoredProperties, isPropertyOverridden, setProperty, setProperty, useDefaultValueFor, usesDefaultValues
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sourceforge.pmd.properties.PropertySource
definePropertyDescriptor, dysfunctionReason, getOverriddenPropertiesByPropertyDescriptor, getOverriddenPropertyDescriptors, getPropertiesByPropertyDescriptor, getProperty, getPropertyDescriptor, getPropertyDescriptors, hasDescriptor, ignoredProperties, isPropertyOverridden, setProperty, setProperty, useDefaultValueFor, usesDefaultValues
-
-
-
-
Method Detail
-
apply
public void apply(java.util.List<? extends net.sourceforge.pmd.lang.ast.Node> nodes, net.sourceforge.pmd.RuleContext ctx)
- Specified by:
apply
in interfacenet.sourceforge.pmd.Rule
-
visitAll
protected void visitAll(java.util.List<? extends net.sourceforge.pmd.lang.ast.Node> nodes, net.sourceforge.pmd.RuleContext ctx)
-
getDeclaringType
@Deprecated protected final java.lang.String getDeclaringType(net.sourceforge.pmd.lang.ast.Node node)
Deprecated.This method just returns the type name as a string which doesn't leverage any type resolution. UseNode.getFirstParentOfType(Class)
directly to find the node of typeASTClassOrInterfaceBodyDeclaration
via thegetType
method.Gets the Image of the first parent node of type ASTClassOrInterfaceDeclaration ornull
- Parameters:
node
- the node which will be searched
-
isQualifiedName
public static boolean isQualifiedName(net.sourceforge.pmd.lang.ast.Node node)
-
importsPackage
public static boolean importsPackage(ASTCompilationUnit node, java.lang.String packageName)
-
isSuppressed
@Deprecated protected boolean isSuppressed(net.sourceforge.pmd.lang.ast.Node node)
Deprecated.Not useful, and suppression should happen transparently to rule implementations. This will be removed with 7.0.0
-
visit
public java.lang.Object visit(JavaNode node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTExtendsList node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTClassOrInterfaceDeclaration node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTImplementsList node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTTypeParameters node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTMemberSelector node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTTypeParameter node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTTypeBound node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTClassOrInterfaceBody node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTClassOrInterfaceBodyDeclaration node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTEnumBody node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTEnumConstant node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTReferenceType node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTClassOrInterfaceType node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTTypeArguments node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTTypeArgument node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTWildcardBounds node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTAnnotation node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTNormalAnnotation node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTMarkerAnnotation node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTSingleMemberAnnotation node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTMemberValuePairs node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTMemberValuePair node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTMemberValue node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTMemberValueArrayInitializer node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTAnnotationTypeDeclaration node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTAnnotationTypeBody node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTAnnotationTypeMemberDeclaration node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTAnnotationMethodDeclaration node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTDefaultValue node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
@Deprecated public java.lang.Object visit(ASTRUNSIGNEDSHIFT node, java.lang.Object data)
Deprecated.Will be removed in 7.0.0. UseASTShiftExpression.getOperator()
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
@Deprecated public java.lang.Object visit(ASTRSIGNEDSHIFT node, java.lang.Object data)
Deprecated.Will be removed in 7.0.0. UseASTShiftExpression.getOperator()
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTCompilationUnit node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTEnumDeclaration node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTAssertStatement node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTPackageDeclaration node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTImportDeclaration node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTTypeDeclaration node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTFieldDeclaration node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTVariableDeclarator node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTVariableDeclaratorId node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTVariableInitializer node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTArrayInitializer node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTMethodDeclaration node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTMethodDeclarator node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTFormalParameters node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTFormalParameter node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTConstructorDeclaration node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTExplicitConstructorInvocation node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTInitializer node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTType node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTPrimitiveType node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTResultType node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTName node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTNameList node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTExpression node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTAssignmentOperator node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTConditionalExpression node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTConditionalOrExpression node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTConditionalAndExpression node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTInclusiveOrExpression node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTExclusiveOrExpression node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTAndExpression node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTEqualityExpression node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTInstanceOfExpression node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTRelationalExpression node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTShiftExpression node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTAdditiveExpression node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTMultiplicativeExpression node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTUnaryExpression node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTPreIncrementExpression node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTPreDecrementExpression node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTUnaryExpressionNotPlusMinus node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTPostfixExpression node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTCastExpression node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTPrimaryExpression node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTPrimaryPrefix node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTPrimarySuffix node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTLiteral node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTBooleanLiteral node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTNullLiteral node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTArguments node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTArgumentList node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTAllocationExpression node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTArrayDimsAndInits node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTStatement node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTLabeledStatement node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTBlock node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTBlockStatement node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTLocalVariableDeclaration node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTEmptyStatement node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTStatementExpression node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTSwitchStatement node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTSwitchLabel node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTIfStatement node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTWhileStatement node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTDoStatement node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTForStatement node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTForInit node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTStatementExpressionList node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTForUpdate node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTBreakStatement node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTContinueStatement node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTReturnStatement node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTThrowStatement node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTSynchronizedStatement node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTTryStatement node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTFinallyStatement node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTCatchStatement node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTResourceSpecification node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTResources node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTResource node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTLambdaExpression node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTMethodReference node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTModuleDeclaration node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTModuleDirective node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTModuleName node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTSwitchExpression node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTSwitchLabeledBlock node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTSwitchLabeledExpression node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTSwitchLabeledThrowStatement node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
visit
public java.lang.Object visit(ASTYieldStatement node, java.lang.Object data)
- Specified by:
visit
in interfaceJavaParserVisitor
-
-