Uses of Class
net.sourceforge.pmd.lang.java.ast.ASTList
Packages that use ASTList
Package
Description
Contains the classes and interfaces modelling the Java AST.
-
Uses of ASTList in net.sourceforge.pmd.lang.java.ast
Subclasses of ASTList in net.sourceforge.pmd.lang.java.astModifier and TypeClassDescriptionfinal classRepresents the list ofmember-value pairsin anannotation.final classfinal classfinal classRepresents array type dimensions.final classA block of code.final classRepresents the body of a class or interface declaration.final classBody of an enum declaration.final classRepresents theextendsclause of a class or interface declaration.final classA list of formal parameters in a method or constructor declaration.final classRepresents theimplementsclause of a class declaration.final classThe parameter list of a lambda expression.final classContains a potentially empty list of nested Patterns for RecordPattern (Java 21).final classRepresents thepermitsclause of a (sealed) class declaration.final classDefines the body of a RecordDeclaration (JDK 16 feature).final classDefines the state description of a RecordDeclaration (JDK 16 feature).final classA list of resources in a try-with-resources.final classA list of statement expressions.final classThrows clause of anASTConstructorDeclarationorASTMethodDeclaration.final classRepresents a list of type arguments.classBody of a type declaration.final classRepresents a list of type parameters.Methods in net.sourceforge.pmd.lang.java.ast with parameters of type ASTListModifier and TypeMethodDescriptionReturns an empty list if the parameter is null, otherwise returns itstoList().static <N extends JavaNode>
@NonNull NodeStream<N>ASTList.orEmptyStream(@Nullable ASTList<N> list) static <N extends JavaNode>
@Nullable NASTList.singleOrNull(@Nullable ASTList<N> list) Returns the element if there is exactly one, otherwise returns null.static intASTList.sizeOrZero(@Nullable ASTList<?> list)