Package | Description |
---|---|
com.hp.util.syntax |
Collection of facilities to translate a set of command-line arguments into amap of name-to-object bindings, using an XML-encoded set of syntaxdefinitions.
|
com.hp.util.syntax.usage |
Utilities to auto-generage command-line usage strings, help and manual page contents based on the XML syntax definitions of command-line syntax.
|
Modifier and Type | Method and Description |
---|---|
Syntax |
SyntaxMatcher.getMatchingSyntax(String[] args,
Parameters parameters)
Matches command-line arguments against pre-compiled set of syntaxes.
|
Syntax |
BadUsageException.getSyntax()
Get the syntax whose usage was violated.
|
Syntax |
SyntaxMatch.syntax()
Returns the syntax associated with the match.
|
Modifier and Type | Method and Description |
---|---|
List<Syntax> |
SyntaxPackage.getSyntaxes()
Get prioritized list of syntaxes (instances of
Syntax ) defined
within this package. |
List<Syntax> |
SyntaxMatcher.getSyntaxes()
Returns an unmodifiable copy of the prioritized syntax list.
|
Constructor and Description |
---|
BadUsageException(String message,
int errorOffset,
Syntax syntax,
SyntaxNode syntaxNode)
Constructs a new exception representing a keyword mismatch.
|
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 |
---|---|
void |
SyntaxUsage.printDescription(PrintWriter writer,
Syntax syntax,
int format)
Prints a short message describing the command associated with
the specified syntax.
|
void |
SyntaxUsage.printHelp(PrintWriter writer,
Syntax syntax)
Prints the usage help message for the specified syntax.
|
void |
SyntaxUsage.printHelpText(PrintWriter writer,
Syntax syntax,
int format)
Prints a long help message describing the behaviour of the command
associated with the specified syntax.
|
void |
SyntaxUsage.printUsage(PrintWriter writer,
Syntax syntax,
int format)
Prints the usage message for the specified syntax.
|
void |
SyntaxUsage.printUsageDetails(PrintWriter writer,
Syntax syntax,
int format)
Print the usage details message for the specified syntax.
|
Copyright © 2016. All Rights Reserved.