public class SyntaxMatch extends Object
Constructor and Description |
---|
SyntaxMatch(Parameters parameters,
Syntax syntax,
String[] args,
SyntaxRepository repo)
Creates a new syntax match with the given set of parameters and syntax
associated with it.
|
Modifier and Type | Method and Description |
---|---|
String[] |
args()
Get array of the original command-line arguments that were matched.
|
Parameters |
parameters()
Returns the parsed set of parameters associated with the match.
|
SyntaxRepository |
repo()
Get the syntax repository that produced this match descriptor.
|
Syntax |
syntax()
Returns the syntax associated with the match.
|
String |
toString() |
public SyntaxMatch(Parameters parameters, Syntax syntax, String[] args, SyntaxRepository repo)
parameters
- parameters that are associated with this parsed
syntaxsyntax
- syntax for the associated commandrepo
- syntax repository that produced this matchargs
- array of the original command-line arguments being matchedpublic Parameters parameters()
public Syntax syntax()
public String[] args()
public SyntaxRepository repo()
Copyright © 2016. All Rights Reserved.