Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- AbstractExtension - Class in io.jawk.ext
-
Base class of various extensions.
- AbstractExtension() - Constructor for class io.jawk.ext.AbstractExtension
- add() - Method in class io.jawk.intermediate.AwkTuples
-
add.
- ADD - Enum constant in enum io.jawk.intermediate.Opcode
-
Numerically adds the top two elements of the stack with the result pushed onto the stack.
- addGlobalVariableNameToOffsetMapping(String, int, boolean) - Method in class io.jawk.intermediate.AwkTuples
-
Accept a {variable_name -> offset} mapping such that global variables can be assigned while processing name=value and filename command-line arguments.
- address(Address) - Method in class io.jawk.intermediate.AwkTuples
-
address.
- Address - Class in io.jawk.intermediate
-
A pointer to a tuple within the list of tuples.
- Address(String) - Constructor for class io.jawk.intermediate.Address
-
Creates an unresolved address with the supplied label.
- AppendableAwkSink - Class in io.jawk.jrt
-
Text
AwkSinkbacked by anAppendable. - AppendableAwkSink(Appendable) - Constructor for class io.jawk.jrt.AppendableAwkSink
-
Creates a sink backed by an
Appendable. - AppendableAwkSink(Appendable, Locale) - Constructor for class io.jawk.jrt.AppendableAwkSink
-
Creates a sink backed by an
Appendable. - APPLY_RS - Enum constant in enum io.jawk.intermediate.Opcode
-
Apply the RS variable by notifying the partitioning reader that there is a new regular expression to use when partitioning input records.
- APPLY_SUBSEP - Enum constant in enum io.jawk.intermediate.Opcode
-
Convert a list of array indices to a concatenated string with SUBSEP.
- applyRS() - Method in class io.jawk.intermediate.AwkTuples
-
applyRS.
- applyRS(Object) - Method in class io.jawk.jrt.JRT
-
applyRS.
- applySpecialVariables(Map<String, Object>) - Method in class io.jawk.jrt.JRT
-
Applies only the JRT-managed special variable assignments from the supplied map (FS, RS, OFS, ORS, CONVFMT, OFMT, SUBSEP, FILENAME, NF, NR, FNR, ARGC).
- applySubsep(int) - Method in class io.jawk.intermediate.AwkTuples
-
applySubsep.
- ARGC_OFFSET - Enum constant in enum io.jawk.intermediate.Opcode
-
Assign the ARGC variable offset.
- argcOffset(int) - Method in class io.jawk.intermediate.AwkTuples
-
argcOffset.
- argcOffset(int) - Method in class io.jawk.intermediate.SandboxedAwkTuples
-
In sandbox mode, ARGC does not need to be materialized as a global variable because the script cannot alter it.
- argument(String) - Method in class io.jawk.Awk.AwkRunBuilder
-
Adds a single runtime argument visible through
ARGC/ARGV. - arguments(String...) - Method in class io.jawk.Awk.AwkRunBuilder
-
Sets runtime arguments visible through
ARGC/ARGV. - arguments(List<String>) - Method in class io.jawk.Awk.AwkRunBuilder
-
Sets runtime arguments visible through
ARGC/ARGV. - ARGV_OFFSET - Enum constant in enum io.jawk.intermediate.Opcode
-
Assign the ARGV variable offset.
- argvOffset(int) - Method in class io.jawk.intermediate.AwkTuples
-
argvOffset.
- argvOffset(int) - Method in class io.jawk.intermediate.SandboxedAwkTuples
-
In sandbox mode, ARGV does not need to be materialized as a global variable because the script cannot alter it.
- assign(int, boolean) - Method in class io.jawk.intermediate.AwkTuples
-
assign.
- ASSIGN - Enum constant in enum io.jawk.intermediate.Opcode
-
Assigns the top-of-stack to a variable.
- ASSIGN_ARGC - Enum constant in enum io.jawk.intermediate.Opcode
-
Assign to ARGC via JRT and push the assigned value.
- ASSIGN_ARRAY - Enum constant in enum io.jawk.intermediate.Opcode
-
Assigns an item to an array element.
- ASSIGN_AS_INPUT - Enum constant in enum io.jawk.intermediate.Opcode
-
Assigns the top-of-stack to $0.
- ASSIGN_AS_INPUT_FIELD - Enum constant in enum io.jawk.intermediate.Opcode
-
Assigns an item as a particular input field; the field number can be 0.
- ASSIGN_CONVFMT - Enum constant in enum io.jawk.intermediate.Opcode
-
Assign to CONVFMT via JRT and push the assigned value.
- ASSIGN_FILENAME - Enum constant in enum io.jawk.intermediate.Opcode
-
Assign to FILENAME via JRT and push the assigned value.
- ASSIGN_FNR - Enum constant in enum io.jawk.intermediate.Opcode
-
Assign to FNR via JRT and push the assigned value.
- ASSIGN_FS - Enum constant in enum io.jawk.intermediate.Opcode
-
Assign to FS via JRT and push the assigned value.
- ASSIGN_MAP_ELEMENT - Enum constant in enum io.jawk.intermediate.Opcode
-
Assigns an item to an element of the associative array currently on the stack.
- ASSIGN_NF - Enum constant in enum io.jawk.intermediate.Opcode
-
Assign to the special variable NF via JRT and push the assigned value.
- ASSIGN_NR - Enum constant in enum io.jawk.intermediate.Opcode
-
Assign to NR via JRT and push the assigned value.
- ASSIGN_OFMT - Enum constant in enum io.jawk.intermediate.Opcode
-
Assign to OFMT via JRT and push the assigned value.
- ASSIGN_OFS - Enum constant in enum io.jawk.intermediate.Opcode
-
Assign to OFS via JRT and push the assigned value.
- ASSIGN_ORS - Enum constant in enum io.jawk.intermediate.Opcode
-
Assign to ORS via JRT and push the assigned value.
- ASSIGN_RLENGTH - Enum constant in enum io.jawk.intermediate.Opcode
-
Assign to RLENGTH via JRT and push the assigned value.
- ASSIGN_RS - Enum constant in enum io.jawk.intermediate.Opcode
-
Assign to RS via JRT and push the assigned value.
- ASSIGN_RSTART - Enum constant in enum io.jawk.intermediate.Opcode
-
Assign to RSTART via JRT and push the assigned value.
- ASSIGN_SUBSEP - Enum constant in enum io.jawk.intermediate.Opcode
-
Assign to SUBSEP via JRT and push the assigned value.
- assignARGC() - Method in class io.jawk.intermediate.AwkTuples
-
Assigns the top-of-stack value to
ARGC. - assignARGC() - Method in class io.jawk.intermediate.SandboxedAwkTuples
-
In sandbox mode, ARGC is read-only.
- assignArray(int, boolean) - Method in class io.jawk.intermediate.AwkTuples
-
assignArray.
- assignAsInput() - Method in class io.jawk.intermediate.AwkTuples
-
assignAsInput.
- assignAsInputField() - Method in class io.jawk.intermediate.AwkTuples
-
assignAsInputField.
- assignCONVFMT() - Method in class io.jawk.intermediate.AwkTuples
-
Assigns the top-of-stack value to
CONVFMT. - assignEnvironmentVariables(AssocArray) - Static method in class io.jawk.jrt.JRT
-
Called by AVM/compiled modules to assign local environment variables to an associative array (in this case, to ENVIRON).
- assignFILENAME() - Method in class io.jawk.intermediate.AwkTuples
-
Assigns the top-of-stack value to
FILENAME. - assignFNR() - Method in class io.jawk.intermediate.AwkTuples
-
Assigns the top-of-stack value to
FNR. - assignFS() - Method in class io.jawk.intermediate.AwkTuples
-
Assigns the top-of-stack value to
FS. - assignIndex(int) - Method in class io.jawk.intermediate.Address
-
Set the tuple index of this address.
- assignInitialVariables(Map<String, Object>) - Method in class io.jawk.jrt.JRT
-
Assign all -v variables.
- assignInputLineFromGetline(Object) - Method in class io.jawk.jrt.JRT
-
Assigns
$0from a getline result and initializes$1..$NF. - assignMapElement() - Method in class io.jawk.intermediate.AwkTuples
-
Assigns a value to a stack-provided associative-array element.
- assignNF() - Method in class io.jawk.intermediate.AwkTuples
-
Assigns the top-of-stack value to
NF. - assignNR() - Method in class io.jawk.intermediate.AwkTuples
-
Assigns the top-of-stack value to
NR. - assignOFMT() - Method in class io.jawk.intermediate.AwkTuples
-
Assigns the top-of-stack value to
OFMT. - assignOFS() - Method in class io.jawk.intermediate.AwkTuples
-
Assigns the top-of-stack value to
OFS. - assignORS() - Method in class io.jawk.intermediate.AwkTuples
-
Assigns the top-of-stack value to
ORS. - assignRLENGTH() - Method in class io.jawk.intermediate.AwkTuples
-
Assigns the top-of-stack value to
RLENGTH. - assignRS() - Method in class io.jawk.intermediate.AwkTuples
-
Assigns the top-of-stack value to
RS. - assignRSTART() - Method in class io.jawk.intermediate.AwkTuples
-
Assigns the top-of-stack value to
RSTART. - assignSUBSEP() - Method in class io.jawk.intermediate.AwkTuples
-
Assigns the top-of-stack value to
SUBSEP. - assignVariable(String, Object) - Method in class io.jawk.backend.AVM
-
Set the contents of a user-defined AWK variable.
- assignVariable(String, Object) - Method in interface io.jawk.jrt.VariableManager
-
Set the contents of a user-defined AWK variable.
- AssocArray - Interface in io.jawk.jrt
-
An AWK associative array.
- AstNode - Class in io.jawk.frontend
-
A Jawk abstract syntax tree node.
- AstNode() - Constructor for class io.jawk.frontend.AstNode
- atan2() - Method in class io.jawk.intermediate.AwkTuples
-
atan2.
- ATAN2 - Enum constant in enum io.jawk.intermediate.Opcode
-
Built-in function that pops the first two items off the stack, calls the java.lang.Math.atan2 method with these as arguments, and places the result onto the stack.
- AVM - Class in io.jawk.backend
-
The Jawk interpreter.
- AVM() - Constructor for class io.jawk.backend.AVM
-
Construct the interpreter.
- AVM(AwkSettings, Map<String, JawkExtension>) - Constructor for class io.jawk.backend.AVM
-
Construct the interpreter, accepting parameters which may have been set on the command-line arguments to the JVM.
- AVM(AwkSettings, Map<String, JawkExtension>, boolean) - Constructor for class io.jawk.backend.AVM
-
Construct the interpreter, optionally enabling runtime profiling.
- Awk - Class in io.jawk
-
Entry point into the parsing, analysis, and execution of a Jawk script.
- Awk() - Constructor for class io.jawk.Awk
-
Create a new instance of Awk without extensions.
- Awk(JawkExtension...) - Constructor for class io.jawk.Awk
-
Create a new instance of Awk with the specified extension instances.
- Awk(AwkSettings) - Constructor for class io.jawk.Awk
-
Create a new instance of Awk with the specified settings.
- Awk(Collection<? extends JawkExtension>) - Constructor for class io.jawk.Awk
-
Create a new instance of Awk with the specified extension instances.
- Awk(Collection<? extends JawkExtension>, AwkSettings) - Constructor for class io.jawk.Awk
-
Create a new instance of Awk with the specified extension instances and settings.
- Awk.AwkRunBuilder - Class in io.jawk
-
Fluent builder for configuring and executing an AWK script or program.
- AwkExpression - Class in io.jawk
-
Public view of a compiled AWK expression.
- AwkParser - Class in io.jawk.frontend
-
Converts the AWK script into a syntax tree, which is useful the backend that either compiles or interprets the script.
- AwkParser(Map<String, ExtensionFunction>, boolean) - Constructor for class io.jawk.frontend.AwkParser
-
Constructor for AwkParser.
- AwkProgram - Class in io.jawk
-
Public view of a compiled AWK program.
- AwkRuntimeException - Exception in io.jawk.jrt
-
A runtime exception thrown by Jawk.
- AwkRuntimeException(int, String) - Constructor for exception io.jawk.jrt.AwkRuntimeException
-
Constructor for AwkRuntimeException.
- AwkRuntimeException(int, String, Throwable) - Constructor for exception io.jawk.jrt.AwkRuntimeException
-
Creates a runtime exception tied to a source line and a root cause.
- AwkRuntimeException(String) - Constructor for exception io.jawk.jrt.AwkRuntimeException
-
Constructor for AwkRuntimeException.
- AwkRuntimeException(String, Throwable) - Constructor for exception io.jawk.jrt.AwkRuntimeException
-
Creates a runtime exception with a message and root cause but without a specific source line.
- AwkSandboxException - Exception in io.jawk
-
Exception thrown when an operation is not permitted in sandbox mode.
- AwkSandboxException(String) - Constructor for exception io.jawk.AwkSandboxException
-
Creates a new sandbox exception with the provided message.
- AwkSandboxException(String, Throwable) - Constructor for exception io.jawk.AwkSandboxException
-
Creates a new sandbox exception with the provided message and cause.
- AwkSettings - Class in io.jawk.util
-
Reusable behavioral configuration for the Jawk engine.
- AwkSettings() - Constructor for class io.jawk.util.AwkSettings
- AwkSink - Class in io.jawk.jrt
-
Output target used by AWK
printandprintfstatements. - AwkTuples - Class in io.jawk.intermediate
-
AwkTuples class.
- AwkTuples() - Constructor for class io.jawk.intermediate.AwkTuples
B
- BLANK - Static variable in interface io.jawk.jrt.AssocArray
-
A blank (uninitialized) value shared across all AWK array accesses.
- block() - Method in class io.jawk.jrt.BlockObject
-
Block until meaningful data is made available for the client application.
- block(BlockObject) - Method in class io.jawk.jrt.BlockManager
-
Executes all block segments simultaneously, waiting for one block release.
- BlockManager - Class in io.jawk.jrt
-
Manages multiple blocking code segments simultaneously such that unblocking one block condition releases the block of all other block code segments.
- BlockManager() - Constructor for class io.jawk.jrt.BlockManager
- BlockObject - Class in io.jawk.jrt
-
An item which blocks until something useful can be done with the object.
- BSDRandom - Class in io.jawk.jrt
-
Simple pseudo-random number generator compatible with the C library
random()function. - BSDRandom(int) - Constructor for class io.jawk.jrt.BSDRandom
-
Creates a new generator with the specified seed.
C
- CALL_FUNCTION - Enum constant in enum io.jawk.intermediate.Opcode
-
Call a user function.
- callFunction(Supplier<Address>, String, int, int) - Method in class io.jawk.intermediate.AwkTuples
-
callFunction.
- CharacterTokenizer - Class in io.jawk.jrt
-
Similar to StringTokenizer, except that tokens are characters in the input string themselves.
- CharacterTokenizer(String) - Constructor for class io.jawk.jrt.CharacterTokenizer
-
Construct a CharacterTokenizer.
- CHECK_CLASS - Enum constant in enum io.jawk.intermediate.Opcode
-
Checks whether the top-of-stack is of a particular class type; if not, an AwkRuntimeException is thrown.
- checkClass(Class<?>) - Method in class io.jawk.intermediate.AwkTuples
-
checkClass.
- clearNextBlockObject() - Method in class io.jawk.jrt.BlockObject
-
Eliminate the rest of the BlockObject chain.
- clearPersistentGlobals() - Method in class io.jawk.backend.AVM
-
Clears the user-defined globals retained in the current runtime stack.
- Cli - Class in io.jawk
-
Command-line interface for Jawk.
- Cli() - Constructor for class io.jawk.Cli
-
Creates a CLI instance wired to the standard input and output streams.
- Cli(InputStream, PrintStream, PrintStream) - Constructor for class io.jawk.Cli
-
Creates a CLI instance using the supplied streams.
- close() - Method in class io.jawk.backend.AVM
-
Releases any prepared input source and runtime I/O resources owned by this AVM.
- close() - Method in class io.jawk.intermediate.AwkTuples
-
close.
- close() - Method in class io.jawk.jrt.StreamInputSource
-
Releases any open file-backed reader held by this source.
- CLOSE - Enum constant in enum io.jawk.intermediate.Opcode
-
Close the specified file.
- CMP_EQ - Enum constant in enum io.jawk.intermediate.Opcode
-
Compares the top two stack elements; pushes 1 onto the stack if equal, 0 if not equal.
- CMP_GT - Enum constant in enum io.jawk.intermediate.Opcode
-
Compares the top two stack elements; pushes 1 onto the stack if x1 > x2, 0 if not equal.
- CMP_LT - Enum constant in enum io.jawk.intermediate.Opcode
-
Compares the top two stack elements; pushes 1 onto the stack if x1 < x2, 0 if not equal.
- cmpEq() - Method in class io.jawk.intermediate.AwkTuples
-
cmpEq.
- cmpGt() - Method in class io.jawk.intermediate.AwkTuples
-
cmpGt.
- cmpLt() - Method in class io.jawk.intermediate.AwkTuples
-
cmpLt.
- collectAssocArrayIndexes(int) - Method in class io.jawk.ext.ExtensionFunction
-
Collects the indexes of arguments that must be associative arrays for a call with the supplied argument count.
- compare2(Object, Object, int) - Static method in class io.jawk.jrt.JRT
-
Compares two objects.
- compile(Reader) - Method in class io.jawk.Awk
-
Compiles a full AWK program.
- compile(String) - Method in class io.jawk.Awk
-
Compiles a full AWK program.
- compile(List<ScriptSource>) - Method in class io.jawk.Awk
-
Compiles a list of script sources into an immutable AWK program that can be executed by the
AVMruntime. - compile(List<ScriptSource>, boolean) - Method in class io.jawk.Awk
-
Compiles a list of script sources into an immutable AWK program that can be executed by the
AVMruntime. - compile(List<ScriptSource>, boolean) - Method in class io.jawk.SandboxedAwk
- compileExpression(String) - Method in class io.jawk.Awk
-
Compile an expression to evaluate (not a full script).
- compileExpression(String, boolean) - Method in class io.jawk.Awk
-
Compile an expression to evaluate (not a full script).
- compileExpression(String, boolean) - Method in class io.jawk.SandboxedAwk
- concat() - Method in class io.jawk.intermediate.AwkTuples
-
concat.
- CONCAT - Enum constant in enum io.jawk.intermediate.Opcode
-
Pop and concatenate two strings from the top-of-stack; push the result onto the stack.
- CONDITION_PAIR - Enum constant in enum io.jawk.intermediate.Opcode
-
Returns a pair of regex patterns.
- conditionPair() - Method in class io.jawk.intermediate.AwkTuples
-
regexpPair.
- ConditionPair - Class in io.jawk.jrt
-
Tracks whether we are within a range defined by a pair of condition: startCondition endCondition
- ConditionPair() - Constructor for class io.jawk.jrt.ConditionPair
-
Constructor for ConditionPair.
- CONSUME_INPUT - Enum constant in enum io.jawk.intermediate.Opcode
-
Consume next line of input; assigning $0 and recalculating $1, $2, etc.
- consumeInput(Address) - Method in class io.jawk.intermediate.AwkTuples
-
consumeInput.
- consumeInput(InputSource) - Method in class io.jawk.jrt.JRT
-
Attempt to consume one record from a structured input source and expose it as the current input record.
- consumeInputForEval(InputSource) - Method in class io.jawk.jrt.JRT
-
Consume at most one record from a structured source for expression evaluation.
- consumeInputToTarget(InputSource) - Method in class io.jawk.jrt.JRT
-
Attempt to consume one record from a structured input source for
getline target, returning only the input text and leaving the current input record state untouched. - containsAwkKey(Map<Object, Object>, Object) - Static method in class io.jawk.jrt.JRT
-
Checks key existence using AWK semantics when the supplied map is backed by an
AssocArray, otherwise falling back to regularMapsemantics. - CONVFMT_OFFSET - Enum constant in enum io.jawk.intermediate.Opcode
-
Assign the CONVFMT variable offset.
- convfmtOffset(int) - Method in class io.jawk.intermediate.AwkTuples
-
convfmtOffset.
- copySpecialVariables(Map<String, Object>) - Static method in class io.jawk.jrt.JRT
-
Copies only the JRT-managed special variables from the supplied map.
- cos() - Method in class io.jawk.intermediate.AwkTuples
-
cos.
- COS - Enum constant in enum io.jawk.intermediate.Opcode
-
Built-in function that pops the top-of-stack, calls the java.lang.Math.cos method with the top-of-stack as the argument, and places the result onto the stack.
- create(boolean) - Static method in interface io.jawk.jrt.AssocArray
-
Creates a new associative array of the appropriate type.
- create(String[], InputStream, PrintStream, PrintStream) - Static method in class io.jawk.Cli
-
Convenience factory that parses arguments, executes the CLI, and returns the configured instance.
- createAddress(String) - Method in class io.jawk.intermediate.AwkTuples
-
createAddress.
- createAvm() - Method in class io.jawk.Awk
-
Creates a reusable runtime backed by one
AVMinstance. - createAvm() - Method in class io.jawk.SandboxedAwk
- createAvm(boolean) - Method in class io.jawk.Awk
-
Creates a reusable runtime backed by one
AVMinstance, optionally collecting runtime profiling statistics. - createAvm(boolean) - Method in class io.jawk.SandboxedAwk
- createAwkMap(boolean) - Static method in class io.jawk.jrt.JRT
-
Creates an AWK-managed associative array and exposes it as a plain
Mapfor callers that do not need the concrete runtime type. - createBindings() - Method in class io.jawk.jsr223.JawkScriptEngine
- createFromList(List<?>, boolean) - Static method in interface io.jawk.jrt.AssocArray
-
Creates a new associative array materialized from a Java
List. - createHash() - Static method in interface io.jawk.jrt.AssocArray
-
Creates a new hash-based associative array (backed by
HashMap). - createSorted() - Static method in interface io.jawk.jrt.AssocArray
-
Creates a new sorted associative array (backed by
TreeMapwith AWK key ordering). - current() - Method in class io.jawk.intermediate.PositionTracker
-
Returns the current typed tuple.
- currentIndex() - Method in class io.jawk.intermediate.PositionTracker
-
Returns the current tuple index.
D
- DataPump - Class in io.jawk.jrt
-
Relay data from an input stream to an output stream.
- DataPump(InputStream, PrintStream) - Constructor for class io.jawk.jrt.DataPump
-
Represents a data pump.
- dec(int, boolean) - Method in class io.jawk.intermediate.AwkTuples
-
dec.
- dec(Object) - Static method in class io.jawk.jrt.JRT
-
Return an object which is numerically equivalent to one minus a given object.
- DEC - Enum constant in enum io.jawk.intermediate.Opcode
-
Decreases the variable reference by one; pushes the result onto the stack.
- DEC_ARRAY_REF - Enum constant in enum io.jawk.intermediate.Opcode
-
Decreases the array element reference by one; pushes the result onto the stack.
- DEC_DOLLAR_REF - Enum constant in enum io.jawk.intermediate.Opcode
-
Decreases the input field variable by one; pushes the result onto the stack.
- DEC_MAP_REF - Enum constant in enum io.jawk.intermediate.Opcode
-
Decreases the stack-provided array element reference by one.
- decArrayRef(int, boolean) - Method in class io.jawk.intermediate.AwkTuples
-
decArrayRef.
- decDollarRef() - Method in class io.jawk.intermediate.AwkTuples
-
decDollarRef.
- decMapRef() - Method in class io.jawk.intermediate.AwkTuples
-
Decrements a stack-provided associative-array element reference.
- DEFAULT_CONVFMT - Static variable in class io.jawk.Awk
-
POSIX default number-to-string conversion format (
"%.6g"). - DEFAULT_FS - Static variable in class io.jawk.Awk
-
POSIX default field separator (
" "). - DEFAULT_OFMT - Static variable in class io.jawk.Awk
-
POSIX default output number format (
"%.6g"). - DEFAULT_OFS - Static variable in class io.jawk.Awk
-
POSIX default output field separator (
" "). - DEFAULT_ORS - Static variable in class io.jawk.Awk
-
POSIX default output record separator (
"\n"). - DEFAULT_RS - Static variable in class io.jawk.Awk
-
POSIX default record separator (
"\n"). - DEFAULT_SETTINGS - Static variable in class io.jawk.util.AwkSettings
-
Shared immutable settings instance representing the default configuration.
- DEFAULT_SUBSEP - Static variable in class io.jawk.Awk
-
POSIX default subscript separator (
"\034"). - DELETE_ARRAY - Enum constant in enum io.jawk.intermediate.Opcode
-
Delete the specified array.
- DELETE_ARRAY_ELEMENT - Enum constant in enum io.jawk.intermediate.Opcode
-
Deletes an entry in an array.
- DELETE_MAP_ELEMENT - Enum constant in enum io.jawk.intermediate.Opcode
-
Deletes an entry in a stack-provided associative array.
- deleteArray(int, boolean) - Method in class io.jawk.intermediate.AwkTuples
-
deleteArray.
- deleteArrayElement(int, boolean) - Method in class io.jawk.intermediate.AwkTuples
-
deleteArrayElement.
- deleteMapElement() - Method in class io.jawk.intermediate.AwkTuples
-
Deletes a stack-provided associative-array element.
- DEREF_ARRAY - Enum constant in enum io.jawk.intermediate.Opcode
-
Constant
DEREF_ARRAY=336 - dereference(int, boolean, boolean) - Method in class io.jawk.intermediate.AwkTuples
-
dereference.
- DEREFERENCE - Enum constant in enum io.jawk.intermediate.Opcode
-
Obtains an item from the variable manager and push it onto the stack.
- dereferenceArray() - Method in class io.jawk.intermediate.AwkTuples
-
dereferenceArray.
- DESCRIPTION_COMMAND_LINE_SCRIPT - Static variable in class io.jawk.util.ScriptSource
-
Constant
DESCRIPTION_COMMAND_LINE_SCRIPT="<command-line-supplied-script>" - DestDirClassLoader - Class in io.jawk.util
-
Load classes from a particular directory, disregarding the environmental class-path setting.
- DestDirClassLoader(String) - Constructor for class io.jawk.util.DestDirClassLoader
-
Constructor for DestDirClassLoader.
- DIV_EQ - Enum constant in enum io.jawk.intermediate.Opcode
-
Divides the contents of the variable by an adjustment value; assigns the result to the variable and pushes the result onto the stack.
- DIV_EQ_ARRAY - Enum constant in enum io.jawk.intermediate.Opcode
-
Divides the contents of an indexed array by an adjustment value; assigns the result to the array and pushes the result onto the stack.
- DIV_EQ_INPUT_FIELD - Enum constant in enum io.jawk.intermediate.Opcode
-
Divides the contents of an input field by an adjustment value; assigns the result to the input field and pushes the result onto the stack.
- DIV_EQ_MAP_ELEMENT - Enum constant in enum io.jawk.intermediate.Opcode
-
Divides the contents of a stack-provided associative-array element by an adjustment value; assigns the result to the array and pushes the result onto the stack.
- divEq(int, boolean) - Method in class io.jawk.intermediate.AwkTuples
-
divEq.
- divEqArray(int, boolean) - Method in class io.jawk.intermediate.AwkTuples
-
divEqArray.
- divEqInputField() - Method in class io.jawk.intermediate.AwkTuples
-
divEqInputField.
- divEqMapElement() - Method in class io.jawk.intermediate.AwkTuples
-
Applies
/=to a stack-provided associative-array element. - divide() - Method in class io.jawk.intermediate.AwkTuples
-
divide.
- DIVIDE - Enum constant in enum io.jawk.intermediate.Opcode
-
Numerically divides the top two elements of the stack with the result pushed onto the stack.
- dump(PrintStream) - Method in class io.jawk.frontend.AstNode
-
Dump a meaningful text representation of this abstract syntax tree node to the output (print) stream.
- dump(PrintStream) - Method in class io.jawk.intermediate.AwkTuples
-
Dumps the queued tuples to the provided
PrintStream. - dump(String, InputStream, PrintStream) - Static method in class io.jawk.jrt.DataPump
-
Allocate the data pump and start the thread.
- dup() - Method in class io.jawk.intermediate.AwkTuples
-
dup.
- DUP - Enum constant in enum io.jawk.intermediate.Opcode
-
Duplicates the top-of-stack on the stack.
E
- empty() - Static method in class io.jawk.backend.ProfilingReport
-
Returns an empty profiling report.
- EndException - Exception in io.jawk.jrt
-
Thrown when exit() is called within a Jawk script.
- EndException() - Constructor for exception io.jawk.jrt.EndException
-
Constructor for EndException.
- EndException(String) - Constructor for exception io.jawk.jrt.EndException
-
Constructor for EndException.
- ENSURE_ARRAY_ELEMENT - Enum constant in enum io.jawk.intermediate.Opcode
-
Dereferences an associative-array element as an array, creating a nested array when the element is currently blank or uninitialized.
- ensureArrayElement() - Method in class io.jawk.intermediate.AwkTuples
-
Dereferences an associative-array element as a nested array, creating it if needed.
- ENVIRON_OFFSET - Enum constant in enum io.jawk.intermediate.Opcode
-
Assign the ENVIRON variable offset.
- environOffset(int) - Method in class io.jawk.intermediate.AwkTuples
-
environOffset.
- errorStream(PrintStream) - Method in class io.jawk.Awk.AwkRunBuilder
-
Sets the stream used for the stderr output of spawned processes (e.g.
system("...")). - eval(AwkExpression) - Method in class io.jawk.Awk
-
Evaluates a compiled expression using a fresh isolated runtime.
- eval(AwkExpression) - Method in class io.jawk.backend.AVM
-
Evaluates a compiled expression against the AVM state exactly as it currently stands.
- eval(AwkExpression, InputSource) - Method in class io.jawk.Awk
-
Evaluates a compiled expression against one structured record source using a fresh isolated runtime.
- eval(AwkExpression, InputSource) - Method in class io.jawk.backend.AVM
-
Evaluates a compiled expression against the supplied input source.
- eval(AwkExpression, InputSource, Map<String, Object>) - Method in class io.jawk.backend.AVM
-
Evaluates a compiled expression against the supplied input source with per-call variable overrides.
- eval(AwkExpression, String) - Method in class io.jawk.Awk
-
Evaluates a compiled expression against one text record using a fresh isolated runtime.
- eval(Reader, ScriptContext) - Method in class io.jawk.jsr223.JawkScriptEngine
- eval(String) - Method in class io.jawk.Awk
-
Evaluates the specified AWK expression (not a full script, just an expression) and returns the value of this expression.
- eval(String, InputSource) - Method in class io.jawk.Awk
- eval(String, String) - Method in class io.jawk.Awk
-
Evaluates the specified AWK expression (not a full script, just an expression) and returns the value of this expression.
- eval(String, ScriptContext) - Method in class io.jawk.jsr223.JawkScriptEngine
- execute() - Method in class io.jawk.Awk.AwkRunBuilder
-
Executes the script and returns the printed output as a
String. - execute(AwkProgram, InputSource) - Method in class io.jawk.backend.AVM
-
Executes a compiled AWK program with the current runtime defaults.
- execute(AwkProgram, InputSource, List<String>) - Method in class io.jawk.backend.AVM
-
Executes a compiled AWK program with explicit runtime arguments.
- execute(AwkProgram, InputSource, List<String>, Map<String, Object>) - Method in class io.jawk.backend.AVM
-
Executes a compiled AWK program with explicit runtime arguments and variable overrides.
- execute(AwkSink) - Method in class io.jawk.Awk.AwkRunBuilder
-
Executes the script, sending output to the specified
AwkSink. - execute(OutputStream) - Method in class io.jawk.Awk.AwkRunBuilder
-
Executes the script, sending output to the specified
OutputStream. - execute(PrintStream) - Method in class io.jawk.Awk.AwkRunBuilder
-
Executes the script, sending output to the specified
PrintStream. - execute(Appendable) - Method in class io.jawk.Awk.AwkRunBuilder
-
Executes the script, sending output to the specified
Appendable(such asStringBuilderorStringWriter). - executePersistingGlobals(AwkProgram, InputSource) - Method in class io.jawk.backend.AVM
-
Executes a compiled AWK program while persisting user-defined global variables across repeated executions on this AVM instance.
- executePersistingGlobals(AwkProgram, InputSource, List<String>) - Method in class io.jawk.backend.AVM
-
Executes a compiled AWK program while persisting user-defined global variables across repeated executions on this AVM instance.
- executePersistingGlobals(AwkProgram, InputSource, List<String>, Map<String, Object>) - Method in class io.jawk.backend.AVM
-
Executes a compiled AWK program while persisting user-defined global variables across repeated executions on this AVM instance.
- EXIT_CODE_OK - Static variable in exception io.jawk.ExitException
-
Constant
EXIT_CODE_OK=0 - EXIT_WITH_CODE - Enum constant in enum io.jawk.intermediate.Opcode
-
Terminates execution and returns specified exit code.
- EXIT_WITHOUT_CODE - Enum constant in enum io.jawk.intermediate.Opcode
-
Terminates execution without specifying an exit code.
- ExitException - Exception in io.jawk
-
With this Exception, any part of the code may request a
System.exit(code)call with a specific code. - ExitException() - Constructor for exception io.jawk.ExitException
-
Request exit with the
EXIT_CODE_OK. - ExitException(int) - Constructor for exception io.jawk.ExitException
-
Constructor for ExitException.
- ExitException(int, String) - Constructor for exception io.jawk.ExitException
-
Constructor for ExitException.
- ExitException(int, String, Throwable) - Constructor for exception io.jawk.ExitException
-
Constructor for ExitException.
- ExitException(int, Throwable) - Constructor for exception io.jawk.ExitException
-
Constructor for ExitException.
- ExitException(String) - Constructor for exception io.jawk.ExitException
-
Constructor for ExitException.
- exitWithCode() - Method in class io.jawk.intermediate.AwkTuples
-
exitWithCode.
- exitWithoutCode() - Method in class io.jawk.intermediate.AwkTuples
-
exitWithCode.
- exp() - Method in class io.jawk.intermediate.AwkTuples
-
exp.
- EXP - Enum constant in enum io.jawk.intermediate.Opcode
-
Built-in function that pops the top-of-stack, calls the java.lang.Math.exp method with the top-of-stack as the argument, and places the result onto the stack.
- expectsAssocArray(int) - Method in class io.jawk.ext.ExtensionFunction
-
Indicates whether the parameter at the supplied index must be an associative array.
- extension(ExtensionFunction, int, boolean) - Method in class io.jawk.intermediate.AwkTuples
-
Emits an extension invocation tuple.
- EXTENSION - Enum constant in enum io.jawk.intermediate.Opcode
-
Call a function from an extension
- ExtensionFunction - Class in io.jawk.ext
-
Metadata describing a single annotated extension function.
- ExtensionRegistry - Class in io.jawk.ext
-
Registry used by extensions and the CLI to expose ready-to-use extension instances.
F
- FILENAME_OFFSET - Enum constant in enum io.jawk.intermediate.Opcode
-
Assign the FILENAME variable offset.
- filenameOffset(int) - Method in class io.jawk.intermediate.AwkTuples
-
filenameOffset.
- flush() - Method in class io.jawk.jrt.AppendableAwkSink
- flush() - Method in class io.jawk.jrt.AwkSink
-
Flushes any buffered output held by this sink.
- flush() - Method in class io.jawk.jrt.OutputStreamAwkSink
- FNR_OFFSET - Enum constant in enum io.jawk.intermediate.Opcode
-
Assign the FNR variable offset.
- fnrOffset(int) - Method in class io.jawk.intermediate.AwkTuples
-
fnrOffset.
- formatOutputValue(Object, String, Locale) - Static method in class io.jawk.jrt.AwkSink
-
Formats one already-normalized AWK output value.
- freezeMetadata() - Method in class io.jawk.intermediate.AwkTuples
-
Freezes the tuple metadata after compilation so execution can reuse the published maps and sets without creating fresh unmodifiable wrappers.
- from(OutputStream) - Static method in class io.jawk.jrt.AwkSink
-
Creates a sink backed by an
OutputStream. - from(OutputStream, Locale) - Static method in class io.jawk.jrt.AwkSink
-
Creates a sink backed by an
OutputStream. - from(PrintStream) - Static method in class io.jawk.jrt.AwkSink
-
Creates a sink backed by a
PrintStream. - from(PrintStream, Locale) - Static method in class io.jawk.jrt.AwkSink
-
Creates a sink backed by a
PrintStream. - from(Appendable) - Static method in class io.jawk.jrt.AwkSink
-
Creates a sink backed by an
Appendable. - from(Appendable, Locale) - Static method in class io.jawk.jrt.AwkSink
-
Creates a sink backed by an
Appendable. - fromFilenameList() - Method in class io.jawk.jrt.PartitioningReader
-
fromFilenameList.
- fromId(int) - Static method in enum io.jawk.intermediate.Opcode
-
Resolves an opcode enum constant from its serialized numeric identifier.
- FS_OFFSET - Enum constant in enum io.jawk.intermediate.Opcode
-
Assign the FS variable offset.
- fsOffset(int) - Method in class io.jawk.intermediate.AwkTuples
-
fsOffset.
- function(String, int) - Method in class io.jawk.intermediate.AwkTuples
-
function.
- FUNCTION - Enum constant in enum io.jawk.intermediate.Opcode
-
Define a user function.
G
- get(Object) - Method in class io.jawk.jrt.HashAssocArray
-
Returns the value to which the specified key is mapped, normalizing the key first.
- get(Object) - Method in class io.jawk.jrt.SortedAssocArray
-
Returns the value to which the specified key is mapped, normalizing the key first.
- GET_FIRST_AND_REMOVE_FROM_KEYLIST - Enum constant in enum io.jawk.intermediate.Opcode
-
Removes an item from the key list (deque) and pushes it onto the operand stack.
- GET_INPUT_FIELD - Enum constant in enum io.jawk.intermediate.Opcode
-
Push an input field onto the stack.
- GET_INPUT_FIELD_CONST - Enum constant in enum io.jawk.intermediate.Opcode
-
Pushes an input field onto the stack using an embedded field index.
- getAddress() - Method in class io.jawk.intermediate.Tuple.AddressTuple
- getAddress() - Method in class io.jawk.intermediate.Tuple.CallFunctionTuple
- getAddress() - Method in class io.jawk.intermediate.Tuple
-
Returns this tuple's jump/call address, if it has one.
- getARGC() - Method in class io.jawk.backend.AVM
-
getARGC.
- getARGC() - Method in interface io.jawk.jrt.VariableManager
-
getARGC.
- getArgCount() - Method in class io.jawk.intermediate.Tuple.ExtensionTuple
-
Returns the number of extension arguments.
- getARGCVar() - Method in class io.jawk.jrt.JRT
-
Get ARGC from the VariableManager.
- getARGV() - Method in class io.jawk.backend.AVM
-
getARGV.
- getARGV() - Method in interface io.jawk.jrt.VariableManager
-
getARGV.
- getArity() - Method in class io.jawk.ext.ExtensionFunction
-
Returns the minimum number of arguments required to invoke the function.
- getAverageNanos() - Method in class io.jawk.backend.ProfilingReport.Entry
-
Returns the average elapsed time in nanoseconds.
- getAwkSink() - Method in class io.jawk.backend.AVM
-
Returns the default sink used by this runtime.
- getAwkSink() - Method in class io.jawk.jrt.JRT
-
Returns the default output sink used by
printandprintf. - getAwkValue(Map<Object, Object>, Object) - Static method in class io.jawk.jrt.JRT
-
Reads a map element using AWK semantics when the supplied map is backed by an
AssocArray. - getBlockObjects() - Method in class io.jawk.jrt.BlockObject
-
Obtain all chained BlockObjects as a List, including this one.
- getCode() - Method in exception io.jawk.ExitException
-
Returns the code to be passed to the
System.exit(code)call. - getCONVFMT() - Method in class io.jawk.backend.AVM
-
getCONVFMT.
- getCONVFMT() - Method in interface io.jawk.jrt.VariableManager
-
getCONVFMT.
- getCONVFMTString() - Method in class io.jawk.jrt.JRT
-
Returns the current CONVFMT value as a string.
- getCONVFMTVar() - Method in class io.jawk.jrt.JRT
-
Get CONVFMT from the VariableManager.
- getCount() - Method in class io.jawk.backend.ProfilingReport.Entry
-
Returns the number of observed executions.
- getCount() - Method in class io.jawk.intermediate.Tuple.CountTuple
-
Returns the tuple count operand.
- getDeclaringType() - Method in class io.jawk.ext.ExtensionFunction
-
Returns the extension type that declares the underlying Java method.
- getDefaultRS() - Method in class io.jawk.util.AwkSettings
-
Getter for the field
defaultRS. - getDescription() - Method in class io.jawk.util.ScriptSource
-
Getter for the field
description. - getEngineName() - Method in class io.jawk.jsr223.JawkScriptEngineFactory
- getEngineVersion() - Method in class io.jawk.jsr223.JawkScriptEngineFactory
- getExtensionClassName() - Method in class io.jawk.ext.ExtensionFunction
-
Returns the fully-qualified class name of the declaring extension.
- getExtensionFunctions() - Method in class io.jawk.ext.AbstractExtension
-
Returns the mapping between Awk keywords and the functions implemented by this extension.
- getExtensionFunctions() - Method in interface io.jawk.ext.JawkExtension
-
Returns the mapping between Awk keywords and the functions implemented by this extension.
- getExtensionName() - Method in class io.jawk.ext.AbstractExtension
-
getExtensionName.
- getExtensionName() - Method in interface io.jawk.ext.JawkExtension
-
getExtensionName.
- getExtensionName() - Method in class io.jawk.ext.StdinExtension
- getExtensions() - Method in class io.jawk.jsr223.JawkScriptEngineFactory
- getFactory() - Method in class io.jawk.jsr223.JawkScriptEngine
- getFieldIndex() - Method in class io.jawk.intermediate.Tuple.InputFieldTuple
-
Returns the constant input-field index.
- getFields() - Method in interface io.jawk.jrt.InputSource
-
Returns pre-split fields for the current record, or
nullwhen the runtime should split$0using FS. - getFields() - Method in class io.jawk.jrt.StreamInputSource
-
Always returns
nullso that the runtime splits$0using the current field separator (FS). - getFieldSeparator() - Method in class io.jawk.util.AwkSettings
-
Initial Field Separator (FS) value.
- getFILENAME() - Method in class io.jawk.jrt.JRT
-
Get FILENAME as tracked by JRT.
- getFilePath() - Method in class io.jawk.util.ScriptFileSource
-
Getter for the field
filePath. - getFirstAndRemoveFromList() - Method in class io.jawk.intermediate.AwkTuples
-
getFirstAndRemoveFromList.
- getFNR() - Method in class io.jawk.jrt.JRT
-
Get the current FNR value as tracked by JRT.
- getFS() - Method in class io.jawk.backend.AVM
-
getFS.
- getFS() - Method in interface io.jawk.jrt.VariableManager
-
getFS.
- getFSString() - Method in class io.jawk.jrt.JRT
-
Returns the current FS value as a string.
- getFSVar() - Method in class io.jawk.jrt.JRT
-
Get FS from the VariableManager.
- getFunction() - Method in class io.jawk.intermediate.Tuple.ExtensionTuple
-
Returns the extension function metadata.
- getFunctionEntries() - Method in class io.jawk.backend.ProfilingReport
-
Returns function execution statistics sorted by descending total time.
- getFunctionName() - Method in class io.jawk.intermediate.Tuple.CallFunctionTuple
-
Returns the function name.
- getFunctionName() - Method in class io.jawk.intermediate.Tuple.FunctionTuple
-
Returns the function name.
- getFunctionNameSet() - Method in class io.jawk.intermediate.AwkTuples
-
getFunctionNameSet.
- getGlobalVariableAarrayMap() - Method in class io.jawk.intermediate.AwkTuples
-
getGlobalVariableAarrayMap.
- getGlobalVariableOffsetMap() - Method in class io.jawk.intermediate.AwkTuples
-
getGlobalVariableOffsetMap.
- getInputField() - Method in class io.jawk.intermediate.AwkTuples
-
getInputField.
- getInputField(long) - Method in class io.jawk.intermediate.AwkTuples
-
getInputField.
- getInputLine() - Method in class io.jawk.jrt.JRT
-
Getter for the field
inputLine. - getJrt() - Method in class io.jawk.backend.AVM
-
Returns the JRT (Jawk Runtime) instance associated with this interpreter.
- getKeyword() - Method in class io.jawk.ext.ExtensionFunction
-
Returns the Awk keyword mapped to this extension function.
- getLanguageName() - Method in class io.jawk.jsr223.JawkScriptEngineFactory
- getLanguageVersion() - Method in class io.jawk.jsr223.JawkScriptEngineFactory
- getLastAst() - Method in class io.jawk.Awk
-
Returns the last parsed AST produced by the most recent program compilation.
- GETLINE_INPUT - Enum constant in enum io.jawk.intermediate.Opcode
-
Obtains input from stdin/filename-args, stores it into
$0,$1..$NF, and pushes only the status code onto the stack. - GETLINE_INPUT_TO_TARGET - Enum constant in enum io.jawk.intermediate.Opcode
-
Obtains input from stdin/filename-args and pushes the input line and status code onto the stack without updating
$0,$1..$NF. - getlineInput() - Method in class io.jawk.intermediate.AwkTuples
-
getlineInput.
- getlineInputToTarget() - Method in class io.jawk.intermediate.AwkTuples
-
getlineInputToTarget.
- getLineNumber() - Method in class io.jawk.intermediate.Tuple
-
Returns the source line number associated with this tuple.
- getLineNumber() - Method in exception io.jawk.jrt.AwkRuntimeException
-
Returns the line number associated with this exception or
-1if unavailable. - getLocale() - Method in class io.jawk.jrt.AwkSink
-
Returns the locale used by this sink when it renders numeric values.
- getLocale() - Method in class io.jawk.jrt.JRT
-
Returns the locale used for number formatting in this runtime.
- getLocale() - Method in class io.jawk.util.AwkSettings
-
Getter for the field
locale. - getMapVersion() - Method in interface io.jawk.jrt.AssocArray
-
Returns the specification version of the underlying JDK
Mapclass that backs this implementation. - getMapVersion() - Method in class io.jawk.jrt.HashAssocArray
-
Returns the specification version of the underlying
HashMapclass. - getMapVersion() - Method in class io.jawk.jrt.SortedAssocArray
-
Returns the specification version of the underlying
TreeMapclass. - getMethodCallSyntax(String, String, String...) - Method in class io.jawk.jsr223.JawkScriptEngineFactory
- getMimeTypes() - Method in class io.jawk.jsr223.JawkScriptEngineFactory
- getModificationCount() - Method in class io.jawk.util.AwkSettings
-
Returns the number of explicit mutations applied to this settings instance.
- getName() - Method in class io.jawk.backend.ProfilingReport.Entry
-
Returns the tuple type or function name.
- getNames() - Method in class io.jawk.jsr223.JawkScriptEngineFactory
- getNF() - Method in class io.jawk.jrt.JRT
-
Retrieve the current value of NF.
- getNotifierTag() - Method in class io.jawk.jrt.BlockObject
-
Construct a meaningful notifier tag for this BlockObject.
- getNR() - Method in class io.jawk.jrt.JRT
-
Get the current NR value as tracked by JRT.
- getNumActualParams() - Method in class io.jawk.intermediate.Tuple.CallFunctionTuple
-
Returns the number of actual parameters at this call site.
- getNumFormalParams() - Method in class io.jawk.intermediate.Tuple.CallFunctionTuple
-
Returns the number of formal parameters.
- getNumFormalParams() - Method in class io.jawk.intermediate.Tuple.FunctionTuple
-
Returns the number of formal parameters.
- getOFMTString() - Method in class io.jawk.jrt.JRT
-
Get OFMT from the VariableManager.
- getOFS() - Method in class io.jawk.backend.AVM
-
getOFS.
- getOFS() - Method in interface io.jawk.jrt.VariableManager
-
getOFS.
- getOFSString() - Method in class io.jawk.jrt.JRT
-
Returns the current OFS value as a string.
- getOFSVar() - Method in class io.jawk.jrt.JRT
-
Get OFS from the VariableManager.
- getOpcode() - Method in class io.jawk.intermediate.Tuple
-
Returns this tuple's opcode.
- getORS() - Method in class io.jawk.backend.AVM
- getORS() - Method in interface io.jawk.jrt.VariableManager
-
getORS.
- getORSString() - Method in class io.jawk.jrt.JRT
-
Returns the current ORS value as a string.
- getORSVar() - Method in class io.jawk.jrt.JRT
-
Get ORS from the VariableManager.
- getOutputFiles() - Method in class io.jawk.jrt.JRT
-
Getter for the field
outputFiles. - getOutputStatement(String) - Method in class io.jawk.jsr223.JawkScriptEngineFactory
- getParameter(String) - Method in class io.jawk.jsr223.JawkScriptEngineFactory
- getPartitioningReader() - Method in class io.jawk.jrt.JRT
-
Returns the underlying
PartitioningReadercurrently in use by the activeInputSource, ornullif the source is not stream-based. - getPattern() - Method in class io.jawk.intermediate.Tuple.RegexTuple
-
Returns the precompiled regular expression.
- getPrecompiledProgram() - Method in class io.jawk.Cli
-
Returns the precompiled program loaded via the
-Loption, if any. - getPrintStream() - Method in class io.jawk.jrt.AppendableAwkSink
- getPrintStream() - Method in class io.jawk.jrt.AwkSink
-
Returns a
PrintStreamview that receives raw process output written by spawned commands such assystem("..."). - getPrintStream() - Method in class io.jawk.jrt.OutputStreamAwkSink
- getProfilingReport() - Method in class io.jawk.backend.AVM
-
Returns an immutable snapshot of the collected profiling statistics.
- getProgram(String...) - Method in class io.jawk.jsr223.JawkScriptEngineFactory
- getReader() - Method in class io.jawk.util.ScriptFileSource
-
Obtain the
Readerserving the script contents. - getReader() - Method in class io.jawk.util.ScriptSource
-
Obtain the
Readerserving the script contents. - getRecord() - Method in interface io.jawk.jrt.InputSource
-
Deprecated.
- getRecordText() - Method in interface io.jawk.jrt.InputSource
-
Returns the current record text (
$0), ornullwhen the source only exposes pre-split fields for the current record. - getRecordText() - Method in class io.jawk.jrt.StreamInputSource
-
Returns the current record text (
$0), ornullwhen the source only exposes pre-split fields for the current record. - getRegex() - Method in class io.jawk.intermediate.Tuple.RegexTuple
-
Returns the original regular expression text.
- getRLENGTH() - Method in class io.jawk.jrt.JRT
-
Get RLENGTH tracked by JRT.
- getRS() - Method in class io.jawk.backend.AVM
-
getRS.
- getRS() - Method in interface io.jawk.jrt.VariableManager
-
getRS.
- getRSString() - Method in class io.jawk.jrt.JRT
-
Returns the current RS value as a string.
- getRSTART() - Method in class io.jawk.jrt.JRT
-
Get RSTART tracked by JRT (1-based).
- getRSVar() - Method in class io.jawk.jrt.JRT
-
Get RS from the VariableManager.
- getScriptEngine() - Method in class io.jawk.jsr223.JawkScriptEngineFactory
- getScriptSources() - Method in class io.jawk.Cli
-
Returns the list of script sources specified on the command line.
- getSettings() - Method in class io.jawk.Awk
-
Returns the behavioral settings associated with this engine instance.
- getSettings() - Method in class io.jawk.Cli
-
Returns the mutable
AwkSettingsconfigured from the command line. - getSUBSEP() - Method in class io.jawk.backend.AVM
-
getSUBSEP.
- getSUBSEP() - Method in interface io.jawk.jrt.VariableManager
-
getSUBSEP.
- getSUBSEPString() - Method in class io.jawk.jrt.JRT
-
Returns the current SUBSEP value as a string.
- getSUBSEPVar() - Method in class io.jawk.jrt.JRT
-
Get SUBSEP from the VariableManager.
- getTotalNanos() - Method in class io.jawk.backend.ProfilingReport.Entry
-
Returns the total elapsed time in nanoseconds.
- getTupleEntries() - Method in class io.jawk.backend.ProfilingReport
-
Returns tuple execution statistics sorted by descending total time.
- getType() - Method in class io.jawk.intermediate.Tuple.ClassTuple
-
Returns the required runtime type.
- getValue() - Method in class io.jawk.intermediate.Tuple.BooleanTuple
-
Returns the boolean operand.
- getValue() - Method in class io.jawk.intermediate.Tuple.LongTuple
-
Returns the long operand.
- getValue() - Method in class io.jawk.intermediate.Tuple.PushDoubleTuple
-
Returns the literal value.
- getValue() - Method in class io.jawk.intermediate.Tuple.PushLongTuple
-
Returns the literal value.
- getValue() - Method in class io.jawk.intermediate.Tuple.PushStringTuple
-
Returns the literal value.
- getVariableOffset() - Method in class io.jawk.intermediate.Tuple.DereferenceTuple
-
Returns the variable offset.
- getVariableOffset() - Method in class io.jawk.intermediate.Tuple.VariableTuple
-
Returns the variable offset.
- getVariables() - Method in class io.jawk.util.AwkSettings
-
Contains variable assignments which are applied prior to executing the script (-v assignments).
- GOTO - Enum constant in enum io.jawk.intermediate.Opcode
-
Jumps to a specified address.
- gotoAddress(Address) - Method in class io.jawk.intermediate.AwkTuples
-
gotoAddress.
H
- HashAssocArray - Class in io.jawk.jrt
-
An AWK associative array backed by a
HashMap. - HashAssocArray() - Constructor for class io.jawk.jrt.HashAssocArray
- hasInputFields() - Method in class io.jawk.jrt.JRT
- hasMoreElements() - Method in class io.jawk.jrt.CharacterTokenizer
- hasMoreElements() - Method in class io.jawk.jrt.RegexTokenizer
- hasMoreElements() - Method in class io.jawk.jrt.SingleCharacterTokenizer
I
- ifFalse(Address) - Method in class io.jawk.intermediate.AwkTuples
-
ifFalse.
- IFFALSE - Enum constant in enum io.jawk.intermediate.Opcode
-
Pops and evaluates the top-of-stack; if false, it jumps to a specified address.
- ifTrue(Address) - Method in class io.jawk.intermediate.AwkTuples
-
ifTrue.
- IFTRUE - Enum constant in enum io.jawk.intermediate.Opcode
-
Pops and evaluates the top-of-stack; if true, it jumps to a specified address.
- IllegalAwkArgumentException - Exception in io.jawk.jrt
-
Differentiate from IllegalArgumentException to assist in programmatic distinction between Jawk and other argument exception issues.
- IllegalAwkArgumentException(String) - Constructor for exception io.jawk.jrt.IllegalAwkArgumentException
-
Constructor for IllegalAwkArgumentException.
- inc(int, boolean) - Method in class io.jawk.intermediate.AwkTuples
-
inc.
- inc(Object) - Static method in class io.jawk.jrt.JRT
-
Return an object which is numerically equivalent to one plus a given object.
- INC - Enum constant in enum io.jawk.intermediate.Opcode
-
Increases the variable reference by one; pushes the result onto the stack.
- INC_ARRAY_REF - Enum constant in enum io.jawk.intermediate.Opcode
-
Increases the array element reference by one; pushes the result onto the stack.
- INC_DOLLAR_REF - Enum constant in enum io.jawk.intermediate.Opcode
-
Increases the input field variable by one; pushes the result onto the stack.
- INC_MAP_REF - Enum constant in enum io.jawk.intermediate.Opcode
-
Increases the stack-provided array element reference by one.
- incArrayRef(int, boolean) - Method in class io.jawk.intermediate.AwkTuples
-
incArrayRef.
- incDollarRef() - Method in class io.jawk.intermediate.AwkTuples
-
incDollarRef.
- incFNR() - Method in class io.jawk.backend.AVM
-
Increases the FNR variable by 1.
- incFNR() - Method in interface io.jawk.jrt.VariableManager
-
Increases the FNR variable by 1.
- incMapRef() - Method in class io.jawk.intermediate.AwkTuples
-
Increments a stack-provided associative-array element reference.
- incNR() - Method in class io.jawk.backend.AVM
-
Increases the NR variable by 1.
- incNR() - Method in interface io.jawk.jrt.VariableManager
-
Increases the NR variable by 1.
- index() - Method in class io.jawk.intermediate.Address
-
index.
- index() - Method in class io.jawk.intermediate.AwkTuples
-
index.
- INDEX - Enum constant in enum io.jawk.intermediate.Opcode
-
Built-in function that locates a substring within a source string and pushes the location onto the stack.
- init(VariableManager, JRT, AwkSettings) - Method in class io.jawk.ext.AbstractExtension
-
Called after the creation and before normal processing of the extension, pass in the Jawk Runtime Manager and the Variable Manager once.
- init(VariableManager, JRT, AwkSettings) - Method in interface io.jawk.ext.JawkExtension
-
Called after the creation and before normal processing of the extension, pass in the Jawk Runtime Manager and the Variable Manager once.
- init(VariableManager, JRT, AwkSettings) - Method in class io.jawk.ext.StdinExtension
-
Called after the creation and before normal processing of the extension, pass in the Jawk Runtime Manager and the Variable Manager once.
- input(InputSource) - Method in class io.jawk.Awk.AwkRunBuilder
-
Sets a structured
InputSourceto process. - input(InputStream) - Method in class io.jawk.Awk.AwkRunBuilder
-
Sets the byte-stream input to process.
- input(String) - Method in class io.jawk.Awk.AwkRunBuilder
-
Sets the text input to process.
- InputSource - Interface in io.jawk.jrt
-
Strategy for sourcing input records for the AWK main loop.
- INSTANCE - Static variable in class io.jawk.ext.StdinExtension
-
Singleton extension instance backed by
System.in. - intFunc() - Method in class io.jawk.intermediate.AwkTuples
-
intFunc.
- INTFUNC - Enum constant in enum io.jawk.intermediate.Opcode
-
Built-in function that pops the top-of-stack, removes its fractional part, if any, and places the result onto the stack.
- invoke(AbstractExtension, Object[]) - Method in class io.jawk.ext.ExtensionFunction
-
Invokes the underlying Java method on the supplied target instance.
- io.jawk - package io.jawk
- io.jawk.backend - package io.jawk.backend
- io.jawk.ext - package io.jawk.ext
- io.jawk.ext.annotations - package io.jawk.ext.annotations
- io.jawk.frontend - package io.jawk.frontend
- io.jawk.frontend.ast - package io.jawk.frontend.ast
- io.jawk.intermediate - package io.jawk.intermediate
- io.jawk.jrt - package io.jawk.jrt
- io.jawk.jsr223 - package io.jawk.jsr223
- io.jawk.util - package io.jawk.util
- IS_EMPTY_KEYLIST - Enum constant in enum io.jawk.intermediate.Opcode
-
Tests whether the key list (deque) is empty; jumps to the argument address if empty, steps to the next instruction if not.
- IS_IN - Enum constant in enum io.jawk.intermediate.Opcode
-
Returns whether the specified key is in the array.
- isActuallyLong(double) - Static method in class io.jawk.jrt.JRT
-
Determines whether a double value actually represents a long integer within the limits of floating point precision.
- isAllowArraysOfArrays() - Method in class io.jawk.util.AwkSettings
-
Whether to accept gawk-style arrays of arrays syntax such as
a[i][j]and subarray operands in array-only positions such assplit(..., a[i]). - isAppend() - Method in class io.jawk.intermediate.Tuple.CountAndAppendTuple
-
Indicates whether redirected output should append.
- isArray() - Method in class io.jawk.intermediate.Tuple.DereferenceTuple
-
Indicates whether this dereference should initialize an array.
- isDisableOptimize() - Method in class io.jawk.Cli
-
Indicates whether tuple optimization was explicitly disabled.
- isEmptyList(Address) - Method in class io.jawk.intermediate.AwkTuples
-
isEmptyList.
- isEOF() - Method in class io.jawk.intermediate.PositionTracker
-
Indicates whether the tracker has moved past the last tuple.
- isFromFilenameList() - Method in interface io.jawk.jrt.InputSource
-
Indicates whether the current record originates from a named file in the argument list.
- isFromFilenameList() - Method in class io.jawk.jrt.StreamInputSource
-
Indicates whether the current record originates from a named file in the argument list.
- isGlobal() - Method in class io.jawk.intermediate.Tuple.DereferenceTuple
-
Indicates whether the variable offset belongs to the global frame.
- isGlobal() - Method in class io.jawk.intermediate.Tuple.VariableTuple
-
Indicates whether the variable offset belongs to the global frame.
- isGlobalSubstitution() - Method in class io.jawk.intermediate.Tuple.SubstitutionVariableTuple
-
Indicates whether this substitution is global.
- isIn() - Method in class io.jawk.intermediate.AwkTuples
-
isIn.
- isIn(Object) - Method in interface io.jawk.jrt.AssocArray
-
Returns whether a particular key is contained within the associative array.
- isInitial() - Method in class io.jawk.intermediate.Tuple.ExtensionTuple
-
Indicates whether this tuple starts an extension call sequence.
- isJrtManagedSpecialVariable(String) - Static method in class io.jawk.jrt.JRT
-
Returns whether the supplied variable name is managed directly by JRT rather than through the AVM runtime stack.
- isProfiling() - Method in class io.jawk.Cli
-
Indicates whether runtime profiling was requested.
- isSandbox() - Method in class io.jawk.Cli
-
Indicates whether sandbox mode was requested on the command line.
- isUseSortedArrayKeys() - Method in class io.jawk.util.AwkSettings
-
Whether to maintain array keys in sorted order;
falseby default.
J
- JawkAssocArray - Annotation Type in io.jawk.ext.annotations
-
Marks an extension function parameter as requiring an associative array backed by a
Map. - JawkExtension - Interface in io.jawk.ext
-
A Jawk Extension.
- JawkFunction - Annotation Type in io.jawk.ext.annotations
-
Marks a method as the implementation of an Awk extension function.
- JawkScriptEngine - Class in io.jawk.jsr223
-
Simple JSR-223 script engine for Jawk that delegates execution to the
Awkruntime. - JawkScriptEngine(ScriptEngineFactory) - Constructor for class io.jawk.jsr223.JawkScriptEngine
-
Creates a new script engine instance.
- JawkScriptEngineFactory - Class in io.jawk.jsr223
-
ScriptEngineFactory for Jawk.
- JawkScriptEngineFactory() - Constructor for class io.jawk.jsr223.JawkScriptEngineFactory
- JRT - Class in io.jawk.jrt
-
The Jawk runtime coordinator.
- JRT(VariableManager, Locale, AwkSink, PrintStream) - Constructor for class io.jawk.jrt.JRT
-
Create a JRT with explicit default output and error streams.
- jrtClose(String) - Method in class io.jawk.jrt.JRT
-
Attempt to close an open stream, whether it is an input file, output file, input process, or output process.
- jrtCloseAll() - Method in class io.jawk.jrt.JRT
-
jrtCloseAll.
- jrtConsumeCommandInput(String) - Method in class io.jawk.jrt.JRT
-
jrtConsumeCommandInput.
- jrtConsumeCommandInput(String) - Method in class io.jawk.jrt.SandboxedJRT
- jrtConsumeCommandInputForGetline(String) - Method in class io.jawk.jrt.JRT
-
Retrieve the next line of output from a command, executing the command if necessary and store it to $0.
- jrtConsumeFileInput(String) - Method in class io.jawk.jrt.JRT
-
jrtConsumeFileInput.
- jrtConsumeFileInput(String) - Method in class io.jawk.jrt.SandboxedJRT
- jrtConsumeFileInputForGetline(String) - Method in class io.jawk.jrt.JRT
-
jrtConsumeFileInputForGetline.
- jrtGetInputField(long) - Method in class io.jawk.jrt.JRT
-
jrtGetInputField.
- jrtGetInputField(Object) - Method in class io.jawk.jrt.JRT
-
Retrieve the contents of a particular input field.
- jrtGetInputString() - Method in class io.jawk.jrt.JRT
-
Retrieve $0.
- jrtGetPrintStream(String, boolean) - Method in class io.jawk.jrt.JRT
-
Retrieve the PrintStream which writes to a particular file, creating the PrintStream if necessary.
- jrtGetPrintStream(String, boolean) - Method in class io.jawk.jrt.SandboxedJRT
- jrtParseFields() - Method in class io.jawk.jrt.JRT
-
Splits $0 into $1, $2, etc.
- jrtSetInputField(Object, long) - Method in class io.jawk.jrt.JRT
-
Stores value_obj into an input field.
- jrtSetNF(Object) - Method in class io.jawk.jrt.JRT
-
Adjust the current input field list and $0 when NF is updated by the AWK script.
- jrtSpawnForOutput(String) - Method in class io.jawk.jrt.JRT
-
Retrieve the PrintStream which shuttles data to stdin for a process, executing the process if necessary.
- jrtSpawnForOutput(String) - Method in class io.jawk.jrt.SandboxedJRT
- jrtSystem(String) - Method in class io.jawk.jrt.JRT
-
Executes the command specified by cmd and waits for termination, returning an Integer object containing the return code.
- jrtSystem(String) - Method in class io.jawk.jrt.SandboxedJRT
- jump(int) - Method in class io.jawk.intermediate.PositionTracker
-
Jumps directly to the tuple at the supplied queue index.
- jump(Address) - Method in class io.jawk.intermediate.PositionTracker
-
Jumps directly to the tuple identified by the supplied address.
K
- keylist() - Method in class io.jawk.intermediate.AwkTuples
-
key list.
- KEYLIST - Enum constant in enum io.jawk.intermediate.Opcode
-
Retrieves and pushes a set of keys from an associative array onto the stack.
L
- label() - Method in class io.jawk.intermediate.Address
-
The label of the address.
- length(int) - Method in class io.jawk.intermediate.AwkTuples
-
length.
- LENGTH - Enum constant in enum io.jawk.intermediate.Opcode
-
Depending on the argument, pop and evaluate the string length of the top-of-stack or evaluate the string length of $0; in either case, push the result onto the stack.
- LexerException - Exception in io.jawk.frontend.ast
-
Signals a lexical analysis failure while parsing AWK source text.
- LexerException(String, String, int) - Constructor for exception io.jawk.frontend.ast.LexerException
-
Creates a lexer exception annotated with source location information.
- lineNumber() - Method in class io.jawk.intermediate.PositionTracker
-
Returns the source line number associated with the current tuple.
- ListAssocArray - Class in io.jawk.jrt
-
An AWK associative array materialized from a Java
List. - ListAssocArray(List<?>) - Constructor for class io.jawk.jrt.ListAssocArray
-
Creates a hash-backed associative array from the supplied list.
- listAvailableExtensions() - Static method in class io.jawk.Awk
-
Lists metadata for the
JawkExtensionimplementations discovered on the class path. - listExtensions() - Static method in class io.jawk.ext.ExtensionRegistry
-
Returns a snapshot of all registered extensions sorted by name.
- log() - Method in class io.jawk.intermediate.AwkTuples
-
log.
- LOG - Enum constant in enum io.jawk.intermediate.Opcode
-
Built-in function that pops the top-of-stack, calls the java.lang.Math.log method with the top-of-stack as the argument, and places the result onto the stack.
M
- main(String[]) - Static method in class io.jawk.Cli
-
Entry point for the command-line interface.
- mapString() - Method in interface io.jawk.jrt.AssocArray
-
Provides a string representation of this associative array, recursively rendering nested arrays.
- markEvalTupleStream() - Method in class io.jawk.intermediate.AwkTuples
-
Marks this tuple stream as an expression-eval program rather than a full AWK script.
- match() - Method in class io.jawk.intermediate.AwkTuples
-
match.
- MATCH - Enum constant in enum io.jawk.intermediate.Opcode
-
Built-in function that searches a string as input to a regular expression, the location of the match is pushed onto the stack.
- matches() - Method in class io.jawk.intermediate.AwkTuples
-
matches.
- MATCHES - Enum constant in enum io.jawk.intermediate.Opcode
-
Applies a regular expression to the top stack element; pushes 1 if it matches, 0 if it does not match.
- MINUS_EQ - Enum constant in enum io.jawk.intermediate.Opcode
-
Decreases the contents of the variable by an adjustment value; assigns the result to the variable and pushes the result onto the stack.
- MINUS_EQ_ARRAY - Enum constant in enum io.jawk.intermediate.Opcode
-
Decreases the contents of an indexed array by an adjustment value; assigns the result to the array and pushes the result onto the stack.
- MINUS_EQ_INPUT_FIELD - Enum constant in enum io.jawk.intermediate.Opcode
-
Decreases the contents of an input field by an adjustment value; assigns the result to the input field and pushes the result onto the stack.
- MINUS_EQ_MAP_ELEMENT - Enum constant in enum io.jawk.intermediate.Opcode
-
Decreases the contents of a stack-provided associative-array element by an adjustment value; assigns the result to the array and pushes the result onto the stack.
- minusEq(int, boolean) - Method in class io.jawk.intermediate.AwkTuples
-
minusEq.
- minusEqArray(int, boolean) - Method in class io.jawk.intermediate.AwkTuples
-
minusEqArray.
- minusEqInputField() - Method in class io.jawk.intermediate.AwkTuples
-
minusEqInputField.
- minusEqMapElement() - Method in class io.jawk.intermediate.AwkTuples
-
Applies
-=to a stack-provided associative-array element. - mod() - Method in class io.jawk.intermediate.AwkTuples
-
mod.
- MOD - Enum constant in enum io.jawk.intermediate.Opcode
-
Numerically takes the modulus of the top two elements of the stack with the result pushed onto the stack.
- MOD_EQ - Enum constant in enum io.jawk.intermediate.Opcode
-
Takes the modules of the contents of the variable by an adjustment value; assigns the result to the variable and pushes the result onto the stack.
- MOD_EQ_ARRAY - Enum constant in enum io.jawk.intermediate.Opcode
-
Takes the modulus of the contents of an indexed array by an adjustment value; assigns the result to the array and pushes the result onto the stack.
- MOD_EQ_INPUT_FIELD - Enum constant in enum io.jawk.intermediate.Opcode
-
Takes the modulus of the contents of an input field by an adjustment value; assigns the result to the input field and pushes the result onto the stack.
- MOD_EQ_MAP_ELEMENT - Enum constant in enum io.jawk.intermediate.Opcode
-
Takes the modulus of the contents of a stack-provided associative-array element by an adjustment value; assigns the result to the array and pushes the result onto the stack.
- modEq(int, boolean) - Method in class io.jawk.intermediate.AwkTuples
-
modEq.
- modEqArray(int, boolean) - Method in class io.jawk.intermediate.AwkTuples
-
modEqArray.
- modEqInputField() - Method in class io.jawk.intermediate.AwkTuples
-
modEqInputField.
- modEqMapElement() - Method in class io.jawk.intermediate.AwkTuples
-
Applies
%=to a stack-provided associative-array element. - MULT_EQ - Enum constant in enum io.jawk.intermediate.Opcode
-
Multiplies the contents of the variable by an adjustment value; assigns the result to the variable and pushes the result onto the stack.
- MULT_EQ_ARRAY - Enum constant in enum io.jawk.intermediate.Opcode
-
Multiplies the contents of an indexed array by an adjustment value; assigns the result to the array and pushes the result onto the stack.
- MULT_EQ_INPUT_FIELD - Enum constant in enum io.jawk.intermediate.Opcode
-
Multiplies the contents of an input field by an adjustment value; assigns the result to the input field and pushes the result onto the stack.
- MULT_EQ_MAP_ELEMENT - Enum constant in enum io.jawk.intermediate.Opcode
-
Multiplies the contents of a stack-provided associative-array element by an adjustment value; assigns the result to the array and pushes the result onto the stack.
- multEq(int, boolean) - Method in class io.jawk.intermediate.AwkTuples
-
multEq.
- multEqArray(int, boolean) - Method in class io.jawk.intermediate.AwkTuples
-
multEqArray.
- multEqInputField() - Method in class io.jawk.intermediate.AwkTuples
-
multEqInputField.
- multEqMapElement() - Method in class io.jawk.intermediate.AwkTuples
-
Applies
*=to a stack-provided associative-array element. - multiply() - Method in class io.jawk.intermediate.AwkTuples
-
multiply.
- MULTIPLY - Enum constant in enum io.jawk.intermediate.Opcode
-
Numerically multiplies the top two elements of the stack with the result pushed onto the stack.
N
- negate() - Method in class io.jawk.intermediate.AwkTuples
-
negate.
- NEGATE - Enum constant in enum io.jawk.intermediate.Opcode
-
Evaluates the numerical NEGATION of the top stack element; pushes the result onto the stack.
- newRandom(int) - Static method in class io.jawk.jrt.JRT
-
newRandom.
- next() - Method in class io.jawk.intermediate.PositionTracker
-
Advances to the next tuple in sequence.
- nextDouble() - Method in class io.jawk.jrt.BSDRandom
-
Return the next pseudo-random number in the range
[0.0,1.0). - nextElement() - Method in class io.jawk.jrt.CharacterTokenizer
- nextElement() - Method in class io.jawk.jrt.RegexTokenizer
- nextElement() - Method in class io.jawk.jrt.SingleCharacterTokenizer
- nextRecord() - Method in interface io.jawk.jrt.InputSource
-
Advances to the next input record.
- nextRecord() - Method in class io.jawk.jrt.StreamInputSource
-
Advances to the next input record.
- NF_OFFSET - Enum constant in enum io.jawk.intermediate.Opcode
-
Assign the NF variable offset.
- nfOffset(int) - Method in class io.jawk.intermediate.AwkTuples
-
nfOffset.
- nop() - Method in class io.jawk.intermediate.AwkTuples
-
nop.
- NOP - Enum constant in enum io.jawk.intermediate.Opcode
-
A no-operation.
- NOP_SINK - Static variable in class io.jawk.jrt.AwkSink
-
A shared no-op sink that silently discards all output.
- normalizeKey(Object) - Static method in interface io.jawk.jrt.AssocArray
-
Converts a key to the canonical form expected by AWK:
nullandUninitializedObjectmap to the empty string. - normalizeValue(Object, boolean) - Static method in interface io.jawk.jrt.AssocArray
-
Normalizes an externally supplied structured value before the AVM stores it.
- not() - Method in class io.jawk.intermediate.AwkTuples
-
not.
- NOT - Enum constant in enum io.jawk.intermediate.Opcode
-
Evaluates the logical NOT of the top stack element; pushes the result onto the stack.
- NotImplementedError - Error in io.jawk
-
A placeholder for blocks of code which are not implemented.
- NotImplementedError() - Constructor for error io.jawk.NotImplementedError
-
Construct the error without a message string.
- NotImplementedError(String) - Constructor for error io.jawk.NotImplementedError
-
Construct the error with a message string.
- NR_OFFSET - Enum constant in enum io.jawk.intermediate.Opcode
-
Assign the NR variable offset.
- nrOffset(int) - Method in class io.jawk.intermediate.AwkTuples
-
nrOffset.
- NULL_OFFSET - Static variable in class io.jawk.backend.AVM
-
The value of an address which is not yet assigned a tuple index.
O
- OFMT_OFFSET - Enum constant in enum io.jawk.intermediate.Opcode
-
Assign the OFMT variable offset.
- ofmtOffset(int) - Method in class io.jawk.intermediate.AwkTuples
-
ofmtOffset.
- OFS_OFFSET - Enum constant in enum io.jawk.intermediate.Opcode
-
Assign the OFS variable offset.
- ofsOffset(int) - Method in class io.jawk.intermediate.AwkTuples
-
ofsOffset.
- opcode() - Method in class io.jawk.intermediate.PositionTracker
-
Returns the opcode of the current tuple.
- Opcode - Enum in io.jawk.intermediate
- optimize() - Method in class io.jawk.intermediate.AwkTuples
-
Performs tuple queue optimizations such as reachability pruning, redundant eval-global setup removal, and NOP collapsing.
- ORS_OFFSET - Enum constant in enum io.jawk.intermediate.Opcode
-
Assign the ORS variable offset.
- orsOffset(int) - Method in class io.jawk.intermediate.AwkTuples
-
orsOffset.
- OutputStreamAwkSink - Class in io.jawk.jrt
-
Text
AwkSinkbacked by aPrintStream. - OutputStreamAwkSink(OutputStream) - Constructor for class io.jawk.jrt.OutputStreamAwkSink
-
Creates a sink backed by an
OutputStream. - OutputStreamAwkSink(OutputStream, Locale) - Constructor for class io.jawk.jrt.OutputStreamAwkSink
-
Creates a sink backed by an
OutputStream. - OutputStreamAwkSink(PrintStream) - Constructor for class io.jawk.jrt.OutputStreamAwkSink
-
Creates a sink backed directly by a
PrintStream. - OutputStreamAwkSink(PrintStream, Locale) - Constructor for class io.jawk.jrt.OutputStreamAwkSink
-
Creates a sink backed directly by a
PrintStream.
P
- parse(String[]) - Method in class io.jawk.Cli
-
Parses the supplied command-line arguments and configures this instance accordingly.
- parse(List<ScriptSource>) - Method in class io.jawk.frontend.AwkParser
-
Parse the script streamed by script_reader.
- parseCommandLineArguments(String[]) - Static method in class io.jawk.Cli
-
Parses command-line arguments into a new
Cliinstance without executing it. - parseExpression(ScriptSource) - Method in class io.jawk.frontend.AwkParser
-
Parse a single AWK expression and return the corresponding AST.
- parseFieldNumber(Object) - Static method in class io.jawk.jrt.JRT
-
Convert a field designator to a non-negative long, raising an AWK runtime exception when the value is invalid.
- ParserException - Exception in io.jawk.frontend.ast
-
Signals a syntax or grammar violation while parsing AWK source text.
- ParserException(String, String, int) - Constructor for exception io.jawk.frontend.ast.ParserException
-
Creates a parser exception annotated with source location information.
- PartitioningReader - Class in io.jawk.jrt
-
A reader which consumes one record at a time from an underlying input reader.
- PartitioningReader(Reader, String) - Constructor for class io.jawk.jrt.PartitioningReader
-
Construct the partitioning reader.
- PartitioningReader(Reader, String, boolean) - Constructor for class io.jawk.jrt.PartitioningReader
-
Construct the partitioning reader.
- PEEK_ARRAY_ELEMENT - Enum constant in enum io.jawk.intermediate.Opcode
-
Looks up an associative-array element without creating a blank entry when the key is missing.
- peekArrayElement() - Method in class io.jawk.intermediate.AwkTuples
-
Looks up an associative-array element without creating a blank entry when the key is missing.
- PLUS_EQ - Enum constant in enum io.jawk.intermediate.Opcode
-
Increase the contents of the variable by an adjustment value; assigns the result to the variable and pushes the result onto the stack.
- PLUS_EQ_ARRAY - Enum constant in enum io.jawk.intermediate.Opcode
-
Increase the contents of an indexed array by an adjustment value; assigns the result to the array and pushes the result onto the stack.
- PLUS_EQ_INPUT_FIELD - Enum constant in enum io.jawk.intermediate.Opcode
-
Increases the contents of an input field by an adjustment value; assigns the result to the input field and pushes the result onto the stack.
- PLUS_EQ_MAP_ELEMENT - Enum constant in enum io.jawk.intermediate.Opcode
-
Increase the contents of a stack-provided associative-array element by an adjustment value; assigns the result to the array and pushes the result onto the stack.
- plusEq(int, boolean) - Method in class io.jawk.intermediate.AwkTuples
-
plusEq.
- plusEqArray(int, boolean) - Method in class io.jawk.intermediate.AwkTuples
-
plusEqArray.
- plusEqInputField() - Method in class io.jawk.intermediate.AwkTuples
-
plusEqInputField.
- plusEqMapElement() - Method in class io.jawk.intermediate.AwkTuples
-
Applies
+=to a stack-provided associative-array element. - pop() - Method in class io.jawk.intermediate.AwkTuples
-
pop.
- POP - Enum constant in enum io.jawk.intermediate.Opcode
-
Pops an item off the operand stack.
- popSourceLineNumber(int) - Method in class io.jawk.intermediate.AwkTuples
-
popSourceLineNumber.
- populateGlobalVariableNameToOffsetMappings(AwkTuples) - Method in class io.jawk.frontend.AwkParser
-
Adds {varName -> offset} mappings to the tuples so that global variables can be set by the interpreter while processing filename and name=value entries from the command-line.
- populateTuples(AwkTuples) - Method in class io.jawk.frontend.AstNode
-
Appends tuples to the AwkTuples list for this abstract syntax tree node.
- PositionTracker - Class in io.jawk.intermediate
-
Marks a position within the tuple list (queue).
- PositionTracker(List<Tuple>) - Constructor for class io.jawk.intermediate.PositionTracker
-
Creates a tracker positioned at the first tuple in the queue.
- postDec(int, boolean) - Method in class io.jawk.intermediate.AwkTuples
-
postDec.
- POSTDEC - Enum constant in enum io.jawk.intermediate.Opcode
-
Decreases the variable reference by one; pushes the original value onto the stack.
- postInc(int, boolean) - Method in class io.jawk.intermediate.AwkTuples
-
postInc.
- POSTINC - Enum constant in enum io.jawk.intermediate.Opcode
-
Increases the variable reference by one; pushes the original value onto the stack.
- postProcess() - Method in class io.jawk.intermediate.AwkTuples
-
Executed after all tuples are entered in the queue.
- pow() - Method in class io.jawk.intermediate.AwkTuples
-
pow.
- POW - Enum constant in enum io.jawk.intermediate.Opcode
-
Numerically raises the top element to the power of the next element with the result pushed onto the stack.
- POW_EQ - Enum constant in enum io.jawk.intermediate.Opcode
-
Raises the contents of the variable to the power of the adjustment value; assigns the result to the variable and pushes the result onto the stack.
- POW_EQ_ARRAY - Enum constant in enum io.jawk.intermediate.Opcode
-
Raises the contents of an indexed array to the power of an adjustment value; assigns the result to the array and pushes the result onto the stack.
- POW_EQ_INPUT_FIELD - Enum constant in enum io.jawk.intermediate.Opcode
-
Raises the contents of an input field to the power of an adjustment value; assigns the result to the input field and pushes the result onto the stack.
- POW_EQ_MAP_ELEMENT - Enum constant in enum io.jawk.intermediate.Opcode
-
Raises the contents of a stack-provided associative-array element to the power of an adjustment value; assigns the result to the array and pushes the result onto the stack.
- powEq(int, boolean) - Method in class io.jawk.intermediate.AwkTuples
-
powEq.
- powEqArray(int, boolean) - Method in class io.jawk.intermediate.AwkTuples
-
powEqArray.
- powEqInputField() - Method in class io.jawk.intermediate.AwkTuples
-
powEqInputField.
- powEqMapElement() - Method in class io.jawk.intermediate.AwkTuples
-
Applies exponentiation assignment to a stack-provided associative-array element.
- prepareEval(InputSource) - Method in class io.jawk.Awk
-
Prepares the first available record from a structured
InputSourcefor repeated expression evaluation and returns the mutableAVMthat will execute those expressions. - prepareEval(String) - Method in class io.jawk.Awk
-
Prepares one text record for repeated expression evaluation and returns the mutable
AVMthat will execute those expressions. - prepareForEval(InputSource) - Method in class io.jawk.backend.AVM
-
Resets the interpreter to a fresh eval state and binds at most one record from the provided input source as the current input.
- prepareForEval(String) - Method in class io.jawk.backend.AVM
-
Resets the interpreter to a fresh eval state and binds one text record as the current input.
- prepareForExecution(String, String) - Method in class io.jawk.jrt.JRT
-
Resets per-execution JRT state and re-applies the default runtime special variables for a new script or expression execution.
- print(int) - Method in class io.jawk.intermediate.AwkTuples
-
print.
- print(PrintStream) - Method in class io.jawk.backend.ProfilingReport
-
Prints this profiling report to the supplied stream.
- print(String, String, String, Object...) - Method in class io.jawk.jrt.AppendableAwkSink
- print(String, String, String, Object...) - Method in class io.jawk.jrt.AwkSink
-
Writes one AWK
printoperation. - print(String, String, String, Object...) - Method in class io.jawk.jrt.OutputStreamAwkSink
- PRINT - Enum constant in enum io.jawk.intermediate.Opcode
-
Prints N number of items that are on the operand stack.
- PRINT_TO_FILE - Enum constant in enum io.jawk.intermediate.Opcode
-
Prints N number of items that are on the operand stack to a specified file.
- PRINT_TO_PIPE - Enum constant in enum io.jawk.intermediate.Opcode
-
Prints N number of items that are on the operand stack to a process executing a specified command (via a pipe).
- printDefault(Object[]) - Method in class io.jawk.jrt.JRT
-
Writes a standard AWK
printoperation to the default output. - printf(int) - Method in class io.jawk.intermediate.AwkTuples
-
printf.
- printf(String, String, String, String, Object...) - Method in class io.jawk.jrt.AppendableAwkSink
- printf(String, String, String, String, Object...) - Method in class io.jawk.jrt.AwkSink
-
Writes one AWK
printfoperation. - printf(String, String, String, String, Object...) - Method in class io.jawk.jrt.OutputStreamAwkSink
- PRINTF - Enum constant in enum io.jawk.intermediate.Opcode
-
Performs a formatted print of N items that are on the operand stack.
- PRINTF_TO_FILE - Enum constant in enum io.jawk.intermediate.Opcode
-
Performs a formatted print of N items that are on the operand stack to a specified file.
- PRINTF_TO_PIPE - Enum constant in enum io.jawk.intermediate.Opcode
-
Performs a formatted print of N items that are on the operand stack to a process executing a specified command (via a pipe).
- printfDefault(String, Object[]) - Method in class io.jawk.jrt.JRT
-
Writes a formatted AWK output string to the specified sink.
- printfNoCatch(PrintStream, Locale, String, Object...) - Static method in class io.jawk.jrt.JRT
-
printfFunctionNoCatch.
- printfNoCatch(Locale, String, Object...) - Static method in class io.jawk.jrt.JRT
-
printfFunctionNoCatch.
- printfToFile(int, boolean) - Method in class io.jawk.intermediate.AwkTuples
-
printfToFile.
- printfToFile(int, boolean) - Method in class io.jawk.intermediate.SandboxedAwkTuples
- printfToFile(String, boolean, String, Object[]) - Method in class io.jawk.jrt.JRT
-
Writes formatted AWK output to a redirected file.
- printfToPipe(int) - Method in class io.jawk.intermediate.AwkTuples
-
printfToPipe.
- printfToPipe(int) - Method in class io.jawk.intermediate.SandboxedAwkTuples
- printfToProcess(String, String, Object[]) - Method in class io.jawk.jrt.JRT
-
Writes formatted AWK output to a redirected process.
- printToFile(int, boolean) - Method in class io.jawk.intermediate.AwkTuples
-
printToFile.
- printToFile(int, boolean) - Method in class io.jawk.intermediate.SandboxedAwkTuples
- printToFile(String, boolean, Object[]) - Method in class io.jawk.jrt.JRT
-
Writes a standard AWK
printoperation to a redirected file. - printToPipe(int) - Method in class io.jawk.intermediate.AwkTuples
-
printToPipe.
- printToPipe(int) - Method in class io.jawk.intermediate.SandboxedAwkTuples
- printToProcess(String, Object[]) - Method in class io.jawk.jrt.JRT
-
Writes a standard AWK
printoperation to a redirected process. - ProfilingReport - Class in io.jawk.backend
-
Snapshot of tuple and function execution statistics collected by an
AVM. - ProfilingReport.Entry - Class in io.jawk.backend
-
One profiling table row.
- push(Object) - Method in class io.jawk.intermediate.AwkTuples
-
push.
- PUSH_ARGC - Enum constant in enum io.jawk.intermediate.Opcode
-
Push the current ARGC via JRT.
- PUSH_CONVFMT - Enum constant in enum io.jawk.intermediate.Opcode
-
Push the current CONVFMT via JRT.
- PUSH_DOUBLE - Enum constant in enum io.jawk.intermediate.Opcode
-
Pushes a double constant onto the operand stack.
- PUSH_FILENAME - Enum constant in enum io.jawk.intermediate.Opcode
-
Push the current FILENAME via JRT.
- PUSH_FNR - Enum constant in enum io.jawk.intermediate.Opcode
-
Push the current FNR via JRT.
- PUSH_FS - Enum constant in enum io.jawk.intermediate.Opcode
-
Push the current FS via JRT.
- PUSH_LONG - Enum constant in enum io.jawk.intermediate.Opcode
-
Pushes a long constant onto the operand stack.
- PUSH_NF - Enum constant in enum io.jawk.intermediate.Opcode
-
Push the current value of the special variable NF via JRT.
- PUSH_NR - Enum constant in enum io.jawk.intermediate.Opcode
-
Push the current NR via JRT.
- PUSH_OFMT - Enum constant in enum io.jawk.intermediate.Opcode
-
Push the current OFMT via JRT.
- PUSH_OFS - Enum constant in enum io.jawk.intermediate.Opcode
-
Push the current OFS via JRT.
- PUSH_ORS - Enum constant in enum io.jawk.intermediate.Opcode
-
Push the current ORS via JRT.
- PUSH_RLENGTH - Enum constant in enum io.jawk.intermediate.Opcode
-
Push the current RLENGTH via JRT.
- PUSH_RS - Enum constant in enum io.jawk.intermediate.Opcode
-
Push the current RS via JRT.
- PUSH_RSTART - Enum constant in enum io.jawk.intermediate.Opcode
-
Push the current RSTART via JRT.
- PUSH_STRING - Enum constant in enum io.jawk.intermediate.Opcode
-
Pushes a string constant onto the operand stack.
- PUSH_SUBSEP - Enum constant in enum io.jawk.intermediate.Opcode
-
Push the current SUBSEP via JRT.
- pushARGC() - Method in class io.jawk.intermediate.AwkTuples
-
Pushes the current value of
ARGConto the operand stack. - pushCONVFMT() - Method in class io.jawk.intermediate.AwkTuples
-
Pushes the current value of
CONVFMTonto the operand stack. - pushFILENAME() - Method in class io.jawk.intermediate.AwkTuples
-
Pushes the current value of
FILENAMEonto the operand stack. - pushFNR() - Method in class io.jawk.intermediate.AwkTuples
-
Pushes the current value of
FNRonto the operand stack. - pushFS() - Method in class io.jawk.intermediate.AwkTuples
-
Pushes the current value of
FSonto the operand stack. - pushNF() - Method in class io.jawk.intermediate.AwkTuples
-
Pushes the current value of
NFonto the operand stack. - pushNR() - Method in class io.jawk.intermediate.AwkTuples
-
Pushes the current value of
NRonto the operand stack. - pushOFMT() - Method in class io.jawk.intermediate.AwkTuples
-
Pushes the current value of
OFMTonto the operand stack. - pushOFS() - Method in class io.jawk.intermediate.AwkTuples
-
Pushes the current value of
OFSonto the operand stack. - pushORS() - Method in class io.jawk.intermediate.AwkTuples
-
Pushes the current value of
ORSonto the operand stack. - pushRLENGTH() - Method in class io.jawk.intermediate.AwkTuples
-
Pushes the current value of
RLENGTHonto the operand stack. - pushRS() - Method in class io.jawk.intermediate.AwkTuples
-
Pushes the current value of
RSonto the operand stack. - pushRSTART() - Method in class io.jawk.intermediate.AwkTuples
-
Pushes the current value of
RSTARTonto the operand stack. - pushSourceLineNumber(int) - Method in class io.jawk.intermediate.AwkTuples
-
Push the current line number onto the line number stack.
- pushSUBSEP() - Method in class io.jawk.intermediate.AwkTuples
-
Pushes the current value of
SUBSEPonto the operand stack. - put(long, Object) - Method in interface io.jawk.jrt.AssocArray
-
Stores a value using a primitive
longkey, bypassing string parsing. - put(Object, Object) - Method in class io.jawk.jrt.HashAssocArray
-
Associates the specified value with the specified key, normalizing the key to a
Longwhen the key is a valid integer string. - put(Object, Object) - Method in class io.jawk.jrt.SortedAssocArray
-
Associates the specified value with the specified key, normalizing the key to a
Longwhen the key is a valid integer string. - putVariable(String, Object) - Method in class io.jawk.util.AwkSettings
-
Put or replace a variable entry.
R
- rand() - Method in class io.jawk.intermediate.AwkTuples
-
rand.
- RAND - Enum constant in enum io.jawk.intermediate.Opcode
-
Obtains the next random number from the random number generator and push it onto the stack.
- read(char[], int, int) - Method in class io.jawk.jrt.PartitioningReader
- readRecord() - Method in class io.jawk.jrt.PartitioningReader
-
Consume one record from the reader.
- regexp(String) - Method in class io.jawk.intermediate.AwkTuples
-
regexp.
- REGEXP - Enum constant in enum io.jawk.intermediate.Opcode
-
Returns a regex pattern.
- RegexTokenizer - Class in io.jawk.jrt
-
Similar to StringTokenizer, except that tokens are delimited by a regular expression.
- RegexTokenizer(String, String) - Constructor for class io.jawk.jrt.RegexTokenizer
-
Construct a RegexTokenizer.
- register(String, JawkExtension) - Static method in class io.jawk.ext.ExtensionRegistry
-
Registers an extension instance under the supplied name.
- remove(Object) - Method in class io.jawk.jrt.HashAssocArray
-
Removes the mapping for the specified key, trying both the original and its
Longequivalent. - remove(Object) - Method in class io.jawk.jrt.SortedAssocArray
-
Removes the mapping for the specified key, trying both the original and its
Longequivalent. - resetFNR() - Method in class io.jawk.backend.AVM
-
Resets the FNR variable to 0.
- resetFNR() - Method in interface io.jawk.jrt.VariableManager
-
Resets the FNR variable to 0.
- resetProfiling() - Method in class io.jawk.backend.AVM
-
Clears all collected profiling statistics.
- resolve(String) - Static method in class io.jawk.ext.ExtensionRegistry
-
Resolves an extension name to the registered instance.
- restorePersistentMemory(Map<String, Object>) - Method in class io.jawk.backend.AVM
-
Restores the user-defined globals retained by this AVM from a previously captured persistent-memory snapshot.
- RETURN_FROM_FUNCTION - Enum constant in enum io.jawk.intermediate.Opcode
-
Get the return value of the user function that was called
- returnFromFunction() - Method in class io.jawk.intermediate.AwkTuples
-
returnFromFunction.
- RLENGTH_OFFSET - Enum constant in enum io.jawk.intermediate.Opcode
-
Assign the RLENGTH variable offset.
- rlengthOffset(int) - Method in class io.jawk.intermediate.AwkTuples
-
rlengthOffset.
- RS_OFFSET - Enum constant in enum io.jawk.intermediate.Opcode
-
Assign the RS variable offset.
- rsOffset(int) - Method in class io.jawk.intermediate.AwkTuples
-
rsOffset.
- RSTART_OFFSET - Enum constant in enum io.jawk.intermediate.Opcode
-
Assign the RSTART variable offset.
- rstartOffset(int) - Method in class io.jawk.intermediate.AwkTuples
-
rstartOffset.
- run() - Method in class io.jawk.Cli
-
Executes the CLI based on the previously parsed arguments.
- run() - Method in class io.jawk.jrt.DataPump
-
VM entry point for the thread.
S
- SandboxedAVM - Class in io.jawk.backend
-
AVMvariant enforcing sandbox restrictions at runtime. - SandboxedAVM(AwkSettings, Map<String, JawkExtension>) - Constructor for class io.jawk.backend.SandboxedAVM
-
Creates a sandboxed AVM with the provided settings and extension instances.
- SandboxedAVM(AwkSettings, Map<String, JawkExtension>, boolean) - Constructor for class io.jawk.backend.SandboxedAVM
-
Creates a sandboxed AVM with the provided settings, extension instances, and profiling mode.
- SandboxedAwk - Class in io.jawk
-
Awkvariant that enforces sandbox restrictions by delegating to the sandbox-specific tuple and runtime implementations. - SandboxedAwk() - Constructor for class io.jawk.SandboxedAwk
-
Creates a sandboxed AWK instance with default settings and no extensions.
- SandboxedAwk(JawkExtension...) - Constructor for class io.jawk.SandboxedAwk
-
Creates a sandboxed AWK instance with the supplied extensions.
- SandboxedAwk(AwkSettings) - Constructor for class io.jawk.SandboxedAwk
-
Creates a sandboxed AWK instance with the specified settings.
- SandboxedAwk(Collection<? extends JawkExtension>) - Constructor for class io.jawk.SandboxedAwk
-
Creates a sandboxed AWK instance with the supplied extensions.
- SandboxedAwk(Collection<? extends JawkExtension>, AwkSettings) - Constructor for class io.jawk.SandboxedAwk
-
Creates a sandboxed AWK instance with extensions and settings.
- SandboxedAwkTuples - Class in io.jawk.intermediate
-
Variant of
AwkTuplesthat rejects tuple generation for operations not permitted in sandbox mode. - SandboxedAwkTuples() - Constructor for class io.jawk.intermediate.SandboxedAwkTuples
- SandboxedJRT - Class in io.jawk.jrt
-
Runtime component that raises
AwkSandboxExceptionwhen sandboxed code attempts operations that would escape the sandbox. - SandboxedJRT(VariableManager, Locale, AwkSink, PrintStream) - Constructor for class io.jawk.jrt.SandboxedJRT
-
Creates a sandboxed runtime facade with explicit default output settings.
- script(AwkProgram) - Method in class io.jawk.Awk
-
Starts building a run request for a compiled AWK program.
- script(String) - Method in class io.jawk.Awk.AwkRunBuilder
-
Appends an additional AWK script to compile and execute.
- script(String) - Method in class io.jawk.Awk
-
Starts building a run request from an AWK script string.
- ScriptFileSource - Class in io.jawk.util
-
Represents one AWK-script file content source.
- ScriptFileSource(String) - Constructor for class io.jawk.util.ScriptFileSource
-
Constructor for ScriptFileSource.
- ScriptSource - Class in io.jawk.util
-
Represents one AWK-script content source.
- ScriptSource(String, Reader) - Constructor for class io.jawk.util.ScriptSource
-
Constructor for ScriptSource.
- scriptThis() - Method in class io.jawk.intermediate.AwkTuples
-
Emits a tuple that pushes the current script context onto the stack.
- semanticAnalysis() - Method in class io.jawk.frontend.AstNode
-
Apply semantic checks to this node.
- SET_EXIT_ADDRESS - Enum constant in enum io.jawk.intermediate.Opcode
-
Internal.
- SET_NUM_GLOBALS - Enum constant in enum io.jawk.intermediate.Opcode
-
Internal: sets the number of global variables
- SET_RETURN_RESULT - Enum constant in enum io.jawk.intermediate.Opcode
-
Sets the return value of a user function.
- SET_WITHIN_END_BLOCKS - Enum constant in enum io.jawk.intermediate.Opcode
-
Internal.
- setAllowArraysOfArrays(boolean) - Method in class io.jawk.util.AwkSettings
-
Enables or disables gawk-style arrays of arrays syntax such as
a[i][j]and subarray operands in array-only positions such assplit(..., a[i])orfor (k in a[i]). - setARGC(Object) - Method in class io.jawk.jrt.JRT
-
Set ARGC via the VariableManager.
- setAwkSink(AwkSink) - Method in class io.jawk.backend.AVM
-
Sets the sink used by default
printandprintfoperations on this runtime. - setAwkSink(AwkSink) - Method in class io.jawk.jrt.JRT
-
Sets the sink used by default
printandprintfoperations. - setCONVFMT(Object) - Method in class io.jawk.jrt.JRT
-
Set CONVFMT via the VariableManager.
- setDefaultRS(String) - Method in class io.jawk.util.AwkSettings
-
Sets the default RS, when not set by the AWK script
- setErrorStream(PrintStream) - Method in class io.jawk.backend.AVM
-
Sets the stream used for the stderr output of spawned processes (e.g.
system("...")). - setErrorStream(PrintStream) - Method in class io.jawk.jrt.JRT
-
Sets the stream used for the stderr output of spawned processes (e.g.
system("...")). - setExitAddress(Address) - Method in class io.jawk.intermediate.AwkTuples
-
setExitAddress.
- setFieldSeparator(String) - Method in class io.jawk.util.AwkSettings
-
Initial Field Separator (FS) value.
- setFILENAME(String) - Method in class io.jawk.backend.AVM
-
Set the contents of the FILENAME variable.
- setFILENAME(String) - Method in interface io.jawk.jrt.VariableManager
-
Set the contents of the FILENAME variable.
- setFILENAMEViaJrt(String) - Method in class io.jawk.jrt.JRT
-
Set FILENAME through VariableManager and update JRT mirror.
- setFNR(Object) - Method in class io.jawk.jrt.JRT
-
Assign FNR to a specific value; also updates the VariableManager copy.
- setFS(Object) - Method in class io.jawk.jrt.JRT
-
Set FS via the VariableManager.
- setFunctionNameSet(Set<String>) - Method in class io.jawk.intermediate.AwkTuples
-
Accept a set of function names from the parser.
- setInputLine(String) - Method in class io.jawk.jrt.JRT
-
Setter for the field
inputLine. - setLocale(Locale) - Method in class io.jawk.util.AwkSettings
-
Sets the Locale for outputting numbers.
- setNextBlockObject(BlockObject) - Method in class io.jawk.jrt.BlockObject
-
Chain this BlockObject to another BlockObject.
- setNF(Integer) - Method in class io.jawk.backend.AVM
-
Set the contents of the NF variable.
- setNF(Integer) - Method in interface io.jawk.jrt.VariableManager
-
Set the contents of the NF variable.
- setNF(Object) - Method in class io.jawk.jrt.JRT
-
Set NF to the specified value and update $0 and fields accordingly.
- setNR(Object) - Method in class io.jawk.jrt.JRT
-
Assign NR to a specific value; also updates the VariableManager copy.
- setNumGlobals(int) - Method in class io.jawk.intermediate.AwkTuples
-
setNumGlobals.
- setOFMT(Object) - Method in class io.jawk.jrt.JRT
-
Set OFMT via the VariableManager.
- setOFS(Object) - Method in class io.jawk.jrt.JRT
-
Set OFS via the VariableManager.
- setORS(Object) - Method in class io.jawk.jrt.JRT
-
Set ORS via the VariableManager.
- setRecordSeparator(String) - Method in class io.jawk.jrt.PartitioningReader
-
Assign a new record separator for this partitioning reader.
- setRecordSeparator(String) - Method in class io.jawk.jrt.StreamInputSource
-
Propagates a record-separator change to the active
PartitioningReader. - setReturnResult() - Method in class io.jawk.intermediate.AwkTuples
-
setReturnResult.
- setRLENGTH(Object) - Method in class io.jawk.jrt.JRT
-
Set RLENGTH tracked by JRT and mirror to VariableManager.
- setRS(Object) - Method in class io.jawk.jrt.JRT
-
Set RS via the VariableManager and apply it to the current reader if any.
- setRSTART(Object) - Method in class io.jawk.jrt.JRT
-
Set RSTART tracked by JRT (1-based) and mirror to VariableManager.
- setSeed(int) - Method in class io.jawk.jrt.BSDRandom
-
Seed the generator.
- setSUBSEP(Object) - Method in class io.jawk.jrt.JRT
-
Set SUBSEP via the VariableManager.
- setUseSortedArrayKeys(boolean) - Method in class io.jawk.util.AwkSettings
-
Whether to maintain array keys in sorted order;
falseby default. - setVariables(Map<String, Object>) - Method in class io.jawk.util.AwkSettings
-
Contains variable assignments which are applied prior to executing the script (-v assignments).
- setWithinEndBlocks(boolean) - Method in class io.jawk.intermediate.AwkTuples
-
setWithinEndBlocks.
- sin() - Method in class io.jawk.intermediate.AwkTuples
-
sin.
- SIN - Enum constant in enum io.jawk.intermediate.Opcode
-
Built-in function that pops the top-of-stack, calls the java.lang.Math.sin method with the top-of-stack as the argument, and places the result onto the stack.
- SingleCharacterTokenizer - Class in io.jawk.jrt
-
Similar to StringTokenizer, except that tokens are delimited by a single character.
- SingleCharacterTokenizer(String, int) - Constructor for class io.jawk.jrt.SingleCharacterTokenizer
-
Construct a RegexTokenizer.
- snapshotPersistentMemory() - Method in class io.jawk.backend.AVM
-
Captures the user-defined globals currently retained by this AVM for persistent execution.
- SortedAssocArray - Class in io.jawk.jrt
-
An AWK associative array backed by a
TreeMap. - SortedAssocArray() - Constructor for class io.jawk.jrt.SortedAssocArray
-
Creates a new sorted associative array using AWK key ordering.
- split(int) - Method in class io.jawk.intermediate.AwkTuples
-
split.
- split(Object, Object) - Method in class io.jawk.jrt.JRT
-
Splits the string into parts separated by one or more spaces; blank first and last fields are eliminated.
- split(Object, Object, Object) - Method in class io.jawk.jrt.JRT
-
Splits the string into parts separated the regular expression fs.
- SPLIT - Enum constant in enum io.jawk.intermediate.Opcode
-
Built-in function to split a string by a regexp and put the components into an array.
- sprintf(int) - Method in class io.jawk.intermediate.AwkTuples
-
sprintf.
- sprintf(String, Object...) - Method in class io.jawk.jrt.AwkSink
-
Formats a string in the same way as AWK's
sprintf()built-in. - SPRINTF - Enum constant in enum io.jawk.intermediate.Opcode
-
Constant
SPRINTF=270 - sprintfNoCatch(Locale, String, Object...) - Static method in class io.jawk.jrt.JRT
-
sprintfFunctionNoCatch.
- sqrt() - Method in class io.jawk.intermediate.AwkTuples
-
sqrt.
- SQRT - Enum constant in enum io.jawk.intermediate.Opcode
-
Built-in function that pops the top-of-stack, takes its square root, and places the result onto the stack.
- srand(int) - Method in class io.jawk.intermediate.AwkTuples
-
srand.
- SRAND - Enum constant in enum io.jawk.intermediate.Opcode
-
Seeds the random number generator.
- stdinBlockFunction(Object...) - Method in class io.jawk.ext.StdinExtension
-
Returns a block object that waits for stdin readiness and optionally chains to another block.
- StdinExtension - Class in io.jawk.ext
-
Enable stdin processing in Jawk, to be used in conjunction with the -ni parameter.
- StdinExtension() - Constructor for class io.jawk.ext.StdinExtension
-
Creates a
StdinExtensionthat reads fromSystem.in. - StdinExtension(InputStream) - Constructor for class io.jawk.ext.StdinExtension
-
Creates a
StdinExtensionthat reads from the specified input stream. - stdinGetlineFunction() - Method in class io.jawk.ext.StdinExtension
-
Reads the next line from stdin, or the AWK empty string at EOF.
- stdinHasInputFunction() - Method in class io.jawk.ext.StdinExtension
-
Reports whether stdin data is available without blocking.
- StreamInputSource - Class in io.jawk.jrt
-
An
InputSourcethat reads records from anInputStream, traversing theARGVarray to open filenames and applyname=valuevariable assignments exactly like the classic AWK command-line flow. - StreamInputSource(InputStream, VariableManager, JRT) - Constructor for class io.jawk.jrt.StreamInputSource
-
Creates a stream-backed input source.
- SUB_FOR_ARRAY_REFERENCE - Enum constant in enum io.jawk.intermediate.Opcode
-
Built-in function that substitutes an occurrence (or all occurrences) of a string in a particular array cell and replaces it with another.
- SUB_FOR_DOLLAR_0 - Enum constant in enum io.jawk.intermediate.Opcode
-
Built-in function that substitutes an occurrence (or all occurrences) of a string in $0 and replaces it with another.
- SUB_FOR_DOLLAR_REFERENCE - Enum constant in enum io.jawk.intermediate.Opcode
-
Built-in function that substitutes an occurrence (or all occurrences) of a string in a field reference and replaces it with another.
- SUB_FOR_MAP_REFERENCE - Enum constant in enum io.jawk.intermediate.Opcode
-
Built-in function that substitutes an occurrence (or all occurrences) of a string in a particular stack-provided array cell and replaces it with another.
- SUB_FOR_VARIABLE - Enum constant in enum io.jawk.intermediate.Opcode
-
Built-in function that substitutes an occurrence (or all occurrences) of a string in a particular variable and replaces it with another.
- subForArrayReference(int, boolean, boolean) - Method in class io.jawk.intermediate.AwkTuples
-
subForArrayReference.
- subForDollar0(boolean) - Method in class io.jawk.intermediate.AwkTuples
-
subForDollar0.
- subForDollarReference(boolean) - Method in class io.jawk.intermediate.AwkTuples
-
subForDollarReference.
- subForMapReference(boolean) - Method in class io.jawk.intermediate.AwkTuples
-
Applies
sub/gsubto a stack-provided associative-array element. - subForVariable(int, boolean, boolean) - Method in class io.jawk.intermediate.AwkTuples
-
subForVariable.
- SUBSEP_OFFSET - Enum constant in enum io.jawk.intermediate.Opcode
-
Assign the SUBSEP variable offset.
- subsepOffset(int) - Method in class io.jawk.intermediate.AwkTuples
-
subsepOffset.
- substr(int) - Method in class io.jawk.intermediate.AwkTuples
-
substr.
- substr(Object, Object, String) - Static method in class io.jawk.jrt.JRT
-
substr.
- substr(Object, String) - Static method in class io.jawk.jrt.JRT
-
substr.
- SUBSTR - Enum constant in enum io.jawk.intermediate.Opcode
-
Built-in function that pushes a substring of the top-of-stack onto the stack.
- subtract() - Method in class io.jawk.intermediate.AwkTuples
-
subtract.
- SUBTRACT - Enum constant in enum io.jawk.intermediate.Opcode
-
Numerically subtracts the top two elements of the stack with the result pushed onto the stack.
- swap() - Method in class io.jawk.intermediate.AwkTuples
-
swap.
- SWAP - Enum constant in enum io.jawk.intermediate.Opcode
-
Swaps the top two elements of the stack.
- system() - Method in class io.jawk.intermediate.AwkTuples
-
system.
- system() - Method in class io.jawk.intermediate.SandboxedAwkTuples
- SYSTEM - Enum constant in enum io.jawk.intermediate.Opcode
-
Built-in function that executes the top-of-stack as a system command and pushes the return code onto the stack.
T
- THIS - Enum constant in enum io.jawk.intermediate.Opcode
-
Deprecated.
- timeSeed() - Static method in class io.jawk.jrt.JRT
-
timeSeed.
- TO_NUMBER - Enum constant in enum io.jawk.intermediate.Opcode
-
Converts the top-of-stack to a number.
- toAwkString(Object) - Method in class io.jawk.jrt.JRT
-
Convert Strings, Integers, and Doubles to Strings based on the CONVFMT variable contents and the stored Locale.
- toBoolean(Object) - Method in class io.jawk.jrt.JRT
-
Converts an Integer, Double, String, Pattern, or ConditionPair to a boolean.
- toDescriptionString() - Method in class io.jawk.util.AwkSettings
-
toDescriptionString.
- toDouble(Object) - Static method in class io.jawk.jrt.JRT
-
Convert a String, Integer, or Double to Double.
- toExtensionDescription() - Method in class io.jawk.util.AwkSettings
-
Provides a description of extensions that are enabled/disabled.
- toLong(Object) - Static method in class io.jawk.jrt.JRT
-
Convert a String, Long, or Double to Long.
- toLongKey(Object) - Static method in interface io.jawk.jrt.AssocArray
-
Attempts to parse the key as a
Long. - tolower() - Method in class io.jawk.intermediate.AwkTuples
-
tolower.
- TOLOWER - Enum constant in enum io.jawk.intermediate.Opcode
-
Built-in function that converts all the letters in the top-of-stack to lower case and pushes the result onto the stack.
- toNumber() - Method in class io.jawk.intermediate.AwkTuples
-
toNumber.
- toOpcodeString(int) - Static method in class io.jawk.intermediate.AwkTuples
-
toOpcodeString.
- top() - Method in class io.jawk.intermediate.AwkTuples
-
top.
- toString() - Method in class io.jawk.intermediate.Address
- toString() - Method in class io.jawk.intermediate.PositionTracker
- toString() - Method in class io.jawk.intermediate.Tuple.AddressTuple
- toString() - Method in class io.jawk.intermediate.Tuple.BooleanTuple
- toString() - Method in class io.jawk.intermediate.Tuple.CallFunctionTuple
- toString() - Method in class io.jawk.intermediate.Tuple.ClassTuple
- toString() - Method in class io.jawk.intermediate.Tuple.CountAndAppendTuple
- toString() - Method in class io.jawk.intermediate.Tuple.CountTuple
- toString() - Method in class io.jawk.intermediate.Tuple.DereferenceTuple
- toString() - Method in class io.jawk.intermediate.Tuple.ExtensionTuple
- toString() - Method in class io.jawk.intermediate.Tuple.FunctionTuple
- toString() - Method in class io.jawk.intermediate.Tuple.LongTuple
- toString() - Method in class io.jawk.intermediate.Tuple.NoOperandTuple
- toString() - Method in class io.jawk.intermediate.Tuple.PushDoubleTuple
- toString() - Method in class io.jawk.intermediate.Tuple.PushLongTuple
- toString() - Method in class io.jawk.intermediate.Tuple.PushStringTuple
- toString() - Method in class io.jawk.intermediate.Tuple.RegexTuple
- toString() - Method in class io.jawk.intermediate.Tuple.SubstitutionVariableTuple
- toString() - Method in class io.jawk.intermediate.Tuple.VariableTuple
- toString() - Method in class io.jawk.intermediate.UninitializedObject
-
toString.
- toString() - Method in class io.jawk.jrt.BlockObject
-
Ensure non-evaluation of a BlockObject by throwing an AWK Runtime exception, in case it leaks into AWK evaluation space.
- toString() - Method in class io.jawk.jrt.HashAssocArray
- toString() - Method in class io.jawk.jrt.SortedAssocArray
- toString() - Method in class io.jawk.util.ScriptSource
- touch(List<Tuple>) - Method in class io.jawk.intermediate.Tuple.CallFunctionTuple
- touch(List<Tuple>) - Method in class io.jawk.intermediate.Tuple
-
Resolves deferred operands and validates resolved addresses.
- toupper() - Method in class io.jawk.intermediate.AwkTuples
-
toupper.
- TOUPPER - Enum constant in enum io.jawk.intermediate.Opcode
-
Built-in function that converts all the letters in the top-of-stack to upper case and pushes the result onto the stack.
- Tuple - Class in io.jawk.intermediate
-
Represents one instruction in the tuple stream produced by
AwkTuples. - Tuple.AddressTuple - Class in io.jawk.intermediate
-
Tuple for an address operand.
- Tuple.BooleanTuple - Class in io.jawk.intermediate
-
Tuple for boolean operands.
- Tuple.BuiltinVarTuple - Class in io.jawk.intermediate
-
Tuple for JRT-managed built-in variable operations.
- Tuple.CallFunctionTuple - Class in io.jawk.intermediate
-
Tuple for function calls.
- Tuple.ClassTuple - Class in io.jawk.intermediate
-
Tuple for a class check.
- Tuple.CompoundAssignArrayTuple - Class in io.jawk.intermediate
-
Tuple for array compound assignments.
- Tuple.CompoundAssignInputFieldTuple - Class in io.jawk.intermediate
-
Tuple for input-field compound assignments.
- Tuple.CompoundAssignMapElementTuple - Class in io.jawk.intermediate
-
Tuple for stack-provided map element compound assignments.
- Tuple.CompoundAssignTuple - Class in io.jawk.intermediate
-
Tuple for scalar compound assignments.
- Tuple.CountAndAppendTuple - Class in io.jawk.intermediate
-
Tuple for print/printf redirection with an append flag.
- Tuple.CountTuple - Class in io.jawk.intermediate
-
Tuple for opcodes whose single operand is a count.
- Tuple.DereferenceTuple - Class in io.jawk.intermediate
-
Tuple for variable dereference.
- Tuple.ExtensionTuple - Class in io.jawk.intermediate
-
Tuple for extension function invocations.
- Tuple.FunctionTuple - Class in io.jawk.intermediate
-
Tuple for function definitions.
- Tuple.InputFieldTuple - Class in io.jawk.intermediate
-
Tuple for a constant input-field index.
- Tuple.LongTuple - Class in io.jawk.intermediate
-
Tuple for a long operand that is not interpreted by the tuple itself.
- Tuple.NoOperandTuple - Class in io.jawk.intermediate
-
Tuple for opcodes without operands.
- Tuple.PushDoubleTuple - Class in io.jawk.intermediate
-
Tuple for a double literal.
- Tuple.PushLongTuple - Class in io.jawk.intermediate
-
Tuple for a long literal.
- Tuple.PushStringTuple - Class in io.jawk.intermediate
-
Tuple for a string literal.
- Tuple.RegexTuple - Class in io.jawk.intermediate
-
Tuple for a precompiled literal regular expression.
- Tuple.SubstitutionVariableTuple - Class in io.jawk.intermediate
-
Tuple for sub/gsub against variable-backed values.
- Tuple.VariableTuple - Class in io.jawk.intermediate
-
Tuple for variable offset/global operands.
U
- UNARY_PLUS - Enum constant in enum io.jawk.intermediate.Opcode
-
Converts the top stack element to a number; pushes the result onto the stack.
- unaryPlus() - Method in class io.jawk.intermediate.AwkTuples
-
unary plus.
- UninitializedObject - Class in io.jawk.intermediate
-
UninitializedObject class.
- UninitializedObject() - Constructor for class io.jawk.intermediate.UninitializedObject
-
Constructor for UninitializedObject.
- update(boolean, boolean) - Method in class io.jawk.jrt.ConditionPair
-
Update the status of the condition pair according to whether the begin and end conditions match or not
- USE_AS_COMMAND_INPUT - Enum constant in enum io.jawk.intermediate.Opcode
-
Obtains input from a command (process) and pushes input line and status code onto the stack.
- USE_AS_FILE_INPUT - Enum constant in enum io.jawk.intermediate.Opcode
-
Obtains input from a file and pushes input line and status code onto the stack.
- useAsCommandInput() - Method in class io.jawk.intermediate.AwkTuples
-
useAsCommandInput.
- useAsCommandInput() - Method in class io.jawk.intermediate.SandboxedAwkTuples
- useAsFileInput() - Method in class io.jawk.intermediate.AwkTuples
-
useAsFileInput.
- useAsFileInput() - Method in class io.jawk.intermediate.SandboxedAwkTuples
V
- value() - Element in annotation type io.jawk.ext.annotations.JawkFunction
- valueOf(String) - Static method in enum io.jawk.intermediate.Opcode
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum io.jawk.intermediate.Opcode
-
Returns an array containing the constants of this enum type, in the order they are declared.
- variable(String, Object) - Method in class io.jawk.Awk.AwkRunBuilder
-
Sets a single per-call variable override.
- VariableManager - Interface in io.jawk.jrt
-
The AWK Variable Manager.
- variables(Map<String, Object>) - Method in class io.jawk.Awk.AwkRunBuilder
-
Sets per-call variable overrides applied on top of the settings-level variables.
- verifyArgCount(int) - Method in class io.jawk.ext.ExtensionFunction
-
Verifies that the provided argument count satisfies the arity constraints encoded in the metadata.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
getRecordText()