StackType

data class StackType(internalType: Type) : DataStructureType

Stack type

Type representing a Stack

Constructors

StackType
Link copied to clipboard
fun StackType(internalType: Type)
Create empty Stack type

Types

IsEmptyMethod
Link copied to clipboard
data class IsEmptyMethod(returnType: Type, argumentTypes: List<Pair<Type, Boolean>>, varargs: Boolean) : DataStructureMethod
Is empty method
PeekMethod
Link copied to clipboard
data class PeekMethod(returnType: Type, argumentTypes: List<Pair<Type, Boolean>>, varargs: Boolean) : DataStructureMethod
Peek method
PopMethod
Link copied to clipboard
data class PopMethod(returnType: Type, argumentTypes: List<Pair<Type, Boolean>>, varargs: Boolean) : DataStructureMethod
Pop method
PushMethod
Link copied to clipboard
data class PushMethod(returnType: Type, argumentTypes: List<Pair<Type, Boolean>>, varargs: Boolean) : DataStructureMethod
Push method
SizeMethod
Link copied to clipboard
data class SizeMethod(returnType: Type, argumentTypes: List<Pair<Type, Boolean>>, varargs: Boolean) : DataStructureMethod
Size method
StackConstructor
Link copied to clipboard
object StackConstructor : ConstructorMethod

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): StackType
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>