UNPKG

749 BTypeScriptView Raw
1import ParameterTypeRegistry from './ParameterTypeRegistry';
2import Argument from './Argument';
3import Expression from './Expression';
4export default class CucumberExpression implements Expression {
5 private readonly expression;
6 private readonly parameterTypeRegistry;
7 private parameterTypes;
8 private treeRegexp;
9 /**
10 * @param expression
11 * @param parameterTypeRegistry
12 */
13 constructor(expression: string, parameterTypeRegistry: ParameterTypeRegistry);
14 private processEscapes;
15 private processOptional;
16 private processAlternation;
17 private processParameters;
18 match(text: string): Array<Argument<any>>;
19 readonly regexp: RegExp;
20 readonly source: string;
21 private checkNoParameterType;
22}