@holgerengels/compute-engine
Version:
Symbolic computing and numeric evaluations for JavaScript and Node.js
30 lines (29 loc) • 1.14 kB
TypeScript
/* 0.26.0-alpha2 */
import type { BoxedExpression, IComputeEngine, Metadata, PatternMatchOptions, BoxedSubstitution } from './public';
import { _BoxedExpression } from './abstract-boxed-expression';
import { Type } from '../../common/type/types';
/**
* BoxedString
*
* @noInheritDoc
*/
export declare class BoxedString extends _BoxedExpression {
private readonly _string;
constructor(ce: IComputeEngine, expr: string, metadata?: Metadata);
get json(): string;
get hash(): number;
get operator(): string;
get isPure(): boolean;
get isCanonical(): boolean;
set isCanonical(_va: boolean);
get type(): Type;
get complexity(): number;
get string(): string;
match(pattern: BoxedExpression, _options?: PatternMatchOptions): BoxedSubstitution | null;
get isCollection(): boolean;
contains(rhs: BoxedExpression): boolean;
get size(): number;
each(start?: number, count?: number): Iterator<BoxedExpression, undefined>;
at(index: number): BoxedExpression | undefined;
get(key: string | BoxedExpression): BoxedExpression | undefined;
indexOf(expr: BoxedExpression): number;
}