core / org.pinelang.core / PineExpr
PineExpr¶
open class PineExpr<T>
Constructors¶
| Name | Summary |
|---|---|
| <init> | PineExpr(pineType:PineType, vararg refs:PineExpr<*>, calculation: () -> T) |
Properties¶
| Name | Summary |
|---|---|
| dirty | var dirty:Boolean |
| listenerCount | val listenerCount:Int |
| listeners | var listeners:MutableList<() ->Unit>? |
| pineType | val pineType:PineType |
| refs | vararg var refs:Array<outPineExpr<*>> |
Functions¶
| Name | Summary |
|---|---|
| connect | fun connect(lambda: () ->Unit):Unit |
| disconnect | fun disconnect(lambda: () ->Unit, all:Boolean= true):Unit |
| emit | fun emit():Unit? |
| invoke | operator fun invoke(): T |
| isBoolean | fun isBoolean():Boolean |
| isDouble | fun isDouble():Boolean |
| isFunction | open fun isFunction():Boolean |
| isInt | fun isInt():Boolean |
| isList | fun isList():Boolean |
| isNumber | fun isNumber():Boolean |
| isObject | fun isObject():Boolean |
| isString | fun isString():Boolean |
| move | fun move(other:PineExpr<T>):Unit |
| pineEquals | open fun pineEquals(other:PineExpr<*>):PineBoolean |
| toPineBoolean | fun toPineBoolean():PineBoolean |
| toPineDouble | fun toPineDouble():PineDouble |
| toPineInt | fun toPineInt():PineInt |
| toPineString | fun toPineString():PineString |
| update | fun update(vararg refs:PineExpr<*>, calculation: () -> T):Unit |
Companion Object Functions¶
| Name | Summary |
|---|---|
| of | fun of(value:Int):PineIntfun of(value:Double):PineDoublefun of(value:Float):PineDoublefun of(value:Boolean):PineBooleanfun of(value:String):PineStringfun of(value:List<*>):PineListfun <T> of(value: T):PineExpr<*> |
Inheritors¶
| Name | Summary |
|---|---|
| PineBoolean | class PineBoolean :PineExpr<Boolean> |
| PineCallable | class PineCallable<T> :PineExpr<T> |
| PineDouble | class PineDouble :PineNumber<Double>,PineExpr<Double> |
| PineInt | class PineInt :PineNumber<Int>,PineExpr<Int> |
| PineList | class PineList :PineExpr<List<*>> |
| PineString | class PineString :PineExpr<String> |