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 interfaceAnnotatableThe interface use to mark nodes that can be annotated.interfaceASTAnyTypeBodyDeclarationMarker interface for type body declarations, such as annotation members, field or method declarations.interfaceASTAnyTypeDeclarationGroups class, enum, record, annotation and interface declarations.interfaceASTMethodOrConstructorDeclarationGroups method and constructor declarations under a common type.interfaceASTPatternA pattern (for pattern matching constructs likeInstanceOfExpressionor within aASTSwitchLabel).interfaceMethodLikeNodeDeprecated.Lambda expressions should not be grouped with other kinds of method declarations, they have nothing in common.interfaceTypeNodeThis 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 classAbstractAnyTypeDeclarationDeprecated.classAbstractJavaAccessNodeDeprecated.classAbstractJavaAccessTypeNodeDeprecated.classAbstractJavaNodeDeprecated.classAbstractJavaTypeNodeDeprecated.classAbstractMethodLikeNodeDeprecated.classAbstractMethodOrConstructorDeclarationDeprecated.classASTAdditiveExpressionRepresents an addition operation on two or more values, or string concatenation.classASTAllocationExpressionclassASTAndExpressionRepresents a non-shortcut boolean AND-expression.classASTAnnotationRepresents an annotation.classASTAnnotationMethodDeclarationclassASTAnnotationTypeBodyclassASTAnnotationTypeDeclarationclassASTAnnotationTypeMemberDeclarationclassASTArgumentListclassASTArgumentsclassASTArrayDimsAndInitsclassASTArrayInitializerclassASTAssertStatementRepresents anassertstatement.classASTAssignmentOperatorRepresents an assignment operator in an assignment expression.classASTBlockclassASTBlockStatementclassASTBooleanLiteralclassASTBreakStatementclassASTCastExpressionclassASTCatchStatementCatch statement node.classASTClassOrInterfaceBodyRepresents the body of a class or interface declaration.classASTClassOrInterfaceBodyDeclarationclassASTClassOrInterfaceDeclarationRepresents class and interface declarations.classASTClassOrInterfaceTypeRepresents a class or interface type, possibly parameterised with type arguments.classASTCompactConstructorDeclarationThis defines a compact constructor for a RecordDeclaration (JDK 16 feature).classASTCompilationUnitclassASTConditionalAndExpressionRepresents a boolean AND-expression.classASTConditionalExpressionRepresents a conditional expression, aka ternary expression.classASTConditionalOrExpressionRepresents a boolean OR-expression.classASTConstructorDeclarationclassASTContinueStatementclassASTDefaultValueclassASTDoStatementRepresents ado ... whilestatement.classASTEmptyStatementclassASTEnumBodyclassASTEnumConstantRepresents an enum constant declaration within an enum declaration.classASTEnumDeclarationclassASTEqualityExpressionRepresents an identity test between two values or more values.classASTExclusiveOrExpressionRepresents a boolean XOR-expression.classASTExplicitConstructorInvocationclassASTExpressionRepresents an expression, in the most general sense.classASTExtendsListRepresents theextendsclause of a class or interface declaration.classASTFieldDeclarationRepresents a field declaration in the body of a type declaration.classASTFinallyStatementclassASTForInitclassASTFormalParameterFormal parameter node.classASTFormalParametersclassASTForStatementRepresents afor-loop, or a foreach loop.classASTForUpdateUpdate clause of a for statement.classASTGuardedPatternA guarded pattern (JDK17 Preview).classASTIfStatementRepresents anifstatement, possibly with anelsestatement.classASTImplementsListRepresents theimplementsclause of a class declaration.classASTImportDeclarationRepresents an import declaration in a Java file.classASTInclusiveOrExpressionRepresents a non-shortcut boolean OR-expression.classASTInitializerclassASTInstanceOfExpressionRepresents a type test on an object.classASTLabeledStatementclassASTLambdaExpressionclassASTLiteralclassASTLocalVariableDeclarationRepresents a local variable declaration.classASTMarkerAnnotationRepresents an annotation with no declared member, e.g.classASTMemberSelectorclassASTMemberValueRepresents the value of a member of an annotation.classASTMemberValueArrayInitializerRepresents an array of member values in an annotation member value.classASTMemberValuePairRepresents a single member-value pair in an annotation.classASTMemberValuePairsRepresents a list of member values in an annotation.classASTMethodDeclarationMethod declaration node.classASTMethodDeclaratorDeprecated.This node will be removed with 7.0.0.classASTMethodReferenceclassASTModuleDeclarationclassASTModuleDirectiveclassASTModuleNameclassASTMultiplicativeExpressionRepresents a multiplication, division, or modulo operation on two or more values.classASTNameclassASTNameListclassASTNormalAnnotationRepresents an annotation that with a parenthesized list of key-value pairs (possibly empty).classASTNullLiteralclassASTPackageDeclarationclassASTPermitsListRepresents thepermitsclause of a (sealed) class declaration.classASTPostfixExpressionRepresents a unary postfix operation on a value.classASTPreDecrementExpressionRepresents a pre-decrement expression on a variable.classASTPreIncrementExpressionRepresents a pre-increment expression on a variable.classASTPrimaryExpressionclassASTPrimaryPrefixclassASTPrimarySuffixclassASTPrimitiveTypeRepresents a primitive type.classASTRecordBodyDefines the body of a RecordDeclaration (JDK 16 feature).classASTRecordComponentDefines a single component of a RecordDeclaration (JDK 16 feature).classASTRecordComponentListDefines the state description of a RecordDeclaration (JDK 16 feature).classASTRecordDeclarationA record declaration is a special data class type (JDK 16 feature).classASTReferenceTypeRepresents a reference type, i.e.classASTRelationalExpressionRepresents a comparison on two numeric values.classASTResourceclassASTResourcesclassASTResourceSpecificationclassASTResultTypeclassASTReturnStatementclassASTRSIGNEDSHIFTDeprecated.Will be removed in 7.0.0.classASTRUNSIGNEDSHIFTDeprecated.Will be removed in 7.0.0.classASTShiftExpressionRepresents a shift expression on a numeric value.classASTSingleMemberAnnotationRepresents an annotation using the shorthand syntax for the default member.classASTStatementclassASTStatementExpressionclassASTStatementExpressionListclassASTSwitchExpressionclassASTSwitchLabelclassASTSwitchLabeledBlockclassASTSwitchLabeledExpressionclassASTSwitchLabeledThrowStatementclassASTSwitchStatementRepresents aswitchstatement.classASTSynchronizedStatementclassASTThrowStatementclassASTTryStatementTry statement node.classASTTypeRepresents a type reference.classASTTypeArgumentRepresents a single type argument in a type arguments list.classASTTypeArgumentsRepresents a list of type arguments.classASTTypeBoundRepresents a type bound on a type parameter.classASTTypeDeclarationclassASTTypeParameterRepresents a type parameter declaration of a method, constructor, class or interface declaration.classASTTypeParametersRepresents a list of type parameters.classASTTypePatternA type pattern (JDK16).classASTUnaryExpressionRepresents a unary prefix operation on a value.classASTUnaryExpressionNotPlusMinusRepresents a boolean negation or bitwise inverse operation.classASTVariableDeclaratorGroups a variable ID and its initializer if it exists.classASTVariableDeclaratorIdRepresents an identifier in the context of variable or parameter declarations (not their use in expressions).classASTVariableInitializerclassASTWhileStatementRepresents awhilestatement.classASTWildcardBoundsRepresents a type bound on a wildcard type argument.classASTYieldStatementclassDummyJavaNodeDeprecated.Methods in net.sourceforge.pmd.lang.java.ast that return JavaNode Modifier and Type Method Description JavaNodeJavaNode. getChild(int index)JavaNodeASTConditionalExpression. getCondition()Returns the node that represents the guard of this conditional.JavaNodeASTAnyTypeBodyDeclaration. getDeclarationNode()Returns the child of this declaration, which can be cast to a more specific node type usingASTAnyTypeBodyDeclaration.getKind()as a cue.JavaNodeASTGuardedPattern. getGuard()JavaNodeJavaNode. 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 voidDumpFacade. initializeWith(Writer writer, String prefix, boolean recurse, JavaNode node)Deprecated.ObjectDumpFacade. visit(JavaNode node, Object data)Deprecated.ObjectJavaParserControllessVisitorAdapter. visit(JavaNode node, Object data)Deprecated.ObjectJavaParserDecoratedVisitor. visit(JavaNode node, Object data)Deprecated.ObjectJavaParserVisitor. visit(JavaNode node, Object data)ObjectJavaParserVisitorAdapter. visit(JavaNode node, Object data)ObjectJavaParserVisitorDecorator. 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 voidStatementAndBraceFinder. 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 intNpathBaseVisitor. handleSwitch(JavaNode node, Object data)Deprecated.ObjectNpathBaseVisitor. 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 ObjectAbstractJavaRule. 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 JavaNodeConfusingTernaryRule. 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 voidUnnecessaryImportRule. check(JavaNode referenceNode, RuleContext ruleCtx)Remove the import wrapper that imports the name referenced by the given node.static JavaNodeConfusingTernaryRule. unwrapParentheses(JavaNode top)Deprecated.This is internal API, because it will be removed in PMD 7.ObjectEmptyControlStatementRule. 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 ObjectAbstractNcssCountRule. visit(JavaNode node, Object data)Deprecated.ObjectExcessiveLengthRule. visit(JavaNode node, Object data)ObjectExcessiveNodeCountRule. 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 JavaNodeJavaNameOccurrence. getLocation()Constructors in net.sourceforge.pmd.lang.java.symboltable with parameters of type JavaNode Constructor Description ClassNameDeclaration(JavaNode node)JavaNameOccurrence(JavaNode location, String image)
-