Skip to content

[java] Rename some node types #3751

@oowekyala

Description

@oowekyala

These renamings should not be done while the PMD 6 branch remains active, as they could introduce more conflicts when merging master back into the pmd 7 branch.

  • ASTClassOrInterfaceType -> ASTClassType
  • ASTClassOrInterfaceDeclaration -> ASTClassDeclaration

These currently match the JLS productions, but we're not the JLS and can use more convenient names.

  • ASTAnyTypeDeclaration -> ASTTypeDeclaration (ASTTypeDeclaration is a node in the current tree but was removed)
  • ASTMethodOrConstructorDeclaration -> ASTExecutableDeclaration
  • AccessNode -> ModifierOwner

This issue was extracted from #2701

Metadata

Metadata

Assignees

Labels

an:enhancementAn improvement on existing features / rulesin:astAbout the AST structure or API, the parsing step

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions