Types

Link copied to clipboard
data class ClassBody(val enumEntries: List<Node.Declaration.ClassOrObject.ClassBody.EnumEntry>, val declarations: List<Node.Declaration>, val supplement: NodeSupplement = NodeSupplement()) : Node, Node.WithDeclarations

AST node that represents a class body. The node corresponds to KtClassBody.

Link copied to clipboard

Common interface for keyword nodes that are used to declare a class.

Link copied to clipboard

AST node that represents a parent of the class. The node corresponds to KtSuperTypeListEntry.

Link copied to clipboard
data class ConstructorClassParent(val type: Node.Type.SimpleType, val lPar: Node.Keyword.LPar, val arguments: List<Node.ValueArgument>, val rPar: Node.Keyword.RPar, val supplement: NodeSupplement = NodeSupplement()) : Node.Declaration.ClassOrObject.ClassParent

ClassParent node that represents constructor invocation. The node corresponds to KtSuperTypeCallEntry.

Link copied to clipboard
data class DelegationClassParent(val type: Node.Type, val expression: Node.Expression, val supplement: NodeSupplement = NodeSupplement()) : Node.Declaration.ClassOrObject.ClassParent

ClassParent node that represents explicit delegation. The node corresponds to KtDelegatedSuperTypeEntry.

Link copied to clipboard
data class TypeClassParent(val type: Node.Type, val supplement: NodeSupplement = NodeSupplement()) : Node.Declaration.ClassOrObject.ClassParent

ClassParent node that represents just a type. The node corresponds to KtSuperTypeEntry.

Properties

Link copied to clipboard

list of annotation sets.

Link copied to clipboard

body of the class if exists, otherwise null.

Link copied to clipboard

keyword that is used to declare a class, interface or object.

Link copied to clipboard
open val isClass: Boolean

Returns true if the node is a class, false otherwise.

Link copied to clipboard

Returns true if the node has a companion modifier, false otherwise.

Link copied to clipboard
open val isEnum: Boolean

Returns true if the node has an enum modifier, false otherwise.

Link copied to clipboard

Returns true if the node is an interface, false otherwise.

Link copied to clipboard
open val isObject: Boolean

Returns true if the node is an object, false otherwise.

Link copied to clipboard

list of modifiers.

Link copied to clipboard

name of the declaration if exists, otherwise null.

Link copied to clipboard

list of class parents.

Link copied to clipboard

Supplemental data for the node.