Expression

Constructors

Link copied to clipboard
constructor(tree: ITree)
This constructor does not do any parsing, and thus is much faster than the other one.
constructor(n: ITreeNode<out Any>)
constructor(s: String)
This constructor parses the String into an Expression.

Properties

Link copied to clipboard
val ast: ITree
Link copied to clipboard

Functions

Link copied to clipboard
open fun calculate(map: Map<HashString, ITreeNode<out Any>>): ITreeNode<out Any>
Link copied to clipboard
open fun getLeftChildren(): ITreeNode<out Any>
Link copied to clipboard
open fun getRightChildren(): ITreeNode<out Any>
Link copied to clipboard
open fun getRootNodeData(): Any
Link copied to clipboard
open fun getRootNodeType(): Type
Link copied to clipboard
open fun matches(expr: IExpression, matches: Map<HashString, ITreeNode<out Any>>): Boolean
Tries to match this expression with expr.
Link copied to clipboard
open fun mayMatch(expr: IExpression): Boolean
This match method test whether or not two expressions might match.
Link copied to clipboard
Runs a syntactic match against the e.
Link copied to clipboard
open fun toString(): String
Link copied to clipboard
open fun updateMatchedVar(matches: Map<HashString, ITreeNode<out Any>>): ITree