Uses of Class
net.sourceforge.pmd.lang.java.ast.ASTList
-
Packages that use ASTList Package Description net.sourceforge.pmd.lang.java.ast 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.ast Modifier and Type Class Description class
ASTAnnotationMemberList
Represents the list ofmember-value pairs
in anannotation
.class
ASTAnnotationTypeBody
class
ASTArgumentList
class
ASTArrayDimensions
Represents array type dimensions.class
ASTBlock
A block of code.class
ASTClassBody
Represents the body of a class or interface declaration.class
ASTEnumBody
Body of an enum declaration.class
ASTExtendsList
Represents theextends
clause of a class or interface declaration.class
ASTFormalParameters
A list of formal parameters in a method or constructor declaration.class
ASTImplementsList
Represents theimplements
clause of a class declaration.class
ASTLambdaParameterList
The parameter list of a lambda expression.class
ASTPatternList
Contains a potentially empty list of nested Patterns for RecordPattern (Java 21).class
ASTPermitsList
Represents thepermits
clause of a (sealed) class declaration.class
ASTRecordBody
Defines the body of a RecordDeclaration (JDK 16 feature).class
ASTRecordComponentList
Defines the state description of a RecordDeclaration (JDK 16 feature).class
ASTResourceList
A list of resources in a try-with-resources.class
ASTStatementExpressionList
A list of statement expressions.class
ASTThrowsList
Throws clause of anASTConstructorDeclaration
orASTMethodDeclaration
.class
ASTTypeArguments
Represents a list of type arguments.class
ASTTypeBody
Body of a type declaration.class
ASTTypeParameters
Represents a list of type parameters.Methods in net.sourceforge.pmd.lang.java.ast with parameters of type ASTList Modifier and Type Method Description static <N extends JavaNode>
@NonNull List<N>ASTList. orEmpty(@Nullable ASTList<N> list)
Returns an empty list if the parameter is null, otherwise returns itstoList()
.static <N extends JavaNode>
@NonNull net.sourceforge.pmd.lang.ast.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 int
ASTList. sizeOrZero(@Nullable ASTList<?> list)
-