Class AttributeView<T extends KotlinNode>

java.lang.Object
net.sourceforge.pmd.lang.kotlin.ast.AttributeView<T>
Type Parameters:
T - the corresponding ANTLR node
All Implemented Interfaces:
Node, Reportable
Direct Known Subclasses:
KtClassDeclarationAttributes, KtClassParameterAttributes, KtCompanionObjectAttributes, KtFunctionDeclarationAttributes, KtImportAliasAttributes, KtImportHeaderAttributes, KtVariableDeclarationAttributes

@Experimental public abstract class AttributeView<T extends KotlinNode> extends Object implements Node
Base class for companion classes that allow to define additional attributes on KotlinNodes generated by ANTLR.

The concrete subclasses are returned by KotlinInnerNode.attributes(Class) for usage in Java-based rules. The attributes defined in the subclasses are automatically available as XPath-Attributes.

Additionally, common attributes for multiple types can be defined as interfaces, e.g. HasModifiers and HasSimpleIdentifier.

Experimental Status:
For Kotlin only, might be moved to pmd-core, if it proves useful
Since:
7.25.0