Top Description Methods
com.github.javaparser.ast.nodeTypes

public Interface NodeWithName<N extends Node>

Known Direct Implementers
com.github.javaparser.ast.ImportDeclaration, com.github.javaparser.ast.PackageDeclaration, com.github.javaparser.ast.body.ReceiverParameter, com.github.javaparser.ast.expr.AnnotationExpr, com.github.javaparser.ast.modules.ModuleDeclaration, com.github.javaparser.ast.modules.ModuleExportsDirective, com.github.javaparser.ast.modules.ModuleOpensDirective, com.github.javaparser.ast.modules.ModuleProvidesDirective, com.github.javaparser.ast.modules.ModuleRequiresDirective, com.github.javaparser.ast.modules.ModuleUsesDirective
Imports
com.github.javaparser.ast.Node, com.github.javaparser.ast.expr.Name

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 Summary

Modifier and TypeMethod and Description
public Name
public default String
public N
setName(Name name)

public default N

Method Detail

getNameback to summary
public Name getName()
getNameAsStringback to summary
public default String getNameAsString()
setNameback to summary
public N setName(Name name)
setNameback to summary
public default N setName(String name)
Annotations
@SuppressWarnings:unchecked