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 classASTAnnotationMemberListRepresents the list ofmember-value pairsin anannotation.classASTAnnotationTypeBodyclassASTArgumentListclassASTArrayDimensionsRepresents array type dimensions.classASTBlockA block of code.classASTClassBodyRepresents the body of a class or interface declaration.classASTEnumBodyBody of an enum declaration.classASTExtendsListRepresents theextendsclause of a class or interface declaration.classASTFormalParametersA list of formal parameters in a method or constructor declaration.classASTImplementsListRepresents theimplementsclause of a class declaration.classASTLambdaParameterListThe parameter list of a lambda expression.classASTPatternListContains a potentially empty list of nested Patterns for RecordPattern (Java 21).classASTPermitsListRepresents thepermitsclause of a (sealed) class declaration.classASTRecordBodyDefines the body of a RecordDeclaration (JDK 16 feature).classASTRecordComponentListDefines the state description of a RecordDeclaration (JDK 16 feature).classASTResourceListA list of resources in a try-with-resources.classASTStatementExpressionListA list of statement expressions.classASTThrowsListThrows clause of anASTConstructorDeclarationorASTMethodDeclaration.classASTTypeArgumentsRepresents a list of type arguments.classASTTypeBodyBody of a type declaration.classASTTypeParametersRepresents 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 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)
-