Package net.sourceforge.pmd.lang.java.ast
Contains the classes and interfaces modelling the Java AST.
-
Interface Summary Interface Description AccessNode This interface captures Java access modifiers.Annotatable The interface use to mark nodes that can be annotated.ASTAnyTypeBodyDeclaration Marker interface for type body declarations, such as annotation members, field or method declarations.ASTAnyTypeDeclaration Groups enum, class, annotation and interface declarations.ASTMethodOrConstructorDeclaration Groups method and constructor declarations under a common type.CanSuppressWarnings Dimensionable JavaNode JavaParserConstants Token literal values and constants.JavaParserControllessVisitor Visitor which doesn't take over control on the AST visit (it doesn't explore its children).JavaParserTreeConstants JavaParserVisitor JavaQualifiableNode Java nodes that can be described with a qualified name.MethodLikeNode Groups method, constructor and lambda declarations under a common type.TypeNode This interface allows a Java Class to be associated with a node. -
Class Summary Class Description AbstractAnyTypeDeclaration Abstract class for type declarations nodes.AbstractJavaAccessNode AbstractJavaAccessTypeNode AbstractJavaNode AbstractJavaTypeNode An extension of the SimpleJavaNode which implements the TypeNode interface.AbstractMethodLikeNode AbstractMethodOrConstructorDeclaration ASTAdditiveExpression Represents an addition operation on two or more values, or string concatenation.ASTAllocationExpression ASTAndExpression Represents a non-shortcut boolean AND-expression.ASTAnnotation Represents an annotation.ASTAnnotationMethodDeclaration ASTAnnotationTypeBody ASTAnnotationTypeDeclaration ASTAnnotationTypeMemberDeclaration ASTArgumentList ASTArguments ASTArrayDimsAndInits ASTArrayInitializer ASTAssertStatement Represents anassert
statement.ASTAssignmentOperator Represents an assignment operator in an assignment expression.ASTBlock ASTBlockStatement ASTBooleanLiteral ASTBreakStatement ASTCastExpression ASTCatchStatement Catch statement node.ASTClassOrInterfaceBody ASTClassOrInterfaceBodyDeclaration ASTClassOrInterfaceDeclaration Represents class and interface declarations.ASTClassOrInterfaceType Represents a class or interface type, possibly parameterised with type arguments.ASTCompilationUnit ASTConditionalAndExpression Represents a boolean AND-expression.ASTConditionalExpression Represents a conditional expression, aka ternary expression.ASTConditionalOrExpression Represents a boolean OR-expression.ASTConstructorDeclaration ASTContinueStatement ASTDefaultValue ASTDoStatement ASTEmptyStatement ASTEnumBody ASTEnumConstant ASTEnumDeclaration ASTEqualityExpression Represents an identity test between two values or more values.ASTExclusiveOrExpression Represents a boolean XOR-expression.ASTExplicitConstructorInvocation ASTExpression Represents an expression, in the most general sense.ASTExtendsList Represents theextends
clause of a class or interface declaration.ASTFieldDeclaration ASTFinallyStatement ASTForInit ASTFormalParameter Formal parameter node.ASTFormalParameters ASTForStatement Represents afor
-loop, or a foreach loop.ASTForUpdate ASTIfStatement ASTImplementsList Represents theimplements
clause of a class declaration.ASTImportDeclaration Represents an import declaration in a Java file.ASTInclusiveOrExpression Represents a non-shortcut boolean OR-expression.ASTInitializer ASTInstanceOfExpression Represents a type test on an object.ASTLabeledStatement ASTLambdaExpression ASTLiteral ASTLocalVariableDeclaration Represents a local variable declaration.ASTMarkerAnnotation Represents an annotation with no declared member, e.g.ASTMemberSelector 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 member-value pair in an annotation.ASTMemberValuePairs Represents a list of member values in an annotation.ASTMethodDeclaration Method declaration node.ASTMethodDeclarator ASTMethodReference ASTModuleDeclaration ASTModuleDirective ASTModuleName ASTMultiplicativeExpression Represents a multiplication, division, or modulo operation on two or more values.ASTName ASTNameList ASTNormalAnnotation Represents an annotation that with a parenthesized list of key-value pairs (possibly empty).ASTNullLiteral ASTPackageDeclaration ASTPostfixExpression Represents a unary postfix operation on a value.ASTPreDecrementExpression Represents a pre-decrement expression on a variable.ASTPreIncrementExpression Represents a pre-increment expression on a variable.ASTPrimaryExpression ASTPrimaryPrefix ASTPrimarySuffix ASTPrimitiveType Represents a primitive type.ASTReferenceType Represents a reference type, i.e.ASTRelationalExpression Represents a comparison on two numeric values.ASTResource ASTResources ASTResourceSpecification ASTResultType ASTReturnStatement ASTRSIGNEDSHIFT ASTRUNSIGNEDSHIFT ASTShiftExpression Represents a shift expression on a numeric value.ASTSingleMemberAnnotation Represents an annotation using the shorthand syntax for the default member.ASTStatement ASTStatementExpression ASTStatementExpressionList ASTSwitchLabel ASTSwitchStatement Represents aswitch
statement.ASTSynchronizedStatement ASTThrowStatement ASTTryStatement Try statement node.ASTType Represents a type reference.ASTTypeArgument Represents a single type argument in a type arguments list.ASTTypeArguments Represents a list of type arguments.ASTTypeBound Represents a type bound on a type parameter.ASTTypeDeclaration ASTTypeParameter Represents a type parameter declaration of a method, constructor, class or interface declaration.ASTTypeParameters Represents a list of type parameters.ASTUnaryExpression Represents a unary prefix operation on a value.ASTUnaryExpressionNotPlusMinus Represents a boolean negation or bitwise inverse operation.ASTVariableDeclarator ASTVariableDeclaratorId Represents an identifier in the context of variable or parameter declarations (not their use in expressions).ASTVariableInitializer ASTWhileStatement ASTWildcardBounds Represents a type bound on a wildcard type argument.Comment CommentUtil Deprecated. This utility class is deprecated and will be removed with PMD 7.0.0.DummyJavaNode This is a basic JavaNode implementation, useful when needing to create a dummy node.DumpFacade FormalComment JavadocElement JavaParser JavaParserControllessVisitorAdapter AST visitor that doesn't take over control (doesn't drive the visit itself).JavaParserDecoratedVisitor External wrapper for a visitor decorator.JavaParserTokenManager Token Manager.JavaParserVisitorAdapter JavaParserVisitorDecorator Decorates a control less visitor.JavaParserVisitorReducedAdapter Visitor adapter with convenient visit methods to e.g.JavaQualifiedName Unambiguous identifier for a java method or class.JJTJavaParserState MultiLineComment SingleLineComment Token Token.GTToken -
Enum Summary Enum Description ASTAnyTypeBodyDeclaration.DeclarationKind Kind of declaration.ASTAnyTypeDeclaration.TypeKind The kind of type this node declares.ASTModuleDirective.DirectiveType ASTModuleDirective.RequiresModifier MethodLikeNode.MethodLikeKind Kind of method-like. -
Exception Summary Exception Description ParseException This exception is thrown when parse errors are encountered.