Uses of Interface
net.sourceforge.pmd.lang.java.ast.JavaNode
-
Packages that use JavaNode Package Description net.sourceforge.pmd.lang.java.ast Contains the classes and interfaces modelling the Java AST.net.sourceforge.pmd.lang.java.dfa net.sourceforge.pmd.lang.java.metrics.impl.visitors net.sourceforge.pmd.lang.java.rule Contains the built-in rules bundled with the Java distribution.net.sourceforge.pmd.lang.java.rule.codestyle net.sourceforge.pmd.lang.java.rule.design net.sourceforge.pmd.lang.java.symboltable -
-
Uses of JavaNode in net.sourceforge.pmd.lang.java.ast
Subinterfaces of JavaNode in net.sourceforge.pmd.lang.java.ast Modifier and Type Interface Description interface
Annotatable
The interface use to mark nodes that can be annotated.interface
ASTAnyTypeBodyDeclaration
Marker interface for type body declarations, such as annotation members, field or method declarations.interface
ASTAnyTypeDeclaration
Groups class, enum, record, annotation and interface declarations.interface
ASTMethodOrConstructorDeclaration
Groups method and constructor declarations under a common type.interface
ASTPattern
A pattern (for pattern matching constructs likeInstanceOfExpression
or within aASTSwitchLabel
).interface
MethodLikeNode
Deprecated.Lambda expressions should not be grouped with other kinds of method declarations, they have nothing in common.interface
TypeNode
This interface allows a Java Class to be associated with a node.Classes in net.sourceforge.pmd.lang.java.ast that implement JavaNode Modifier and Type Class Description class
AbstractAnyTypeDeclaration
Deprecated.class
AbstractJavaAccessNode
Deprecated.class
AbstractJavaAccessTypeNode
Deprecated.class
AbstractJavaNode
Deprecated.class
AbstractJavaTypeNode
Deprecated.class
AbstractMethodLikeNode
Deprecated.class
AbstractMethodOrConstructorDeclaration
Deprecated.class
ASTAdditiveExpression
Represents an addition operation on two or more values, or string concatenation.class
ASTAllocationExpression
class
ASTAndExpression
Represents a non-shortcut boolean AND-expression.class
ASTAnnotation
Represents an annotation.class
ASTAnnotationMethodDeclaration
class
ASTAnnotationTypeBody
class
ASTAnnotationTypeDeclaration
class
ASTAnnotationTypeMemberDeclaration
class
ASTArgumentList
class
ASTArguments
class
ASTArrayDimsAndInits
class
ASTArrayInitializer
class
ASTAssertStatement
Represents anassert
statement.class
ASTAssignmentOperator
Represents an assignment operator in an assignment expression.class
ASTBlock
class
ASTBlockStatement
class
ASTBooleanLiteral
class
ASTBreakStatement
class
ASTCastExpression
class
ASTCatchStatement
Catch statement node.class
ASTClassOrInterfaceBody
Represents the body of a class or interface declaration.class
ASTClassOrInterfaceBodyDeclaration
class
ASTClassOrInterfaceDeclaration
Represents class and interface declarations.class
ASTClassOrInterfaceType
Represents a class or interface type, possibly parameterised with type arguments.class
ASTCompactConstructorDeclaration
This defines a compact constructor for a RecordDeclaration (JDK 16 feature).class
ASTCompilationUnit
class
ASTComponentPatternList
Contains a potentially empty list of nested Patterns for RecordPattern (Java 19 Preview and Java 20 Preview).class
ASTConditionalAndExpression
Represents a boolean AND-expression.class
ASTConditionalExpression
Represents a conditional expression, aka ternary expression.class
ASTConditionalOrExpression
Represents a boolean OR-expression.class
ASTConstructorDeclaration
class
ASTContinueStatement
class
ASTDefaultValue
class
ASTDoStatement
Represents ado ... while
statement.class
ASTEmptyStatement
class
ASTEnumBody
class
ASTEnumConstant
Represents an enum constant declaration within an enum declaration.class
ASTEnumDeclaration
class
ASTEqualityExpression
Represents an identity test between two values or more values.class
ASTExclusiveOrExpression
Represents a boolean XOR-expression.class
ASTExplicitConstructorInvocation
class
ASTExpression
Represents an expression, in the most general sense.class
ASTExtendsList
Represents theextends
clause of a class or interface declaration.class
ASTFieldDeclaration
Represents a field declaration in the body of a type declaration.class
ASTFinallyStatement
class
ASTForInit
class
ASTFormalParameter
Formal parameter node.class
ASTFormalParameters
class
ASTForStatement
Represents afor
-loop, or a foreach loop.class
ASTForUpdate
Update clause of a for statement.class
ASTIfStatement
Represents anif
statement, possibly with anelse
statement.class
ASTImplementsList
Represents theimplements
clause of a class declaration.class
ASTImportDeclaration
Represents an import declaration in a Java file.class
ASTInclusiveOrExpression
Represents a non-shortcut boolean OR-expression.class
ASTInitializer
class
ASTInstanceOfExpression
Represents a type test on an object.class
ASTLabeledStatement
class
ASTLambdaExpression
class
ASTLiteral
class
ASTLocalVariableDeclaration
Represents a local variable declaration.class
ASTMarkerAnnotation
Represents an annotation with no declared member, e.g.class
ASTMemberSelector
class
ASTMemberValue
Represents the value of a member of an annotation.class
ASTMemberValueArrayInitializer
Represents an array of member values in an annotation member value.class
ASTMemberValuePair
Represents a single member-value pair in an annotation.class
ASTMemberValuePairs
Represents a list of member values in an annotation.class
ASTMethodDeclaration
Method declaration node.class
ASTMethodDeclarator
Deprecated.This node will be removed with 7.0.0.class
ASTMethodReference
class
ASTModuleDeclaration
class
ASTModuleDirective
class
ASTModuleName
class
ASTMultiplicativeExpression
Represents a multiplication, division, or modulo operation on two or more values.class
ASTName
class
ASTNameList
class
ASTNormalAnnotation
Represents an annotation that with a parenthesized list of key-value pairs (possibly empty).class
ASTNullLiteral
class
ASTPackageDeclaration
class
ASTPermitsList
Represents thepermits
clause of a (sealed) class declaration.class
ASTPostfixExpression
Represents a unary postfix operation on a value.class
ASTPreDecrementExpression
Represents a pre-decrement expression on a variable.class
ASTPreIncrementExpression
Represents a pre-increment expression on a variable.class
ASTPrimaryExpression
class
ASTPrimaryPrefix
class
ASTPrimarySuffix
class
ASTPrimitiveType
Represents a primitive type.class
ASTRecordBody
Defines the body of a RecordDeclaration (JDK 16 feature).class
ASTRecordComponent
Defines a single component of a RecordDeclaration (JDK 16 feature).class
ASTRecordComponentList
Defines the state description of a RecordDeclaration (JDK 16 feature).class
ASTRecordDeclaration
A record declaration is a special data class type (JDK 16 feature).class
ASTRecordPattern
A record pattern (Java 19 Preview and Java 20 Preview).class
ASTReferenceType
Represents a reference type, i.e.class
ASTRelationalExpression
Represents a comparison on two numeric values.class
ASTResource
class
ASTResources
class
ASTResourceSpecification
class
ASTResultType
class
ASTReturnStatement
class
ASTRSIGNEDSHIFT
Deprecated.Will be removed in 7.0.0.class
ASTRUNSIGNEDSHIFT
Deprecated.Will be removed in 7.0.0.class
ASTShiftExpression
Represents a shift expression on a numeric value.class
ASTSingleMemberAnnotation
Represents an annotation using the shorthand syntax for the default member.class
ASTStatement
class
ASTStatementExpression
class
ASTStatementExpressionList
class
ASTSwitchExpression
class
ASTSwitchGuard
A guard for refining a switch case inASTSwitchLabel
s.class
ASTSwitchLabel
class
ASTSwitchLabeledBlock
class
ASTSwitchLabeledExpression
class
ASTSwitchLabeledThrowStatement
class
ASTSwitchStatement
Represents aswitch
statement.class
ASTSynchronizedStatement
class
ASTThrowStatement
class
ASTTryStatement
Try statement node.class
ASTType
Represents a type reference.class
ASTTypeArgument
Represents a single type argument in a type arguments list.class
ASTTypeArguments
Represents a list of type arguments.class
ASTTypeBound
Represents a type bound on a type parameter.class
ASTTypeDeclaration
class
ASTTypeParameter
Represents a type parameter declaration of a method, constructor, class or interface declaration.class
ASTTypeParameters
Represents a list of type parameters.class
ASTTypePattern
A type pattern (JDK16).class
ASTUnaryExpression
Represents a unary prefix operation on a value.class
ASTUnaryExpressionNotPlusMinus
Represents a boolean negation or bitwise inverse operation.class
ASTVariableDeclarator
Groups a variable ID and its initializer if it exists.class
ASTVariableDeclaratorId
Represents an identifier in the context of variable or parameter declarations (not their use in expressions).class
ASTVariableInitializer
class
ASTWhileStatement
Represents awhile
statement.class
ASTWildcardBounds
Represents a type bound on a wildcard type argument.class
ASTYieldStatement
class
DummyJavaNode
Deprecated.Methods in net.sourceforge.pmd.lang.java.ast that return JavaNode Modifier and Type Method Description JavaNode
JavaNode. getChild(int index)
JavaNode
ASTConditionalExpression. getCondition()
Returns the node that represents the guard of this conditional.JavaNode
ASTAnyTypeBodyDeclaration. getDeclarationNode()
Returns the child of this declaration, which can be cast to a more specific node type usingASTAnyTypeBodyDeclaration.getKind()
as a cue.JavaNode
JavaNode. getParent()
Methods in net.sourceforge.pmd.lang.java.ast that return types with arguments of type JavaNode Modifier and Type Method Description Iterable<? extends JavaNode>
JavaNode. children()
Methods in net.sourceforge.pmd.lang.java.ast with parameters of type JavaNode Modifier and Type Method Description void
DumpFacade. initializeWith(Writer writer, String prefix, boolean recurse, JavaNode node)
Deprecated.Object
DumpFacade. visit(JavaNode node, Object data)
Deprecated.Object
JavaParserControllessVisitorAdapter. visit(JavaNode node, Object data)
Deprecated.Object
JavaParserDecoratedVisitor. visit(JavaNode node, Object data)
Deprecated.Object
JavaParserVisitor. visit(JavaNode node, Object data)
Object
JavaParserVisitorAdapter. visit(JavaNode node, Object data)
Object
JavaParserVisitorDecorator. visit(JavaNode node, Object data)
Deprecated. -
Uses of JavaNode in net.sourceforge.pmd.lang.java.dfa
Methods in net.sourceforge.pmd.lang.java.dfa with parameters of type JavaNode Modifier and Type Method Description void
StatementAndBraceFinder. buildDataFlowFor(JavaNode node)
Deprecated. -
Uses of JavaNode in net.sourceforge.pmd.lang.java.metrics.impl.visitors
Methods in net.sourceforge.pmd.lang.java.metrics.impl.visitors with parameters of type JavaNode Modifier and Type Method Description int
NpathBaseVisitor. handleSwitch(JavaNode node, Object data)
Deprecated.Object
NpathBaseVisitor. visit(JavaNode node, Object data)
Deprecated. -
Uses of JavaNode in net.sourceforge.pmd.lang.java.rule
Methods in net.sourceforge.pmd.lang.java.rule with parameters of type JavaNode Modifier and Type Method Description Object
AbstractJavaRule. visit(JavaNode node, Object data)
Constructors in net.sourceforge.pmd.lang.java.rule with parameters of type JavaNode Constructor Description JavaRuleViolation(Rule rule, RuleContext ctx, JavaNode node, String message)
Deprecated.JavaRuleViolation(Rule rule, RuleContext ctx, JavaNode node, String message, int beginLine, int endLine)
Deprecated. -
Uses of JavaNode in net.sourceforge.pmd.lang.java.rule.codestyle
Methods in net.sourceforge.pmd.lang.java.rule.codestyle that return JavaNode Modifier and Type Method Description static JavaNode
ConfusingTernaryRule. unwrapParentheses(JavaNode top)
Deprecated.This is internal API, because it will be removed in PMD 7.Methods in net.sourceforge.pmd.lang.java.rule.codestyle with parameters of type JavaNode Modifier and Type Method Description protected void
UnnecessaryImportRule. check(JavaNode referenceNode, RuleContext ruleCtx)
Remove the import wrapper that imports the name referenced by the given node.static JavaNode
ConfusingTernaryRule. unwrapParentheses(JavaNode top)
Deprecated.This is internal API, because it will be removed in PMD 7.Object
EmptyControlStatementRule. visit(JavaNode node, Object data)
-
Uses of JavaNode in net.sourceforge.pmd.lang.java.rule.design
Methods in net.sourceforge.pmd.lang.java.rule.design with parameters of type JavaNode Modifier and Type Method Description Object
AbstractNcssCountRule. visit(JavaNode node, Object data)
Deprecated.Object
ExcessiveLengthRule. visit(JavaNode node, Object data)
Deprecated.Object
ExcessiveNodeCountRule. visit(JavaNode node, Object data)
-
Uses of JavaNode in net.sourceforge.pmd.lang.java.symboltable
Methods in net.sourceforge.pmd.lang.java.symboltable that return JavaNode Modifier and Type Method Description JavaNode
JavaNameOccurrence. getLocation()
Constructors in net.sourceforge.pmd.lang.java.symboltable with parameters of type JavaNode Constructor Description ClassNameDeclaration(JavaNode node)
JavaNameOccurrence(JavaNode location, String image)
-