Getter

data class Getter(val modifiers: List<Node.Modifier>, val lPar: Node.Keyword.LPar?, val rPar: Node.Keyword.RPar?, val type: Node.Type?, val postModifiers: List<Node.PostModifier>, val body: Node.Expression?, val supplement: NodeSupplement = NodeSupplement()) : Node.Declaration.PropertyDeclaration.Accessor

AST node that represents a property getter.

Constructors

Link copied to clipboard
constructor(modifiers: List<Node.Modifier>, lPar: Node.Keyword.LPar?, rPar: Node.Keyword.RPar?, type: Node.Type?, postModifiers: List<Node.PostModifier>, body: Node.Expression?, supplement: NodeSupplement = NodeSupplement())

Properties

Link copied to clipboard

list of annotation sets.

Link copied to clipboard
open override val body: Node.Expression?

body of the getter if exists, otherwise null.

Link copied to clipboard
open override val lPar: Node.Keyword.LPar?

left parenthesis if exists, otherwise null.

Link copied to clipboard
open override val modifiers: List<Node.Modifier>

list of modifiers.

Link copied to clipboard

post-modifiers of the getter.

Link copied to clipboard
open override val rPar: Node.Keyword.RPar?

right parenthesis if exists, otherwise null.

Link copied to clipboard
open override val supplement: NodeSupplement

Supplemental data for the node.

Link copied to clipboard

return type of the getter if exists, otherwise null.