Uses of Package
net.sourceforge.pmd.lang.java.ast
-
Classes in net.sourceforge.pmd.lang.java.ast used by net.sourceforge.pmd.lang.java.ast Class Description AbstractPackageNameModuleDirective AccessNode A node that owns a modifier list.AccessNode.Visibility Represents the visibility of a declaration.Annotatable Marks nodes that can be annotated.AssignmentOp An assignment operator forASTAssignmentExpression
.ASTAmbiguousName An ambiguous name occurring in any context.ASTAnnotation Represents an annotation.ASTAnnotationMemberList Represents the list ofmember-value pairs
in anannotation
.ASTAnnotationTypeBody ASTAnnotationTypeDeclaration The declaration of an annotation type.ASTAnonymousClassDeclaration An anonymous class declaration.ASTAnyTypeDeclaration Groups class, enum, record, annotation and interface declarations under a common supertype.ASTArgumentList ASTArrayAccess An array access expression.ASTArrayAllocation An array creation expression.ASTArrayDimensions Represents array type dimensions.ASTArrayDimExpr Represents an array dimension initialized with an expression in an array allocation expression.ASTArrayInitializer An array initializer.ASTArrayType Represents an array type.ASTArrayTypeDim Represents an array dimension in an array type, or in an array allocation expression.ASTAssertStatement Represents anassert
statement.ASTAssignableExpr An expression that may be assigned by an assignment expression, or incremented or decremented.ASTAssignableExpr.AccessType Represents the type of access of an assignable expression.ASTAssignableExpr.ASTNamedReferenceExpr An assignable expression that has a name, and refers to a symbol.ASTAssignmentExpression Represents an assignment expression.ASTBlock A block of code.ASTBodyDeclaration Marker interface for declarations that can occur in a type body, such as field or method declarations.ASTBooleanLiteral The boolean literal, either "true" or "false".ASTBreakStatement A break statement, that jumps to a named label (or exits the current loop).ASTCastExpression Represents a type cast expression.ASTCatchClause A "catch" clause of a try statement.ASTCatchParameter Formal parameter of a catch clause to represent the declared exception variable.ASTCharLiteral Represents a character literal.ASTClassLiteral A class literal.ASTClassOrInterfaceBody Represents the body of a class or interface declaration.ASTClassOrInterfaceDeclaration Represents class and interface declarations.ASTClassOrInterfaceType Represents a class or interface type, possibly parameterised with type arguments.ASTCompactConstructorDeclaration This defines a compact constructor for a RecordDeclaration (JDK 16 feature).ASTCompilationUnit The root node of all Java ASTs.ASTComponentPatternList Contains a potentially empty list of nested Patterns for RecordPattern (Java 19 Preview and Java 20 Preview).ASTConditionalExpression Represents a conditional expression, aka ternary expression.ASTConstructorCall A class instance creation expression.ASTConstructorDeclaration ASTContinueStatement A continue statement, that jumps to the next iteration of an enclosing loop.ASTDefaultValue Represents thedefault
clause of an annotation method.ASTDoStatement Represents ado ... while
statement.ASTEmptyDeclaration An empty declaration (useless).ASTEmptyStatement An empty statement (useless).ASTEnumBody Body of an enum declaration.ASTEnumConstant Represents an enum constant declaration within an enum type declaration.ASTEnumDeclaration Represents an enum declaration.ASTExplicitConstructorInvocation An explicit constructor invocation, occurring at the start of a constructor declaration.ASTExpression Represents an expression, in the most general sense.ASTExpressionStatement A statement that contains an expression.ASTExtendsList Represents theextends
clause of a class or interface declaration.ASTFieldAccess A field access expression.ASTFieldDeclaration Represents a field declaration in the body of a type declaration.ASTFinallyClause The "finally" clause of a try statement.ASTForeachStatement Represents a "foreach"-loop on anIterable
.ASTForInit The initialization clause of a for loop.ASTFormalParameter Formal parameter node for a formal parameter list.ASTFormalParameters A list of formal parameters in a method or constructor declaration.ASTForStatement Represents afor
loop (distinct from foreach loops).ASTForUpdate Update clause of a for statement.ASTIfStatement Represents anif
statement, possibly with anelse
statement.ASTImplementsList Represents theimplements
clause of a class declaration.ASTImportDeclaration Represents an import declaration in a Java file.ASTInfixExpression Represents a binary infix expression.ASTInitializer A class or instance initializer.ASTIntersectionType Represents an intersection type.ASTLabeledStatement A wrapper around a statement that assigns it a label.ASTLambdaExpression A lambda expression.ASTLambdaParameter Formal parameter of a lambda expression.ASTLambdaParameterList The parameter list of a lambda expression.ASTList Common supertype for nodes that act as a kind of list of other nodes.ASTLiteral A lexical literal.ASTLocalClassStatement A statement that contains a local class declaration.ASTLocalVariableDeclaration Represents a local variable declaration.ASTLoopStatement A loop statement.ASTMemberValue Represents the value of a member of an annotation.ASTMemberValueArrayInitializer Represents an array of member values in an annotation member value.ASTMemberValuePair Represents a single pair of member name to value in an annotation.ASTMethodCall A method invocation expression.ASTMethodDeclaration A method declaration, in a class or interface declaration.ASTMethodOrConstructorDeclaration Groups method and constructor declarations under a common type.ASTMethodReference Method or constructor reference expression.ASTModifierList List of modifiers of a declaration.ASTModuleDeclaration A module declaration.ASTModuleDirective A directive of a module declaration.ASTModuleExportsDirective An "exports" directive of a module declaration.ASTModuleName The name of a module.ASTModuleOpensDirective An "opens" directive of a module declaration.ASTModuleProvidesDirective A "provides" directive of a module declaration.ASTModuleRequiresDirective A "requires" directive of a module declaration.ASTModuleUsesDirective A "uses" directive of a module declaration.ASTNullLiteral The null literal.ASTNumericLiteral A numeric literal of any type (double, int, long, float, etc).ASTPackageDeclaration Package declaration at the top of a source file.ASTPattern A pattern (for pattern matching constructs likeInstanceOfExpression
or within aASTSwitchLabel
).ASTPatternExpression Wraps aASTPattern
node but presents the interface ofASTExpression
.ASTPermitsList Represents thepermits
clause of a (sealed) class declaration.ASTPrimaryExpression Tags thoseexpressions
that are categorised as primary by the JLS.ASTPrimitiveType Represents a primitive type.ASTReceiverParameter Receiver parameter.ASTRecordBody Defines the body of a RecordDeclaration (JDK 16 feature).ASTRecordComponent Defines a single component of a RecordDeclaration (JDK 16 feature).ASTRecordComponentList Defines the state description of a RecordDeclaration (JDK 16 feature).ASTRecordDeclaration A record declaration is a special data class type (JDK 16 feature).ASTRecordPattern A record pattern (Java 19 Preview and Java 20 Preview).ASTReferenceType Represents a reference type, i.e.ASTResource A resource of a try-with-resources.ASTResourceList A list of resources in a try-with-resources.ASTReturnStatement A return statement in a method or constructor body.ASTStatement Represents a code statement.ASTStatementExpressionList A list of statement expressions.ASTStringLiteral Represents a string literal.ASTSuperExpression The "super" keyword.ASTSwitchArrowBranch A non-fallthrough switch rule, introduced with switch expressions.ASTSwitchArrowRHS A node that can appear as the right-hand-side of aSwitchArrowRule
.ASTSwitchBranch A branch of aSwitchLike
.ASTSwitchExpression A switch expression, as introduced in Java 12.ASTSwitchFallthroughBranch A fallthrough switch branch.ASTSwitchGuard A guard for refining a switch case inASTSwitchLabel
s.ASTSwitchLabel ASTSwitchLike Common supertype for switch statements and switch expressions.ASTSwitchStatement Represents aswitch
statement.ASTSynchronizedStatement A synchronized statement.ASTThisExpression The "this" expression.ASTThrowsList Throws clause of anASTConstructorDeclaration
orASTMethodDeclaration
.ASTThrowStatement Athrow
statement.ASTTopLevelDeclaration Marker interface for nodes that can appear on the top-level of a file.ASTTryStatement Try statement node.ASTType Represents a type reference.ASTTypeArguments Represents a list of type arguments.ASTTypeBody Body of a type declaration.ASTTypeExpression Wraps a type node but presents the interface ofASTExpression
.ASTTypeParameter Represents a type parameter declaration of a method, constructor, class or interface declaration.ASTTypeParameters Represents a list of type parameters.ASTTypePattern A type pattern (JDK16).ASTUnaryExpression Represents a unary operation on a value.ASTUnionType Represents the type node of a multi-catch statement.ASTVariableAccess An unqualified reference to a variable (either local, or a field that is in scope).ASTVariableDeclarator Groups a variable ID and its initializer if it exists.ASTVariableDeclaratorId Represents an identifier in the context of variable or parameter declarations (not their use in expressions).ASTVoidType Type node to represent the void pseudo-type.ASTWhileStatement Represents awhile
loop.ASTWildcardType Represents a wildcard type.ASTYieldStatement Ayield
statement in a switch expression.BinaryOp Represents the operator of an infix expression.FinalizableNode A node that may have the final modifier.FunctionalExpression A method reference or lambda expression.InvocationNode Groups method and constructor call, together, as well as explicit constructor invocation statements, and enum constant declarations.JavaComment Wraps a comment token to provide some utilities.JavadocComment AJavaComment
that has Javadoc content.JavadocCommentOwner A node that may own a javadoc comment.JavaNode Root interface for all Nodes of the Java AST.JavaParserVisitor Deprecated.UseJavaVisitor
JavaVisitor JavaVisitorBase Base implementation ofJavaVisitor
.JModifier A Java modifier.MethodUsage A node that uses another method or constructor.QualifiableExpression Node that may be qualified by an expression, e.g.SymbolDeclaratorNode A node that declares a corresponding symbol.TypeNode A node that has a statically known type.TypeParamOwnerNode A symbol declaration, whose symbol can declare type parameters.UnaryOp A unary operator, either prefix or postfix. -
Classes in net.sourceforge.pmd.lang.java.ast used by net.sourceforge.pmd.lang.java.metrics Class Description ASTAnyTypeDeclaration Groups class, enum, record, annotation and interface declarations under a common supertype.ASTMethodOrConstructorDeclaration Groups method and constructor declarations under a common type.JavaNode Root interface for all Nodes of the Java AST. -
Classes in net.sourceforge.pmd.lang.java.ast used by net.sourceforge.pmd.lang.java.rule Class Description Annotatable Marks nodes that can be annotated.JavaNode Root interface for all Nodes of the Java AST.JavaParserVisitor Deprecated.UseJavaVisitor
JavaVisitor -
Classes in net.sourceforge.pmd.lang.java.ast used by net.sourceforge.pmd.lang.java.rule.bestpractices Class Description ASTCatchClause A "catch" clause of a try statement.ASTCatchParameter Formal parameter of a catch clause to represent the declared exception variable.ASTClassOrInterfaceDeclaration Represents class and interface declarations.ASTClassOrInterfaceType Represents a class or interface type, possibly parameterised with type arguments.ASTCompilationUnit The root node of all Java ASTs.ASTConstructorCall A class instance creation expression.ASTConstructorDeclaration ASTExplicitConstructorInvocation An explicit constructor invocation, occurring at the start of a constructor declaration.ASTExpressionStatement A statement that contains an expression.ASTFieldAccess A field access expression.ASTForeachStatement Represents a "foreach"-loop on anIterable
.ASTForStatement Represents afor
loop (distinct from foreach loops).ASTIfStatement Represents anif
statement, possibly with anelse
statement.ASTLocalVariableDeclaration Represents a local variable declaration.ASTMethodCall A method invocation expression.ASTMethodDeclaration A method declaration, in a class or interface declaration.ASTReturnStatement A return statement in a method or constructor body.ASTStringLiteral Represents a string literal.ASTTryStatement Try statement node.ASTVariableAccess An unqualified reference to a variable (either local, or a field that is in scope).ASTWhileStatement Represents awhile
loop.JavaNode Root interface for all Nodes of the Java AST.JavaParserVisitor Deprecated.UseJavaVisitor
JavaVisitor -
Classes in net.sourceforge.pmd.lang.java.ast used by net.sourceforge.pmd.lang.java.rule.codestyle Class Description ASTAnnotationTypeDeclaration The declaration of an annotation type.ASTAnyTypeDeclaration Groups class, enum, record, annotation and interface declarations under a common supertype.ASTBlock A block of code.ASTCastExpression Represents a type cast expression.ASTClassOrInterfaceDeclaration Represents class and interface declarations.ASTClassOrInterfaceType Represents a class or interface type, possibly parameterised with type arguments.ASTCompilationUnit The root node of all Java ASTs.ASTConditionalExpression Represents a conditional expression, aka ternary expression.ASTConstructorCall A class instance creation expression.ASTConstructorDeclaration ASTDoStatement Represents ado ... while
statement.ASTEnumConstant Represents an enum constant declaration within an enum type declaration.ASTEnumDeclaration Represents an enum declaration.ASTFieldDeclaration Represents a field declaration in the body of a type declaration.ASTFinallyClause The "finally" clause of a try statement.ASTForeachStatement Represents a "foreach"-loop on anIterable
.ASTForStatement Represents afor
loop (distinct from foreach loops).ASTIfStatement Represents anif
statement, possibly with anelse
statement.ASTInitializer A class or instance initializer.ASTLocalVariableDeclaration Represents a local variable declaration.ASTMethodCall A method invocation expression.ASTMethodDeclaration A method declaration, in a class or interface declaration.ASTRecordDeclaration A record declaration is a special data class type (JDK 16 feature).ASTResource A resource of a try-with-resources.ASTReturnStatement A return statement in a method or constructor body.ASTSwitchStatement Represents aswitch
statement.ASTSynchronizedStatement A synchronized statement.ASTTryStatement Try statement node.ASTVariableAccess An unqualified reference to a variable (either local, or a field that is in scope).ASTVariableDeclaratorId Represents an identifier in the context of variable or parameter declarations (not their use in expressions).ASTWhileStatement Represents awhile
loop.JavaNode Root interface for all Nodes of the Java AST.JavaParserVisitor Deprecated.UseJavaVisitor
JavaVisitor -
Classes in net.sourceforge.pmd.lang.java.ast used by net.sourceforge.pmd.lang.java.rule.design Class Description AccessNode A node that owns a modifier list.ASTAnyTypeDeclaration Groups class, enum, record, annotation and interface declarations under a common supertype.ASTClassOrInterfaceDeclaration Represents class and interface declarations.ASTCompilationUnit The root node of all Java ASTs.ASTConstructorDeclaration ASTFieldAccess A field access expression.ASTFieldDeclaration Represents a field declaration in the body of a type declaration.ASTFormalParameter Formal parameter node for a formal parameter list.ASTFormalParameters A list of formal parameters in a method or constructor declaration.ASTIfStatement Represents anif
statement, possibly with anelse
statement.ASTImportDeclaration Represents an import declaration in a Java file.ASTInfixExpression Represents a binary infix expression.ASTLocalVariableDeclaration Represents a local variable declaration.ASTMethodCall A method invocation expression.ASTMethodDeclaration A method declaration, in a class or interface declaration.ASTReturnStatement A return statement in a method or constructor body.ASTSwitchExpression A switch expression, as introduced in Java 12.ASTSwitchLike Common supertype for switch statements and switch expressions.ASTSwitchStatement Represents aswitch
statement.ASTThrowsList Throws clause of anASTConstructorDeclaration
orASTMethodDeclaration
.ASTThrowStatement Athrow
statement.JavaNode Root interface for all Nodes of the Java AST.JavaParserVisitor Deprecated.UseJavaVisitor
JavaVisitor -
Classes in net.sourceforge.pmd.lang.java.ast used by net.sourceforge.pmd.lang.java.rule.documentation Class Description ASTClassOrInterfaceDeclaration Represents class and interface declarations.ASTCompilationUnit The root node of all Java ASTs.ASTConstructorDeclaration ASTEnumDeclaration Represents an enum declaration.ASTFieldDeclaration Represents a field declaration in the body of a type declaration.ASTMethodDeclaration A method declaration, in a class or interface declaration.JavaParserVisitor Deprecated.UseJavaVisitor
JavaVisitor -
Classes in net.sourceforge.pmd.lang.java.ast used by net.sourceforge.pmd.lang.java.rule.errorprone Class Description ASTAssignmentExpression Represents an assignment expression.ASTBreakStatement A break statement, that jumps to a named label (or exits the current loop).ASTClassOrInterfaceDeclaration Represents class and interface declarations.ASTConstructorDeclaration ASTContinueStatement A continue statement, that jumps to the next iteration of an enclosing loop.ASTEnumDeclaration Represents an enum declaration.ASTFieldAccess A field access expression.ASTImplementsList Represents theimplements
clause of a class declaration.ASTInfixExpression Represents a binary infix expression.ASTMethodCall A method invocation expression.ASTMethodDeclaration A method declaration, in a class or interface declaration.ASTNullLiteral The null literal.ASTNumericLiteral A numeric literal of any type (double, int, long, float, etc).ASTRecordDeclaration A record declaration is a special data class type (JDK 16 feature).ASTReturnStatement A return statement in a method or constructor body.ASTStringLiteral Represents a string literal.ASTSwitchStatement Represents aswitch
statement.ASTUnaryExpression Represents a unary operation on a value.ASTVariableAccess An unqualified reference to a variable (either local, or a field that is in scope).ASTVariableDeclaratorId Represents an identifier in the context of variable or parameter declarations (not their use in expressions).JavaParserVisitor Deprecated.UseJavaVisitor
JavaVisitor -
Classes in net.sourceforge.pmd.lang.java.ast used by net.sourceforge.pmd.lang.java.rule.internal Class Description JavaParserVisitor Deprecated.UseJavaVisitor
JavaVisitor -
Classes in net.sourceforge.pmd.lang.java.ast used by net.sourceforge.pmd.lang.java.rule.multithreading Class Description ASTFieldDeclaration Represents a field declaration in the body of a type declaration.ASTMethodDeclaration A method declaration, in a class or interface declaration.JavaParserVisitor Deprecated.UseJavaVisitor
JavaVisitor -
Classes in net.sourceforge.pmd.lang.java.ast used by net.sourceforge.pmd.lang.java.rule.performance Class Description ASTArrayAllocation An array creation expression.ASTConstructorCall A class instance creation expression.ASTExpressionStatement A statement that contains an expression.ASTFieldDeclaration Represents a field declaration in the body of a type declaration.ASTLocalVariableDeclaration Represents a local variable declaration.ASTMethodCall A method invocation expression.ASTStringLiteral Represents a string literal.ASTVariableDeclaratorId Represents an identifier in the context of variable or parameter declarations (not their use in expressions).JavaParserVisitor Deprecated.UseJavaVisitor
JavaVisitor -
Classes in net.sourceforge.pmd.lang.java.ast used by net.sourceforge.pmd.lang.java.rule.security Class Description JavaParserVisitor Deprecated.UseJavaVisitor
JavaVisitor -
Classes in net.sourceforge.pmd.lang.java.ast used by net.sourceforge.pmd.lang.java.symbols Class Description JavaNode Root interface for all Nodes of the Java AST. -
Classes in net.sourceforge.pmd.lang.java.ast used by net.sourceforge.pmd.lang.java.symbols.internal.ast Class Description ASTAnnotation Represents an annotation.ASTCompilationUnit The root node of all Java ASTs.SymbolDeclaratorNode A node that declares a corresponding symbol. -
Classes in net.sourceforge.pmd.lang.java.ast used by net.sourceforge.pmd.lang.java.types Class Description InvocationNode Groups method and constructor call, together, as well as explicit constructor invocation statements, and enum constant declarations.JavaNode Root interface for all Nodes of the Java AST.TypeNode A node that has a statically known type. -
Classes in net.sourceforge.pmd.lang.java.ast used by net.sourceforge.pmd.lang.java.types.ast Class Description ASTAmbiguousName An ambiguous name occurring in any context.ASTAnnotation Represents an annotation.ASTAnyTypeDeclaration Groups class, enum, record, annotation and interface declarations under a common supertype.ASTArrayAccess An array access expression.ASTArrayAllocation An array creation expression.ASTArrayInitializer An array initializer.ASTAssignmentExpression Represents an assignment expression.ASTBooleanLiteral The boolean literal, either "true" or "false".ASTCastExpression Represents a type cast expression.ASTCharLiteral Represents a character literal.ASTClassLiteral A class literal.ASTConditionalExpression Represents a conditional expression, aka ternary expression.ASTConstructorCall A class instance creation expression.ASTEnumConstant Represents an enum constant declaration within an enum type declaration.ASTExplicitConstructorInvocation An explicit constructor invocation, occurring at the start of a constructor declaration.ASTExpression Represents an expression, in the most general sense.ASTFieldAccess A field access expression.ASTFormalParameter Formal parameter node for a formal parameter list.ASTInfixExpression Represents a binary infix expression.ASTLambdaExpression A lambda expression.ASTLambdaParameter Formal parameter of a lambda expression.ASTMethodCall A method invocation expression.ASTMethodReference Method or constructor reference expression.ASTNullLiteral The null literal.ASTNumericLiteral A numeric literal of any type (double, int, long, float, etc).ASTPatternExpression Wraps aASTPattern
node but presents the interface ofASTExpression
.ASTStringLiteral Represents a string literal.ASTSuperExpression The "super" keyword.ASTSwitchExpression A switch expression, as introduced in Java 12.ASTThisExpression The "this" expression.ASTType Represents a type reference.ASTTypeParameter Represents a type parameter declaration of a method, constructor, class or interface declaration.ASTUnaryExpression Represents a unary operation on a value.ASTVariableAccess An unqualified reference to a variable (either local, or a field that is in scope).ASTVariableDeclaratorId Represents an identifier in the context of variable or parameter declarations (not their use in expressions).ASTVoidType Type node to represent the void pseudo-type.InvocationNode Groups method and constructor call, together, as well as explicit constructor invocation statements, and enum constant declarations.JavaNode Root interface for all Nodes of the Java AST.JavaVisitor JavaVisitorBase Base implementation ofJavaVisitor
.TypeNode A node that has a statically known type. -
Classes in net.sourceforge.pmd.lang.java.ast used by net.sourceforge.pmd.lang.java.types.internal.infer Class Description JavaNode Root interface for all Nodes of the Java AST. -
Classes in net.sourceforge.pmd.lang.java.ast used by net.sourceforge.pmd.lang.java.types.internal.infer.ast Class Description ASTExpression Represents an expression, in the most general sense.InvocationNode Groups method and constructor call, together, as well as explicit constructor invocation statements, and enum constant declarations.