Uses of Package
net.sourceforge.pmd.lang.java.ast
Packages that use net.sourceforge.pmd.lang.java.ast
Package
Description
Contains the classes and interfaces modelling the Java AST.
Contains the built-in rules bundled with the Java distribution.
The new symbol resolution framework
that inter-operates cleanly with type resolution.
Support for compile-time type resolution on the AST.
-
Classes in net.sourceforge.pmd.lang.java.ast used by net.sourceforge.pmd.lang.java.astClassDescriptionMarks nodes that can be annotated.An assignment operator for
ASTAssignmentExpression.An ambiguous name occurring in any context.Represents an annotation.Represents the list ofmember-value pairsin anannotation.The declaration of an annotation type.An anonymous class declaration.An array access expression.An array creation expression.Represents array type dimensions.Represents an array dimension initialized with an expression in an array allocation expression.An array initializer.Represents an array type.Represents an array dimension in an array type, or in an array allocation expression.Represents anassertstatement.An expression that may be assigned by an assignment expression, or incremented or decremented.Represents the type of access of an assignable expression.An assignable expression that has a name, and refers to a symbol.Represents an assignment expression.A block of code.Marker interface for declarations that can occur in a type body, such as field or method declarations.The boolean literal, either "true" or "false".A break statement, that jumps to a named label (or exits the current loop).Represents a type cast expression.A "catch" clause of a try statement.Formal parameter of a catch clause to represent the declared exception variable.Represents a character literal.Represents the body of a class or interface declaration.Represents class and interface declarations.A class literal.Represents a class or interface type, possibly parameterised with type arguments.This defines a compact constructor for a RecordDeclaration (JDK 16 feature).The root node of all Java ASTs.Represents a conditional expression, aka ternary expression.A class instance creation expression.A continue statement, that jumps to the next iteration of an enclosing loop.Represents thedefaultclause of an annotation method.Represents ado ... whilestatement.An empty declaration (useless).An empty statement (useless).Body of an enum declaration.Represents an enum constant declaration within an enum type declaration.Represents an enum declaration.Groups method and constructor declarations under a common type.An explicit constructor invocation, occurring at the start of a constructor declaration.Represents an expression, in the most general sense.Result of constant folding an expression.A statement that contains an expression.Represents theextendsclause of a class or interface declaration.A field access expression.Represents a field declaration in the body of a type declaration.The "finally" clause of a try statement.Represents a "foreach"-loop on anIterable.The initialization clause of a for loop.Formal parameter node for a formal parameter list.A list of formal parameters in a method or constructor declaration.Represents aforloop (distinct from foreach loops).Update clause of a for statement.A guard for refining a switch case inASTSwitchLabels.Represents anifstatement, possibly with anelsestatement.Represents theimplementsclause of a class declaration.A class declaration added by the compiler implicitly in a compact compilation unit (see JEP 512, Java 25).Represents an import declaration in a Java file.Represents a binary infix expression.A class or instance initializer.Represents an intersection type.A wrapper around a statement that assigns it a label.A lambda expression.Formal parameter of a lambda expression.The parameter list of a lambda expression.Common supertype for nodes that act as a kind of list of other nodes.A lexical literal.A statement that contains a local class declaration.Represents a local variable declaration.A loop statement.Represents the value of a member of an annotation.Represents an array of member values in an annotation member value.Represents a single pair of member name to value in an annotation.A method invocation expression.A method declaration, in a class or interface declaration.Method or constructor reference expression.List of modifiers of a declaration.A module declaration.A directive of a module declaration.An "exports" directive of a module declaration.The name of a module.An "opens" directive of a module declaration.A "provides" directive of a module declaration.A "requires" directive of a module declaration.A "uses" directive of a module declaration.The null literal.A numeric literal of any type (double, int, long, float, etc).Package declaration at the top of a source file.A pattern for pattern matching constructs likeInstanceOfExpressionor within aASTSwitchLabel).Wraps aASTPatternnode but presents the interface ofASTExpression.Contains a potentially empty list of nested Patterns for RecordPattern (Java 21).Represents thepermitsclause of a (sealed) class declaration.Tags thoseexpressionsthat are categorised as primary by the JLS.Represents a primitive type.Receiver parameter.Defines the body of a RecordDeclaration (JDK 16 feature).Defines a single component of a RecordDeclaration (JDK 16 feature).Defines the state description of a RecordDeclaration (JDK 16 feature).A record declaration is a special data class type (JDK 16 feature).A record pattern, a Java 21 language feature.Represents a reference type, i.e. a class or interface type, or an array type.A resource of a try-with-resources.A list of resources in a try-with-resources.A return statement in a method or constructor body.Represents a code statement.A list of statement expressions.Represents a string literal.The "super" keyword.A non-fallthrough switch rule, introduced with switch expressions.A node that can appear as the right-hand-side of aSwitchArrowRule.A branch of aSwitchLike.A switch expression, as introduced in Java 12.A fallthrough switch branch.Common supertype for switch statements and switch expressions.Represents aswitchstatement.A synchronized statement.The "this" expression.Throws clause of anASTConstructorDeclarationorASTMethodDeclaration.Athrowstatement.Marker interface for nodes that can appear on the top-level of a file.Try statement node.Represents a type reference.Represents a list of type arguments.Body of a type declaration.Groups class, enum, record, annotation and interface declarations under a common supertype.Wraps a type node but presents the interface ofASTExpression.Represents a type parameter declaration of a method, constructor, class or interface declaration.Represents a list of type parameters.A type pattern (JDK16).Represents a unary operation on a value.Represents the type node of a multi-catch statement.An unnamed pattern, a Java 22 language feature.An unqualified reference to a variable (either local, or a field that is in scope).Groups a variable ID and its initializer if it exists.Represents an identifier in the context of variable or parameter declarations (not their use in expressions).Type node to represent the void pseudo-type.Represents awhileloop.Represents a wildcard type.Ayieldstatement in a switch expression.Represents the operator of an infix expression.A method reference or lambda expression.Groups method and constructor call, together, as well as explicit constructor invocation statements, and enum constant declarations.Wraps a comment token to provide some utilities.AJavaCommentthat has Javadoc content.A node that may own a javadoc comment.Root interface for all Nodes of the Java AST.A Java modifier.A node that uses another method or constructor.A node that owns a modifier list.Represents the visibility of a declaration.Node that may be qualified by an expression, e.g. an instance method call or inner class constructor invocation.Marker interface for those nodes that can be the target of a return statement.A node that declares a corresponding symbol.A node that has a statically known type.A symbol declaration, whose symbol can declare type parameters.A unary operator, either prefix or postfix. -
Classes in net.sourceforge.pmd.lang.java.ast used by net.sourceforge.pmd.lang.java.metricsClassDescriptionGroups method and constructor declarations under a common type.Groups class, enum, record, annotation and interface declarations under a common supertype.Root interface for all Nodes of the Java AST.Marker interface for those nodes that can be the target of a return statement.
-
Classes in net.sourceforge.pmd.lang.java.ast used by net.sourceforge.pmd.lang.java.rule
-
Classes in net.sourceforge.pmd.lang.java.ast used by net.sourceforge.pmd.lang.java.rule.bestpracticesClassDescriptionAn array creation expression.A "catch" clause of a try statement.Formal parameter of a catch clause to represent the declared exception variable.Represents class and interface declarations.Represents a class or interface type, possibly parameterised with type arguments.The root node of all Java ASTs.A class instance creation expression.An explicit constructor invocation, occurring at the start of a constructor declaration.A statement that contains an expression.A field access expression.Represents a "foreach"-loop on an
Iterable.Represents aforloop (distinct from foreach loops).Represents anifstatement, possibly with anelsestatement.Represents a local variable declaration.A method invocation expression.A method declaration, in a class or interface declaration.A return statement in a method or constructor body.Represents a string literal.Try statement node.A type pattern (JDK16).An unqualified reference to a variable (either local, or a field that is in scope).Represents awhileloop.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.codestyleClassDescriptionAn ambiguous name occurring in any context.The declaration of an annotation type.A block of code.Represents a type cast expression.Represents class and interface declarations.Represents a class or interface type, possibly parameterised with type arguments.The root node of all Java ASTs.Represents a conditional expression, aka ternary expression.A class instance creation expression.Represents a
do ... whilestatement.Represents an enum constant declaration within an enum type declaration.Represents an enum declaration.Represents an expression, in the most general sense.Represents a field declaration in the body of a type declaration.The "finally" clause of a try statement.Represents a "foreach"-loop on anIterable.Represents aforloop (distinct from foreach loops).Represents anifstatement, possibly with anelsestatement.A class or instance initializer.A lambda expression.Represents a local variable declaration.A method invocation expression.A method declaration, in a class or interface declaration.List of modifiers of a declaration.A record declaration is a special data class type (JDK 16 feature).A resource of a try-with-resources.A return statement in a method or constructor body.Represents aswitchstatement.A synchronized statement.Athrowstatement.Try statement node.Groups class, enum, record, annotation and interface declarations under a common supertype.Represents a type parameter declaration of a method, constructor, class or interface declaration.An unqualified reference to a variable (either local, or a field that is in scope).Represents an identifier in the context of variable or parameter declarations (not their use in expressions).Represents awhileloop.Ayieldstatement in a switch expression.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.designClassDescriptionRepresents class and interface declarations.The root node of all Java ASTs.A field access expression.Represents a field declaration in the body of a type declaration.Formal parameter node for a formal parameter list.A list of formal parameters in a method or constructor declaration.Represents an
ifstatement, possibly with anelsestatement.Represents an import declaration in a Java file.Represents a binary infix expression.Represents a local variable declaration.A method invocation expression.A method declaration, in a class or interface declaration.A return statement in a method or constructor body.A switch expression, as introduced in Java 12.Common supertype for switch statements and switch expressions.Represents aswitchstatement.Throws clause of anASTConstructorDeclarationorASTMethodDeclaration.Athrowstatement.Try statement node.Groups class, enum, record, annotation and interface declarations under a common supertype.Root interface for all Nodes of the Java AST.A node that owns a modifier list. -
Classes in net.sourceforge.pmd.lang.java.ast used by net.sourceforge.pmd.lang.java.rule.documentationClassDescriptionRepresents class and interface declarations.The root node of all Java ASTs.Represents an enum declaration.Represents a field declaration in the body of a type declaration.A method declaration, in a class or interface declaration.
-
Classes in net.sourceforge.pmd.lang.java.ast used by net.sourceforge.pmd.lang.java.rule.errorproneClassDescriptionAn anonymous class declaration.Represents an assignment expression.A break statement, that jumps to a named label (or exits the current loop).Represents class and interface declarations.Represents a conditional expression, aka ternary expression.A continue statement, that jumps to the next iteration of an enclosing loop.Represents an enum declaration.A statement that contains an expression.A field access expression.Represents an
ifstatement, possibly with anelsestatement.Represents a binary infix expression.A method invocation expression.A method declaration, in a class or interface declaration.The null literal.A numeric literal of any type (double, int, long, float, etc).A record declaration is a special data class type (JDK 16 feature).A return statement in a method or constructor body.Represents a string literal.A switch expression, as introduced in Java 12.Represents aswitchstatement.Groups class, enum, record, annotation and interface declarations under a common supertype.Represents a unary operation on a value.An unqualified reference to a variable (either local, or a field that is in scope).Represents an identifier in the context of variable or parameter declarations (not their use in expressions). -
Classes in net.sourceforge.pmd.lang.java.ast used by net.sourceforge.pmd.lang.java.rule.internal
-
Classes in net.sourceforge.pmd.lang.java.ast used by net.sourceforge.pmd.lang.java.rule.multithreadingClassDescriptionRepresents a field declaration in the body of a type declaration.A method declaration, in a class or interface declaration.
-
Classes in net.sourceforge.pmd.lang.java.ast used by net.sourceforge.pmd.lang.java.rule.performanceClassDescriptionAn array creation expression.A class instance creation expression.A statement that contains an expression.Represents a field declaration in the body of a type declaration.Represents a local variable declaration.A method invocation expression.Represents a string literal.Represents an identifier in the context of variable or parameter declarations (not their use in expressions).
-
Classes in net.sourceforge.pmd.lang.java.ast used by net.sourceforge.pmd.lang.java.rule.security
-
Classes in net.sourceforge.pmd.lang.java.ast used by net.sourceforge.pmd.lang.java.symbols
-
Classes in net.sourceforge.pmd.lang.java.ast used by net.sourceforge.pmd.lang.java.typesClassDescriptionGroups method and constructor call, together, as well as explicit constructor invocation statements, and enum constant declarations.Root interface for all Nodes of the Java AST.A node that has a statically known type.
-
Classes in net.sourceforge.pmd.lang.java.ast used by net.sourceforge.pmd.lang.java.types.astClassDescriptionGroups method and constructor call, together, as well as explicit constructor invocation statements, and enum constant declarations.