public class SearchTrees extends java.lang.Object implements DebugLevels
main(java.lang.String[])
for the syntax.MSG_DEBUG, MSG_NONE, MSG_STATUS, MSG_TRACE
Constructor and Description |
---|
SearchTrees() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
Provides a command line interface for searching a list of ASTs for
matches to a given expression.
|
private static void |
syntax(java.lang.String msg,
int rc)
Emit a syntax statement and optional error message to
stderr , then exit the process with the specified return
code. |
private static void syntax(java.lang.String msg, int rc)
stderr
, then exit the process with the specified return
code. This method is called from main(java.lang.String[])
when the user passes
command line parameters which are not viable.msg
- Optional error message; may be null
.rc
- Process return code used with System.exit()
.public static void main(java.lang.String[] args)
STDOUT
.
Syntax:
java -DP2J_HOME=<home> SearchTrees [options] <expr> <filelist> java -DP2J_HOME=<home> SearchTrees -S[options] <expr> <directory> <filespec>Where:
expr
is a double quoted string containing a valid
expression to evaluate
args
- List of command line arguments.