1 | import TreeRegexp from './TreeRegexp';
|
2 | import ParameterType from './ParameterType';
|
3 | import Group from './Group';
|
4 | export default class Argument<T> {
|
5 | readonly group: Group;
|
6 | readonly parameterType: ParameterType<T>;
|
7 | static build(treeRegexp: TreeRegexp, text: string, parameterTypes: Array<ParameterType<any>>): Array<Argument<any>>;
|
8 | constructor(group: Group, parameterType: ParameterType<T>);
|
9 | /**
|
10 | * Get the value returned by the parameter type's transformer function.
|
11 | *
|
12 | * @param thisObj the object in which the transformer function is applied.
|
13 | */
|
14 | getValue(thisObj: any): T;
|
15 | getParameterType(): ParameterType<T>;
|
16 | }
|