Interface HasModifiers

All Superinterfaces:
AntlrNode<KotlinNode>, GenericNode<KotlinNode>, KotlinNode, Node, Reportable
All Known Implementing Classes:
KtClassDeclarationAttributes, KtCompanionObjectAttributes, KtFunctionDeclarationAttributes

@Experimental public interface HasModifiers extends KotlinNode
Experimental Status:
See AttributeView.
Since:
7.25.0
  • Method Details

    • getNode

      KotlinNode getNode()
    • getModifiers

      default String getModifiers()
      Returns the explicit modifier keywords of this declaration node as a space-separated string (e.g. "override suspend"), or null if this node has no modifier keywords. Annotations inside the modifier list are excluded. Exposed as XPath attribute @Modifiers.