Package org.metricshub.jawk.util
Class ScriptSource
java.lang.Object
org.metricshub.jawk.util.ScriptSource
- Direct Known Subclasses:
ScriptFileSource
Represents one AWK-script content source.
This is usually either a string,
given on the command line with the first non-"-" parameter,
or an "*.awk" script,
given as a path with a "-f" command line switch.
- Author:
- Danny Daglas
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConstantDESCRIPTION_COMMAND_LINE_SCRIPT="<command-line-supplied-script>" -
Constructor Summary
ConstructorsConstructorDescriptionScriptSource(String description, Reader reader) Constructor for ScriptSource. -
Method Summary
-
Field Details
-
DESCRIPTION_COMMAND_LINE_SCRIPT
ConstantDESCRIPTION_COMMAND_LINE_SCRIPT="<command-line-supplied-script>"- See Also:
-
-
Constructor Details
-
Method Details
-
getDescription
Getter for the field
description.- Returns:
- a
Stringobject
-
getReader
Obtain theReaderserving the script contents.- Returns:
- The reader which contains the script contents.
- Throws:
IOException- if any.
-
toString
-