|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jawk.util.AwkParameters
public class AwkParameters
Awk Parameters. It manages the command-line parameters accepted by Jawk. The parameters and their meanings are provided below:
If no filenames are provided, stdin is used as input to the script (but only if there are input rules).
Field Summary | |
---|---|
boolean |
additional_functions
Whether to enable additional functions (_sleep/_dump); false by default. |
boolean |
additional_type_functions
Whether to enable additional functions (_INTEGER/_DOUBLE/_STRING); false by default. |
boolean |
dump_intermediate_code
Whether to dump the intermediate code; false by default. |
boolean |
dump_syntax_tree
Whether to dump the syntax tree; false by default. |
java.lang.String |
initial_fs_value
Initial FS value. |
java.util.Map<java.lang.String,java.lang.Object> |
initial_variables
Contains variable assignments which are applied prior to executing the script (-v assignments). |
java.util.List<java.lang.String> |
name_value_filename_list
Contains name=value or filename entries. |
boolean |
no_input
Whether Jawk consumes stdin or ARGV file input; false by default. |
java.lang.String |
output_filename
Output filename. |
java.lang.String |
script_filename
Script filename (if provided). |
boolean |
should_compile
Whether to interpret or compile the script. |
boolean |
should_compile_and_run
Whether to compile and execute the script. |
boolean |
sorted_array_keys
Whether to maintain array keys in sorted order; false by default. |
boolean |
trap_illegal_format_exceptions
Whether to trap illegalformatexceptions for [s]printf; true by default. |
boolean |
user_extensions
Whether user extensions are enabled; false by default. |
boolean |
write_to_intermediate_file
Write to intermediate file. |
Constructor Summary | |
---|---|
AwkParameters(java.lang.Class mainclass,
java.lang.String[] args,
java.lang.String extension_description)
Allocate the parameters, using the command line parameters from the VM entry point (main). |
Method Summary | |
---|---|
java.lang.String |
destDirectory()
|
java.lang.String |
extensionDescription()
Provides a description of extensions that are enabled/disabled. |
java.io.InputStream |
ifInputStream()
Obtain the InputStream containing the intermediate file. |
boolean |
isIntermediateFile()
Determine if the -f optarg is an intermediate file. |
java.lang.String |
outputFilename(java.lang.String default_filename)
|
java.io.Reader |
scriptReader()
Obtain the Reader containing the script. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.util.Map<java.lang.String,java.lang.Object> initial_variables
public java.util.List<java.lang.String> name_value_filename_list
public java.lang.String script_filename
public boolean should_compile
public boolean should_compile_and_run
public java.lang.String initial_fs_value
public boolean dump_syntax_tree
public boolean dump_intermediate_code
public boolean additional_functions
public boolean additional_type_functions
public boolean sorted_array_keys
public boolean trap_illegal_format_exceptions
public boolean user_extensions
public boolean no_input
public boolean write_to_intermediate_file
public java.lang.String output_filename
Constructor Detail |
---|
public AwkParameters(java.lang.Class mainclass, java.lang.String[] args, java.lang.String extension_description)
The command-line argument semantics are as follows:
mainclass
- The main class to print when displaying usage.args
- The command-line arguments provided by the user.extension_description
- a text description of extensions that
are enabled (for compiled scripts)Method Detail |
---|
public boolean isIntermediateFile()
public java.io.Reader scriptReader()
public java.io.InputStream ifInputStream()
public java.lang.String outputFilename(java.lang.String default_filename)
default_filename
- The filename to return if -o argument
is not used.
public java.lang.String destDirectory()
public java.lang.String extensionDescription()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |