Uses of Interface
net.sourceforge.pmd.lang.java.ast.ASTTypeDeclaration
Packages that use ASTTypeDeclaration
Package
Description
Contains the classes and interfaces modelling the Java AST.
-
Uses of ASTTypeDeclaration in net.sourceforge.pmd.lang.java.ast
Classes in net.sourceforge.pmd.lang.java.ast that implement ASTTypeDeclarationModifier and TypeClassDescriptionfinal classThe declaration of an annotation type.final classAn anonymous class declaration.final classRepresents class and interface declarations.final classRepresents an enum declaration.final classA class declaration added by the compiler implicitly in a compact compilation unit (see JEP 512, Java 25).final classA record declaration is a special data class type (JDK 16 feature).Methods in net.sourceforge.pmd.lang.java.ast that return ASTTypeDeclarationModifier and TypeMethodDescription@NonNull ASTTypeDeclarationASTLocalClassStatement.getDeclaration()Returns the contained declaration.default ASTTypeDeclarationJavaNode.getEnclosingType()Returns the node representing the type declaration this node is found in.Methods in net.sourceforge.pmd.lang.java.ast that return types with arguments of type ASTTypeDeclarationModifier and TypeMethodDescriptionASTCompilationUnit.getTypeDeclarations()Returns the top-level type declarations declared in this compilation unit.Methods in net.sourceforge.pmd.lang.java.ast with parameters of type ASTTypeDeclarationModifier and TypeMethodDescriptionstatic voidInternalApiBridge.setQname(ASTTypeDeclaration declaration, String binaryName, @Nullable String canon) JavaVisitorBase.visitTypeDecl(ASTTypeDeclaration node, P data) -
Uses of ASTTypeDeclaration in net.sourceforge.pmd.lang.java.metrics
Fields in net.sourceforge.pmd.lang.java.metrics with type parameters of type ASTTypeDeclarationModifier and TypeFieldDescriptionstatic final Metric<ASTTypeDeclaration,Integer> JavaMetrics.NUMBER_OF_ACCESSORSstatic final Metric<ASTTypeDeclaration,Integer> JavaMetrics.NUMBER_OF_PUBLIC_FIELDSstatic final Metric<ASTTypeDeclaration,Double> JavaMetrics.TIGHT_CLASS_COHESIONThe relative number of method pairs of a class that access in common at least one attribute of the measured class.static final Metric<ASTTypeDeclaration,Integer> JavaMetrics.WEIGHED_METHOD_COUNTSum of the statistical complexity of the operations in the class.static final Metric<ASTTypeDeclaration,Double> JavaMetrics.WEIGHT_OF_CLASSNumber of “functional” public methods divided by the total number of public methods. -
Uses of ASTTypeDeclaration in net.sourceforge.pmd.lang.java.rule.codestyle
Methods in net.sourceforge.pmd.lang.java.rule.codestyle with parameters of type ASTTypeDeclarationModifier and TypeMethodDescriptionFieldDeclarationsShouldBeAtStartOfClassRule.visit(ASTTypeDeclaration node, Object data) -
Uses of ASTTypeDeclaration in net.sourceforge.pmd.lang.java.rule.design
Methods in net.sourceforge.pmd.lang.java.rule.design with parameters of type ASTTypeDeclarationModifier and TypeMethodDescriptionprotected intExcessivePublicCountRule.getMetric(ASTTypeDeclaration node) protected booleanExcessivePublicCountRule.isViolation(ASTTypeDeclaration node, int reportLevel) Deprecated.since 7.18.0.CyclomaticComplexityRule.visitTypeDecl(ASTTypeDeclaration node, Object data) -
Uses of ASTTypeDeclaration in net.sourceforge.pmd.lang.java.rule.errorprone
Methods in net.sourceforge.pmd.lang.java.rule.errorprone with parameters of type ASTTypeDeclarationModifier and TypeMethodDescriptionprotected voidOverrideBothEqualsAndHashCodeOnComparableRule.maybeReport(RuleContext ctx, ASTTypeDeclaration node, ASTMethodDeclaration hashCodeMethod, ASTMethodDeclaration equalsMethod) protected voidOverrideBothEqualsAndHashcodeRule.maybeReport(RuleContext ctx, ASTTypeDeclaration node, ASTMethodDeclaration hashCodeMethod, ASTMethodDeclaration equalsMethod) protected booleanOverrideBothEqualsAndHashCodeOnComparableRule.skipType(ASTTypeDeclaration node) protected booleanOverrideBothEqualsAndHashcodeRule.skipType(ASTTypeDeclaration node)