NodeWithType

interface NodeWithType<N : Node?, T : Type?>(source)

A node with a type.

The main reason for this interface is to permit users to manipulate homogeneously all nodes with getType/setType methods

Since

2.3.1

Inheritors

Functions

Link copied to clipboard
abstract fun getType(): T
Gets the type
Link copied to clipboard
Link copied to clipboard
abstract fun setType(type: T): N
Sets the type
open fun setType(typeClass: Class<out Any>): N
Sets this type to this class and try to import it to the CompilationUnit if needed
open fun setType(typeString: String): N
Link copied to clipboard