Search
Preparing search index...
The search index is not available
@atomist/microgrammar
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Globals
"lib/Ops"
WhenMatcher
Class WhenMatcher
Hierarchy
WhenMatcher
Implements
MatchingLogic
Index
Constructors
constructor
Properties
$id
inner
input
State
Test
match
Test
Methods
can
Start
With
match
Prefix
match
Prefix
Report
Constructors
constructor
new
When
Matcher
(
inner
:
MatchingLogic
, matchTest
:
function
, inputStateTest
:
function
)
:
WhenMatcher
Parameters
inner:
MatchingLogic
matchTest:
function
(
pm
:
PatternMatch
)
:
boolean
Parameters
pm:
PatternMatch
Returns
boolean
inputStateTest:
function
(
is
:
InputState
)
:
boolean
Parameters
is:
InputState
Returns
boolean
Returns
WhenMatcher
Properties
$id
$id
:
string
inner
inner
:
MatchingLogic
input
State
Test
input
State
Test
:
function
Type declaration
(
is
:
InputState
)
:
boolean
Parameters
is:
InputState
Returns
boolean
match
Test
match
Test
:
function
Type declaration
(
pm
:
PatternMatch
)
:
boolean
Parameters
pm:
PatternMatch
Returns
boolean
Methods
Optional
can
Start
With
can
Start
With
(
char
:
string
)
:
boolean
Parameters
char:
string
Returns
boolean
match
Prefix
match
Prefix
(
a
:
any
, b
:
any
, c
:
any
)
:
MatchPrefixResult
Parameters
a:
any
b:
any
c:
any
Returns
MatchPrefixResult
match
Prefix
Report
match
Prefix
Report
(
is
:
InputState
, thisMatchContext
:
__type
, parseContext
:
__type
)
:
MatchReport
Parameters
is:
InputState
thisMatchContext:
__type
parseContext:
__type
Returns
MatchReport
Globals
"lib/
Ops"
Alt
Opt
When
Matcher
constructor
$id
inner
input
State
Test
match
Test
can
Start
With
match
Prefix
match
Prefix
Report
Wrapping
Empty
Match
Report
first
Of
optional
when
Generated using
TypeDoc