NodeWithOptionalSimpleName

@NullMarked
interface NodeWithOptionalSimpleName<N : Node?>(source)

A node with a name.

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

Inheritors

Functions

Link copied to clipboard
abstract fun getName(): Optional<SimpleName>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Nullable
abstract fun name(): @Nullable SimpleName
Link copied to clipboard
@Nullable
open fun nameAsExpression(): @Nullable NameExpr
Link copied to clipboard
@Nullable
open fun nameAsString(): @Nullable String
Link copied to clipboard
abstract fun setName(@Nullable name: @Nullable SimpleName): N
open fun setName(@Nullable name: @Nullable String): N