BinaryTreeNodeType

data class BinaryTreeNodeType(internalType: Type) : DataStructureType, NullableDataStructure

Binary tree node type

Represents nodes that make up a binary tree

Constructors

BinaryTreeNodeType
Link copied to clipboard
fun BinaryTreeNodeType(internalType: Type)
Create empty Binary tree node type

Types

Left
Link copied to clipboard
class Left(returnType: Type, argumentTypes: List<Pair<Type, Boolean>>, varargs: Boolean) : DataStructureMethod
Left
NodeConstructor
Link copied to clipboard
class NodeConstructor(internalType: Type) : ConstructorMethod
Node constructor
Right
Link copied to clipboard
class Right(returnType: Type, argumentTypes: List<Pair<Type, Boolean>>, varargs: Boolean) : DataStructureMethod
Right
Value
Link copied to clipboard
class Value(returnType: Type, argumentTypes: List<Pair<Type, Boolean>>, varargs: Boolean) : DataStructureMethod
Value

Functions

component1
Link copied to clipboard
operator fun component1(): Type
containsMethod
Link copied to clipboard
open override fun containsMethod(method: String): Boolean
Contains methodChecks that method name is valid for DataStructureType
copy
Link copied to clipboard
fun copy(internalType: Type): BinaryTreeNodeType
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
getConstructor
Link copied to clipboard
open override fun getConstructor(): ConstructorMethod
Get constructor
getMethodByName
Link copied to clipboard
open override fun getMethodByName(method: String): DataStructureMethod
Get method by nameReturns method by name
getMethodNameByMethod
Link copied to clipboard
fun getMethodNameByMethod(method: DataStructureMethod): String
Get method name by methodFinds method name given DataStructureMethod
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

internalType
Link copied to clipboard
open override var internalType: Type
methods
Link copied to clipboard
open override val methods: MutableMap<String, DataStructureMethod>