Interface NodeWithName<N extends Node>

All Known Implementing Classes:
AnnotationExpr, ImportDeclaration, MarkerAnnotationExpr, ModuleDeclaration, ModuleExportsDirective, ModuleOpensDirective, ModuleProvidesDirective, ModuleRequiresDirective, ModuleUsesDirective, NormalAnnotationExpr, PackageDeclaration, ReceiverParameter, SingleMemberAnnotationExpr

public interface NodeWithName<N extends Node>
A node with a (qualified) name.

The main reason for this interface is to permit users to manipulate homogeneously all nodes with a getName method.

Since:
2.0.1
  • Method Details

    • getName

      Name getName()
    • setName

      N setName(Name name)
    • setName

      default N setName(String name)
    • getNameAsString

      default String getNameAsString()