Index

A B C D E F G H I J K L M N O P R S T U V W 
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.
advanceToNextFile() - Method in class io.jawk.jrt.StreamInputSource
Advance to the next input file for the per-file main input loop used when BEGINFILE/ENDFILE rules or nextfile are present.
advanceToNextFile(InputSource) - Method in class io.jawk.jrt.JRT
Advance the main input to the next input file, applying pending name=value command-line assignments along the way.
AppendableAwkSink - Class in io.jawk.jrt
Text AwkSink backed by an Appendable.
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.
applySpecialVariable(String, Object) - Method in class io.jawk.jrt.JRT
Applies the assignment of a single JRT-managed special variable.
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, IGNORECASE).
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.
asort(Map<Object, Object>, Map<Object, Object>, Object) - Method in class io.jawk.ext.GawkExtension
Sorts an array by value, optionally writing the result to another array.
asorti(Map<Object, Object>, Map<Object, Object>, Object) - Method in class io.jawk.ext.GawkExtension
Sorts an array by index, optionally writing the result to another array.
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 and pushes the assigned value back onto the stack.
ASSIGN_ARGC - Enum constant in enum io.jawk.intermediate.Opcode
Assign to ARGC via JRT and push the assigned value.
ASSIGN_ARGIND - Enum constant in enum io.jawk.intermediate.Opcode
Assigns the top of the stack to ARGIND, managed by the JRT.
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_ERRNO - Enum constant in enum io.jawk.intermediate.Opcode
Assigns the top of the stack to ERRNO, managed by the JRT.
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_IGNORECASE - Enum constant in enum io.jawk.intermediate.Opcode
Assigns the top of the stack to IGNORECASE, managed by the JRT.
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_NOPUSH - Enum constant in enum io.jawk.intermediate.Opcode
Assigns the top-of-stack to a variable without pushing the assigned value back onto the stack.
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.
assignARGIND() - Method in class io.jawk.intermediate.AwkTuples
Emits the tuple assigning the top of the stack to ARGIND, managed by the JRT.
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).
assignERRNO() - Method in class io.jawk.intermediate.AwkTuples
Emits the tuple assigning the top of the stack to ERRNO, managed by the JRT.
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.
assignIGNORECASE() - Method in class io.jawk.intermediate.AwkTuples
Emits a tuple assigning the top of the stack to IGNORECASE.
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.
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.BuiltinFunction
The atan2 function.
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 with default extensions.
Awk(Awk.ExtensionSetup) - Constructor for class io.jawk.Awk
 
Awk(Awk.ExtensionSetup, AwkSettings) - Constructor for class io.jawk.Awk
 
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.
AwkParser(Map<String, ExtensionFunction>, boolean, boolean) - Constructor for class io.jawk.frontend.AwkParser
Creates a parser with an explicit source-inclusion policy.
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 print and printf statements.
AwkSink() - Constructor for class io.jawk.jrt.AwkSink
Creates a sink using the default Locale.US formatting rules.
AwkSink(Locale) - Constructor for class io.jawk.jrt.AwkSink
Creates a sink using the supplied locale for numeric formatting.
AwkTuples - Class in io.jawk.intermediate
AwkTuples class.
AwkTuples() - Constructor for class io.jawk.intermediate.AwkTuples
 

B

BEFORE_START_HOOKS - Enum constant in enum io.jawk.intermediate.Opcode
Runs the extension beforeStart hooks.
beforeStart(AVM, JRT) - Method in class io.jawk.ext.AbstractExtension
Called after the runtime global variable slots have been allocated and before the first executable tuple runs.
beforeStart(AVM, JRT) - Method in interface io.jawk.ext.JawkExtension
Called after the runtime global variable slots have been allocated and before the first executable tuple runs.
beforeStartHooks() - Method in class io.jawk.intermediate.AwkTuples
Emits the tuple that runs the extension beforeStart hooks, placed at the end of the preamble.
bindtextdomain(Object, Object) - Method in class io.jawk.ext.GawkExtension
Binds a text domain to a message catalog directory and returns the binding, mirroring gawk's bindtextdomain().
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.
BlockObject() - Constructor for class io.jawk.jrt.BlockObject
Constructor for BlockObject.
booleanValue() - Method in class io.jawk.ext.GawkBool
Returns the boolean value.
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.
BuiltinFunction - Enum in io.jawk.intermediate
The standard AWK built-in functions, the single source of truth shared by the parser (recognition and dispatch) and the runtime (the FUNCTAB listing).

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.
caseAwarePattern(Pattern) - Method in class io.jawk.jrt.JRT
Returns the pattern itself, or its case-insensitive twin when IGNORECASE is set.
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.
checkNumArgs(Object[], int) - Static method in class io.jawk.ext.AbstractExtension
Verifies that an exact number of arguments has been passed in by checking the length of the argument array.
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.BuiltinFunction
The close function.
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.
collectRawValueIndexes(int) - Method in class io.jawk.ext.ExtensionFunction
Collects the indexes of arguments that should be evaluated without autoconverting untyped values to assigned scalar blanks.
collectRegexpIndexes(int) - Method in class io.jawk.ext.ExtensionFunction
Collects the indexes of arguments where a regexp literal keeps its precompiled pattern instead of being evaluated as $0 ~ /re/.
compare2(Object, Object, int) - Static method in class io.jawk.jrt.JRT
Compares two objects.
compare2(Object, Object, int, boolean) - Static method in class io.jawk.jrt.JRT
Compares two objects like JRT.compare2(Object, Object, int), folding case in string comparisons when ignoreCase is set: gawk's IGNORECASE applies to string relational operators, not only to regexp operations.
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 AVM runtime.
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 AVM runtime.
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
 
compileExpression(String, boolean, T) - Method in class io.jawk.Awk
Compiles an AWK expression into the supplied tuple implementation.
compileProgram(List<ScriptSource>, boolean, T) - Method in class io.jawk.Awk
Compiles a full AWK program into the supplied tuple implementation.
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.
CONDITION_PAIR_ENTER - Enum constant in enum io.jawk.intermediate.Opcode
Marks the range pattern identified by the tuple's operand as active, after its start condition matched the current record.
CONDITION_PAIR_IN_RANGE - Enum constant in enum io.jawk.intermediate.Opcode
Pushes whether the range pattern identified by the tuple's operand is currently active (i.e. its start condition matched a previous record and its end condition has not matched yet).
CONDITION_PAIR_LEAVE - Enum constant in enum io.jawk.intermediate.Opcode
Marks the range pattern identified by the tuple's operand as inactive, after its end condition matched the current record.
conditionPair() - Method in class io.jawk.intermediate.AwkTuples
Deprecated.
Evaluates both range conditions on every record, which is incorrect when the conditions have side effects. Use AwkTuples.conditionPairInRange(long), AwkTuples.conditionPairEnter(long) and AwkTuples.conditionPairLeave(long) with conditional jumps instead.
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.
conditionPairEnter(long) - Method in class io.jawk.intermediate.AwkTuples
Marks the specified range pattern as active, after its start condition matched the current record.
conditionPairInRange(long) - Method in class io.jawk.intermediate.AwkTuples
Pushes whether the specified range pattern is currently active, i.e. its start condition matched a previous record and its end condition hasn't matched yet.
conditionPairLeave(long) - Method in class io.jawk.intermediate.AwkTuples
Marks the specified range pattern as inactive, after its end condition matched the current record.
CONSUME_FILE_INPUT - Enum constant in enum io.jawk.intermediate.Opcode
Consume the next record of the current input file only; assigning $0 and recalculating $1, $2, etc.
CONSUME_INPUT - Enum constant in enum io.jawk.intermediate.Opcode
Consume next line of input; assigning $0 and recalculating $1, $2, etc.
consumeCurrentFileInput(InputSource) - Method in class io.jawk.jrt.JRT
Attempt to consume one record from the current input file only, without ever advancing to the next input file.
consumeCurrentFileInputToTarget(InputSource) - Method in class io.jawk.jrt.JRT
Attempt to consume one record of the current input file only for getline target, returning the input value and leaving the current input record state untouched.
consumeFileInput(Address) - Method in class io.jawk.intermediate.AwkTuples
Emits the tuple consuming one record of the current input file only, jumping to the given address at end of the current file.
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 the input value 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 regular Map semantics.
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.BuiltinFunction
The cos function.
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 AVM instance.
createAvm() - Method in class io.jawk.SandboxedAwk
 
createAvm(boolean) - Method in class io.jawk.Awk
Creates a reusable runtime backed by one AVM instance, optionally collecting runtime profiling statistics.
createAvm(boolean) - Method in class io.jawk.SandboxedAwk
 
createAvm(AwkSettings) - Method in class io.jawk.Awk
Creates an AVM using the provided runtime settings.
createAvm(AwkSettings) - Method in class io.jawk.SandboxedAwk
 
createAvm(AwkSettings, boolean) - Method in class io.jawk.Awk
Creates an AVM using the provided runtime settings and profiling mode.
createAvm(AwkSettings, 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 Map for 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).
createJrt() - Method in class io.jawk.backend.AVM
 
createJrt() - Method in class io.jawk.backend.SandboxedAVM
 
createSorted() - Static method in interface io.jawk.jrt.AssocArray
Creates a new sorted associative array (backed by TreeMap with 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.
dcgettext(Object, Object, Object) - Method in class io.jawk.ext.GawkExtension
Returns the translation of a string in the given text domain and locale category.
dcngettext(Object, Object, Object, Object, Object) - Method in class io.jawk.ext.GawkExtension
Returns the singular or plural form of a message according to a number.
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.
doubleValue() - Method in class io.jawk.ext.GawkBool
doubleValue() - Method in class io.jawk.jrt.StrNum
Returns this scalar's numeric value.
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.
dynamicPattern(String) - Method in class io.jawk.jrt.JRT
Compiles a dynamic (string) regexp with the flags implied by the current IGNORECASE setting, caching compiled patterns by expression text: dynamic regexps are typically reused across records (for example a gsub(dynstr, ...) loop), and the JDK's Pattern.compile(String, int) reparses the expression on every call.

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.
enter() - Method in class io.jawk.jrt.ConditionPair
Marks the range as started, after the start condition matched the current record.
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
Evaluates the specified AWK expression using a structured InputSource to populate $0, $1, etc.
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
EXEC_NEXTFILE - Enum constant in enum io.jawk.intermediate.Opcode
Executes the nextfile statement: abandons the current input file and resumes the per-file input loop.
execNextfile() - Method in class io.jawk.intermediate.AwkTuples
Emits the tuple executing the nextfile statement at runtime.
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 as StringBuilder or StringWriter).
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.BuiltinFunction
The exp function.
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 factories.

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.
finalize() - Method in class io.jawk.Awk
Final empty finalizer to mitigate finalizer attacks flagged by SpotBugs.
findClass(String) - Method in class io.jawk.util.DestDirClassLoader
floatValue() - Method in class io.jawk.ext.GawkBool
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.
ForInKeyOrder - Interface in io.jawk.ext
Supplies the key traversal order used by for (index in array) statements.
formatOutputValue(Object, String, Locale) - Static method in class io.jawk.jrt.AwkSink
Formats one already-normalized AWK output value.
formatPrintArgument(Object, String) - Method in class io.jawk.jrt.AwkSink
Formats one operand of a plain AWK print statement.
formatPrintfResult(String, Object...) - Method in class io.jawk.jrt.AwkSink
Formats one printf result string using this sink's locale.
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

GawkBool - Class in io.jawk.ext
Numeric value carrying gawk's boolean type attribute.
GawkBool(boolean) - Constructor for class io.jawk.ext.GawkBool
Creates a gawk boolean-number value.
GawkExtension - Class in io.jawk.ext
GNU awk compatibility extension for array sorting and type introspection.
GawkExtension() - Constructor for class io.jawk.ext.GawkExtension
 
gensub(Object, Object, Object, Object) - Method in class io.jawk.ext.GawkExtension
Performs a small gawk-compatible gensub() substitution.
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.
getAddress() - Method in class io.jawk.intermediate.Tuple.IndirectFunctionTarget
Returns the resolved function entry point.
getAddresses() - Method in class io.jawk.intermediate.Tuple
Returns every jump/call address carried by this tuple.
getAddresses() - Method in class io.jawk.intermediate.Tuple.IndirectCallTuple
 
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.
getARGIND() - Method in class io.jawk.jrt.JRT
Get ARGIND as tracked by JRT.
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.
getAssocArrayValue(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.
getAverageNanos() - Method in class io.jawk.backend.ProfilingReport.Entry
Returns the average elapsed time in nanoseconds.
getAwkName() - Method in enum io.jawk.intermediate.BuiltinFunction
Returns the name of the function as it appears in AWK source code.
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 print and printf.
getAwkStringEntry(Map<Object, Object>, Object) - Method in class io.jawk.jrt.JRT
Returns the AWK string value of an associative array entry, or null when the array has no such key.
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.
getCurrentFileOpenError() - Method in class io.jawk.jrt.StreamInputSource
Returns the error description recorded when the current input file could not be opened by StreamInputSource.advanceToNextFile(), or null when the current input is readable.
getCurrentLineNumber() - Method in class io.jawk.backend.AVM
Returns the script line of the extension call currently being dispatched, for extension-emitted diagnostics.
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.
getEndFileAddress() - Method in class io.jawk.intermediate.AwkTuples
Returns the address of the ENDFILE section, or null when the program has no BEGINFILE/ENDFILE rules.
getEngineName() - Method in class io.jawk.jsr223.JawkScriptEngineFactory
 
getEngineVersion() - Method in class io.jawk.jsr223.JawkScriptEngineFactory
 
getERRNO() - Method in class io.jawk.jrt.JRT
Get ERRNO as tracked by JRT.
getExitAddress() - Method in class io.jawk.intermediate.AwkTuples
Returns the address of the END blocks section, or null when the tuple stream is an expression stream with no END blocks.
getExtensionClassName() - Method in class io.jawk.ext.ExtensionFunction
Returns the fully-qualified class name of the declaring extension.
getExtensionFunctions() - Method in class io.jawk.Awk
 
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.
getExtensionFunctions() - Method in class io.jawk.intermediate.Tuple.IndirectCallTuple
Returns the extension functions available to the call site.
getExtensionInstances() - Method in class io.jawk.Awk
 
getExtensionName() - Method in class io.jawk.ext.AbstractExtension
getExtensionName.
getExtensionName() - Method in class io.jawk.ext.GawkExtension
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 null when the runtime should split $0 using FS.
getFields() - Method in class io.jawk.jrt.StreamInputSource
Always returns null so that the runtime splits $0 using the current field separator (FS).
getFieldSeparator() - Method in class io.jawk.util.AwkSettings
Initial Field Separator (FS) value.
getFileAwkSink(String, boolean) - Method in class io.jawk.jrt.JRT
Resolves the sink used by file redirection.
getFileAwkSink(String, boolean) - Method in class io.jawk.jrt.SandboxedJRT
 
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.
getFunctionNames() - Method in class io.jawk.backend.AVM
Returns the names of the user-defined functions of the compiled program.
getFunctionNameSet() - Method in class io.jawk.intermediate.AwkTuples
getFunctionNameSet.
getGlobalVariableAarrayMap() - Method in class io.jawk.intermediate.AwkTuples
getGlobalVariableAarrayMap.
getGlobalVariableNames() - Method in class io.jawk.backend.AVM
Returns the names of the global variables declared by the compiled program.
getGlobalVariableOffsetMap() - Method in class io.jawk.intermediate.AwkTuples
getGlobalVariableOffsetMap.
getIGNORECASEVar() - Method in class io.jawk.jrt.JRT
Get IGNORECASE from the VariableManager.
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.
getJrt() - Method in class io.jawk.ext.AbstractExtension
Getter for the field jrt.
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 -1 if unavailable.
getLocale() - Method in class io.jawk.backend.AVM
Returns the locale configured for this runtime.
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 Map class that backs this implementation.
getMapVersion() - Method in class io.jawk.jrt.HashAssocArray
Returns the specification version of the underlying HashMap class.
getMapVersion() - Method in class io.jawk.jrt.SortedAssocArray
Returns the specification version of the underlying TreeMap class.
getMessage() - Method in class io.jawk.intermediate.Tuple.WarningTuple
Returns the warning message to print.
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
 
getNextBlockObject() - Method in class io.jawk.jrt.BlockObject
Getter for the field nextBlockObject.
getNextFileAddress() - Method in class io.jawk.intermediate.AwkTuples
Returns the address of the NEXT_FILE tuple that opens each input file, or null when the program does not use per-file input stepping.
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.
getNumActualParams() - Method in class io.jawk.intermediate.Tuple.IndirectCallTuple
Returns the number of actual parameters evaluated by the 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.
getNumFormalParams() - Method in class io.jawk.intermediate.Tuple.IndirectFunctionTarget
Returns the function's formal parameter count.
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.
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 PartitioningReader currently in use by the active InputSource, or null if the source is not stream-based.
getPattern() - Method in class io.jawk.intermediate.Tuple.RegexTuple
Returns the precompiled regular expression.
getPipeAwkSink(String) - Method in class io.jawk.jrt.JRT
Resolves the sink used by pipe redirection.
getPipeAwkSink(String) - Method in class io.jawk.jrt.SandboxedJRT
 
getPrecompiledProgram() - Method in class io.jawk.Cli
Returns the precompiled program loaded via the -L option, if any.
getPrintStream() - Method in class io.jawk.jrt.AppendableAwkSink
 
getPrintStream() - Method in class io.jawk.jrt.AwkSink
Returns a PrintStream view that receives raw process output written by spawned commands such as system("...").
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 Reader serving the script contents.
getReader() - Method in class io.jawk.util.ScriptSource
Obtain the Reader serving the script contents.
getRecord() - Method in interface io.jawk.jrt.InputSource
getRecordText() - Method in interface io.jawk.jrt.InputSource
Returns the current record text ($0), or null when 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), or null when 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.
getReplaceResult() - Method in class io.jawk.jrt.JRT
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.
getSeed() - Method in class io.jawk.jrt.BSDRandom
Returns the seed most recently supplied to BSDRandom.setSeed(int).
getSettings() - Method in class io.jawk.Awk
Returns the behavioral settings associated with this engine instance.
getSettings() - Method in class io.jawk.backend.AVM
Returns the runtime settings associated with this interpreter.
getSettings() - Method in class io.jawk.Cli
Returns the mutable AwkSettings configured from the command line.
getSettings() - Method in class io.jawk.ext.AbstractExtension
Getter for the field settings.
getSourceDescription() - Method in class io.jawk.backend.AVM
Returns the description of the primary script source (typically its file name), for extension-emitted diagnostics.
getSourceDescription() - Method in class io.jawk.intermediate.AwkTuples
Returns the description of the primary script source.
getSourceLine() - Method in class io.jawk.intermediate.Tuple.IndirectCallTuple
Returns the source line for runtime diagnostics.
getSourceName() - Method in class io.jawk.intermediate.Tuple.IndirectCallTuple
Returns the source name for runtime diagnostics.
getSpecialVariableNames() - Method in class io.jawk.backend.AVM
Returns the names of the special variables that AVM.getVariable(String) answers directly.
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.
getUserFunctions() - Method in class io.jawk.intermediate.Tuple.IndirectCallTuple
Returns the user-defined functions available to the call site.
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.
getVariable(String) - Method in class io.jawk.backend.AVM
Returns the current value of a named global variable or JRT-managed special variable.
getVariable(String) - Method in interface io.jawk.jrt.VariableManager
Returns the current value of a named global variable or JRT-managed special variable.
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).
getVm() - Method in class io.jawk.ext.AbstractExtension
Getter for the field vm.
GOTO - Enum constant in enum io.jawk.intermediate.Opcode
Jumps to a specified address.
gotoAddress(Address) - Method in class io.jawk.intermediate.AwkTuples
gotoAddress.
GSUB - Enum constant in enum io.jawk.intermediate.BuiltinFunction
The gsub function.

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
hasPendingInputFileError(InputSource) - Method in class io.jawk.jrt.JRT
Returns whether the current input file of the given source failed to open, leaving a pending error that only a nextfile statement in a BEGINFILE rule may bypass.

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(String, String) - Method in class io.jawk.jrt.JRT
Implements the index() builtin: the 1-based position of needle within haystack, or 0 when absent, folding case when IGNORECASE is set.
INDEX - Enum constant in enum io.jawk.intermediate.BuiltinFunction
The index function.
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.
INDIRECT_CALL - Enum constant in enum io.jawk.intermediate.Opcode
Call a user-defined, built-in, or extension function selected by name at runtime.
indirectCall(Map<String, Tuple.IndirectFunctionTarget>, Map<String, ExtensionFunction>, int, String, int) - Method in class io.jawk.intermediate.AwkTuples
Emits a call whose function name is evaluated at runtime.
IndirectFunctionTarget(Supplier<Address>, long, Set<Integer>) - Constructor for class io.jawk.intermediate.Tuple.IndirectFunctionTarget
Creates target metadata whose address is resolved during tuple post-processing.
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.
initializeGawkVariables(AVM, JRT) - Method in class io.jawk.ext.GawkExtension
Installs the PROCINFO["sorted_in"] traversal order for for-in loops and binds this per-engine extension instance to its interpreter.
initializeInputFields(String, List<String>) - Method in class io.jawk.jrt.JRT
Initialize $0..$NF from a pre-split field list.
input(InputSource) - Method in class io.jawk.Awk.AwkRunBuilder
Sets a structured InputSource to 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.
INT - Enum constant in enum io.jawk.intermediate.BuiltinFunction
The int function.
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.
intValue() - Method in class io.jawk.ext.GawkBool
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.
isAppend() - Method in class io.jawk.intermediate.Tuple.CountAndAppendTuple
Indicates whether redirected output should append.
isarray(Object) - Method in class io.jawk.ext.GawkExtension
Returns whether the supplied value is an array.
isArray() - Method in class io.jawk.intermediate.Tuple.DereferenceTuple
Indicates whether this dereference should initialize an array.
isArrayParameter(int) - Method in class io.jawk.intermediate.Tuple.IndirectFunctionTarget
Returns whether the parameter at the supplied index is 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.
isGawkOnlySpecialVariable(String) - Static method in class io.jawk.jrt.JRT
Returns whether the name is a gawk-only special variable that POSIX mode treats as an ordinary identifier, like gawk --posix does.
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.
isIgnoreCase() - Method in class io.jawk.jrt.JRT
Returns whether IGNORECASE is currently nonzero, making regexp operations case-insensitive.
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.
isNumber() - Method in class io.jawk.jrt.StrNum
Returns whether this scalar's text parses as an AWK number, making it a strnum.
isParseableNumber(String) - Method in class io.jawk.jrt.JRT
Returns whether the supplied text parses as an AWK number under this runtime's locale, as used for strnum recognition.
isPosix() - Method in class io.jawk.util.AwkSettings
Whether POSIX compile-time behavior is enforced, rejecting gawk syntax such as arrays of arrays (a[i][j], subarray operands like split(..., a[i])) and typed regexp literals (@/re/), and treating the gawk-specific BEGINFILE / ENDFILE patterns as ordinary identifiers.
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.
isSourceIncludeAllowed() - Method in class io.jawk.Awk
Returns whether scripts compiled by this engine may use @include.
isSourceIncludeAllowed() - Method in class io.jawk.SandboxedAwk
 
isUseSortedArrayKeys() - Method in class io.jawk.util.AwkSettings
Whether to maintain array keys in sorted order; false by default.
isWithin() - Method in class io.jawk.jrt.ConditionPair
Returns whether we're currently within the range, i.e. the start condition matched a previous record and the end condition hasn't matched yet.

J

JawkAssocArray - Annotation Type in io.jawk.ext.annotations
Marks an extension function parameter that must be evaluated and passed as an associative array backed by a Map.
JawkBeforeStart - Annotation Type in io.jawk.ext.annotations
Marks an extension method that should run after globals are allocated and before tuple execution starts.
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.
JawkOptional - Annotation Type in io.jawk.ext.annotations
Marks a trailing extension function parameter as optional: the AWK caller may omit it, in which case the Java method receives null.
JawkRawValue - Annotation Type in io.jawk.ext.annotations
Marks an extension function parameter that must receive the AWK value exactly as the runtime stores it, without forcing an untyped variable or a missing array element into an assigned scalar.
JawkRegexp - Annotation Type in io.jawk.ext.annotations
Marks an extension function parameter that takes a regular expression, so a regexp literal (/re/) supplied at that position keeps its precompiled Pattern instead of being evaluated as the boolean $0 ~ /re/ expression.
JawkScriptEngine - Class in io.jawk.jsr223
Simple JSR-223 script engine for Jawk that delegates execution to the Awk runtime.
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.
leave() - Method in class io.jawk.jrt.ConditionPair
Marks the range as finished, after the end condition matched the current record.
length(int) - Method in class io.jawk.intermediate.AwkTuples
length.
LENGTH - Enum constant in enum io.jawk.intermediate.BuiltinFunction
The length function.
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 JawkExtension implementations 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.BuiltinFunction
The log function.
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.
longValue() - Method in class io.jawk.ext.GawkBool

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.
markModified() - Method in class io.jawk.util.AwkSettings
 
match() - Method in class io.jawk.intermediate.AwkTuples
match.
MATCH - Enum constant in enum io.jawk.intermediate.BuiltinFunction
The match function.
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(String, Object) - Method in class io.jawk.jrt.JRT
Evaluates the AWK match operator (text ~ regexp), honoring IGNORECASE for both precompiled regexp constants and dynamic expressions.
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.
matchPosition(String, String) - Method in class io.jawk.jrt.JRT
match() functionality: locates ere in s honoring IGNORECASE, updating RSTART and RLENGTH.
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.
mkbool(Object) - Method in class io.jawk.ext.GawkExtension
Creates a boolean-typed numeric value used by gawk's test suite.
mktime(Object, Object) - Method in class io.jawk.ext.GawkExtension
Converts a gawk "YYYY MM DD HH MM SS [DST]" date specification into seconds since the epoch, normalizing out-of-range values.
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.
MULTI_CONCAT - Enum constant in enum io.jawk.intermediate.Opcode
Pops and concatenates N values from the top-of-stack after AWK string conversion; pushes the result onto the stack.
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

names() - Static method in enum io.jawk.intermediate.BuiltinFunction
Returns the names of all standard built-in functions, as they appear in AWK source code and in gawk's FUNCTAB.
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.
NEXT_FILE - Enum constant in enum io.jawk.intermediate.Opcode
Advances the main input to the next input file, applying pending name=value command-line assignments along the way.
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
nextFile(Address) - Method in class io.jawk.intermediate.AwkTuples
Emits the tuple advancing the main input to the next input file, or jumping to the given address when no input file remains.
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.
nextRecordInCurrentFile() - Method in class io.jawk.jrt.StreamInputSource
Reads the next record of the current input file only, never advancing to the next input file.
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: null and UninitializedObject map to the empty string, and internal input strings map to their string value.
normalizePrintArgument(Object) - Method in class io.jawk.jrt.AwkSink
Deprecated.
Plain print does not numerically coerce string values; use the operand as-is, or AwkSink.formatPrintArgument(Object, String) to render it the way print would.
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

of(String) - Static method in enum io.jawk.intermediate.BuiltinFunction
Resolves an AWK function name to its enum constant.
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.
order(Map<Object, Object>) - Method in interface io.jawk.ext.ForInKeyOrder
Returns the keys of array in the order for (index in array) should traverse them.
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 AwkSink backed by a PrintStream.
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 Cli instance 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.
patsplit(Object, Map<Object, Object>, Object, Map<Object, Object>) - Method in class io.jawk.ext.GawkExtension
Splits a string by content: pieces matching fieldpat become fields, the text between them becomes separators.
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.
PEEK_DEREFERENCE - Enum constant in enum io.jawk.intermediate.Opcode
Obtains an item from the variable manager without assigning a blank value when the variable is still untyped.
peekArrayElement() - Method in class io.jawk.intermediate.AwkTuples
Looks up an associative-array element without creating a blank entry when the key is missing.
peekDereference(int, boolean) - Method in class io.jawk.intermediate.AwkTuples
Emits a variable read that does not assign a blank value when the variable is still untyped.
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.
popScalar() - Method in class io.jawk.intermediate.AwkTuples
Discards a value that was evaluated in scalar context.
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 InputSource for repeated expression evaluation and returns the mutable AVM that will execute those expressions.
prepareEval(String) - Method in class io.jawk.Awk
Prepares one text record for repeated expression evaluation and returns the mutable AVM that 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.
prepareReplacement(String, boolean) - Static method in class io.jawk.jrt.JRT
Converts an AWK replacement text into a Java Matcher replacement: & becomes the whole match, \& a literal ampersand, and $ is escaped.
prepareReplacement(String, int) - Static method in class io.jawk.jrt.JRT
Converts an AWK replacement text into a Java Matcher replacement, resolving gensub-style backreferences against a known number of capture groups: \N beyond maxGroup is replaced by the empty string, as gawk does, instead of producing a group reference that would make the matcher throw.
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 print operation.
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 print operation 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 printf operation.
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 print operation 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 print operation to a redirected process.
printWarning(String) - Method in class io.jawk.jrt.JRT
Prints a runtime warning message to the warning stream (stderr by default), mirroring where gawk sends its diagnostics.
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_ARGIND - Enum constant in enum io.jawk.intermediate.Opcode
Pushes the value of ARGIND, managed by the 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_ERRNO - Enum constant in enum io.jawk.intermediate.Opcode
Pushes the value of ERRNO, managed by the JRT.
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_IGNORECASE - Enum constant in enum io.jawk.intermediate.Opcode
Pushes the value of IGNORECASE, managed by the JRT.
PUSH_INDIRECT_ARGUMENT - Enum constant in enum io.jawk.intermediate.Opcode
Push an indirect-call argument that snapshots its scalar value while retaining its variable location.
PUSH_INDIRECT_ARRAY_ARGUMENT - Enum constant in enum io.jawk.intermediate.Opcode
Push an indirect-call subarray argument that snapshots its scalar value while retaining its containing map and key for a runtime-selected array parameter.
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 ARGC onto the operand stack.
pushARGIND() - Method in class io.jawk.intermediate.AwkTuples
Emits the tuple pushing the value of ARGIND, managed by the JRT.
pushCONVFMT() - Method in class io.jawk.intermediate.AwkTuples
Pushes the current value of CONVFMT onto the operand stack.
pushERRNO() - Method in class io.jawk.intermediate.AwkTuples
Emits the tuple pushing the value of ERRNO, managed by the JRT.
pushFILENAME() - Method in class io.jawk.intermediate.AwkTuples
Pushes the current value of FILENAME onto the operand stack.
pushFNR() - Method in class io.jawk.intermediate.AwkTuples
Pushes the current value of FNR onto the operand stack.
pushFS() - Method in class io.jawk.intermediate.AwkTuples
Pushes the current value of FS onto the operand stack.
pushIGNORECASE() - Method in class io.jawk.intermediate.AwkTuples
Emits a tuple pushing the value of IGNORECASE.
pushIndirectArgument(int, boolean) - Method in class io.jawk.intermediate.AwkTuples
Emits a variable reference whose scalar value is captured immediately while retaining the variable location for a runtime-selected array parameter.
pushIndirectArrayArgument() - Method in class io.jawk.intermediate.AwkTuples
Emits an indirect-call subarray argument after its containing map and key.
pushNF() - Method in class io.jawk.intermediate.AwkTuples
Pushes the current value of NF onto the operand stack.
pushNR() - Method in class io.jawk.intermediate.AwkTuples
Pushes the current value of NR onto the operand stack.
pushOFMT() - Method in class io.jawk.intermediate.AwkTuples
Pushes the current value of OFMT onto the operand stack.
pushOFS() - Method in class io.jawk.intermediate.AwkTuples
Pushes the current value of OFS onto the operand stack.
pushORS() - Method in class io.jawk.intermediate.AwkTuples
Pushes the current value of ORS onto the operand stack.
pushRLENGTH() - Method in class io.jawk.intermediate.AwkTuples
Pushes the current value of RLENGTH onto the operand stack.
pushRS() - Method in class io.jawk.intermediate.AwkTuples
Pushes the current value of RS onto the operand stack.
pushRSTART() - Method in class io.jawk.intermediate.AwkTuples
Pushes the current value of RSTART onto 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 SUBSEP onto the operand stack.
put(long, Object) - Method in interface io.jawk.jrt.AssocArray
Stores a value using a primitive long key, 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 Long when 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 Long when 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.BuiltinFunction
The rand function.
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.
rebuildDollarZeroFromFields() - Method in class io.jawk.jrt.JRT
 
regexp(String) - Method in class io.jawk.intermediate.AwkTuples
regexp.
REGEXP - Enum constant in enum io.jawk.intermediate.Opcode
Returns a regex pattern.
regexpFlags() - Method in class io.jawk.jrt.JRT
Returns the Pattern flags implied by the current IGNORECASE setting; dynamic regexps should be compiled with these flags.
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.
RegexTokenizer(String, String, int) - Constructor for class io.jawk.jrt.RegexTokenizer
Construct a RegexTokenizer with explicit Pattern flags.
RegexTokenizer(String, Pattern) - Constructor for class io.jawk.jrt.RegexTokenizer
Construct a RegexTokenizer around a precompiled pattern.
register(String, JawkExtension) - Static method in class io.jawk.ext.ExtensionRegistry
Registers an extension instance under the supplied name.
register(String, Supplier<JawkExtension>) - Static method in class io.jawk.ext.ExtensionRegistry
Registers an extension factory 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 Long equivalent.
remove(Object) - Method in class io.jawk.jrt.SortedAssocArray
Removes the mapping for the specified key, trying both the original and its Long equivalent.
replaceAll(String, String, String) - Method in class io.jawk.jrt.JRT
gsub() functionality: replaces every match of ere in orig with repl, honoring IGNORECASE.
replaceFirst(String, String, String) - Method in class io.jawk.jrt.JRT
sub() functionality: replaces the first match of ere in orig with repl, honoring IGNORECASE.
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 an extension 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
AVM variant 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
Awk variant 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 AwkTuples that 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 AwkSandboxException when 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_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.
setARGC(Object) - Method in class io.jawk.jrt.JRT
Set ARGC via the VariableManager.
setARGIND(Object) - Method in class io.jawk.jrt.JRT
Set ARGIND tracked by JRT.
setAwkSink(AwkSink) - Method in class io.jawk.backend.AVM
Sets the sink used by default print and printf operations on this runtime.
setAwkSink(AwkSink) - Method in class io.jawk.jrt.JRT
Sets the sink used by default print and printf operations.
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
setEndFileAddress(Address) - Method in class io.jawk.intermediate.AwkTuples
Registers the address of the ENDFILE section, so that a runtime nextfile statement can jump to it.
setERRNO(Object) - Method in class io.jawk.jrt.JRT
Set ERRNO tracked by JRT.
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
Registers the address of the END blocks section, so that a runtime exit statement can jump to it.
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(Object) - 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.
setForInKeyOrder(ForInKeyOrder) - Method in class io.jawk.backend.AVM
Registers the hook that decides the key traversal order of for (index in array) statements.
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.
setIGNORECASE(Object) - Method in class io.jawk.jrt.JRT
Sets IGNORECASE, precomputing its truth value so regexp operations can test a boolean instead of coercing the raw value on every match.
setInputLine(Object) - 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.
setNextFileAddress(Address) - Method in class io.jawk.intermediate.AwkTuples
Registers the address of the NEXT_FILE tuple that opens each input file, so that a runtime nextfile statement can bypass the ENDFILE rules for input files that could not be opened.
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.
setPosix(boolean) - Method in class io.jawk.util.AwkSettings
Enables or disables POSIX compile-time behavior.
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.
setSourceDescription(String) - Method in class io.jawk.intermediate.AwkTuples
Records the description of the primary script source (typically its file name) so runtime diagnostics can point at it.
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; false by 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).
setWarningStream(PrintStream) - Method in class io.jawk.backend.AVM
Sets the stream that receives runtime warning messages (gawk-style diagnostics).
setWarningStream(PrintStream) - Method in class io.jawk.jrt.JRT
Sets the stream that receives runtime warning messages.
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.BuiltinFunction
The sin function.
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.BuiltinFunction
The split function.
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.
splitTokenizer(String, Object) - Method in class io.jawk.jrt.JRT
Builds the tokenizer splitting input by the given separator, following AWK field-splitting rules (" " splits on whitespace runs, "" splits into characters, a single character is literal) and honoring IGNORECASE for regexp separators.
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.BuiltinFunction
The sprintf function.
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.BuiltinFunction
The sqrt function.
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.BuiltinFunction
The srand function.
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 StdinExtension that reads from System.in.
StdinExtension(InputStream) - Constructor for class io.jawk.ext.StdinExtension
Creates a StdinExtension that 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 InputSource that reads records from an InputStream, traversing the ARGV array to open filenames and apply name=value variable 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.
strftime(Object, Object, Object) - Method in class io.jawk.ext.GawkExtension
Formats a timestamp with C strftime(3) conversion specifiers.
StrNum - Class in io.jawk.jrt
An input-derived scalar: text that may also act as a number, following POSIX "numeric string" (strnum) semantics.
strtonum(Object) - Method in class io.jawk.ext.GawkExtension
Converts a string to a number, recognizing gawk's non-decimal notation: a 0x prefix selects hexadecimal and a leading 0 over octal digits selects octal.
SUB - Enum constant in enum io.jawk.intermediate.BuiltinFunction
The sub function.
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/gsub to 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.BuiltinFunction
The substr function.
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.BuiltinFunction
The system function.
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.
systime() - Method in class io.jawk.ext.GawkExtension
Returns the current time in seconds since the epoch.

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.ext.AbstractExtension
Convert a Jawk variable to a Jawk string based on the value of the CONVFMT variable.
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.
toInputScalar(Object) - Method in class io.jawk.jrt.JRT
Creates an input-derived AWK scalar value.
toJavaScalar(Object) - Static method in class io.jawk.jrt.JRT
Converts an internal runtime scalar to the value exposed through Java APIs.
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.BuiltinFunction
The tolower function.
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.ext.GawkBool
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.IndirectCallTuple
 
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.Tuple.WarningTuple
 
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.jrt.StrNum
 
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.IndirectCallTuple
 
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.BuiltinFunction
The toupper function.
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.IndirectCallTuple - Class in io.jawk.intermediate
Tuple for a function call whose target name is evaluated at runtime.
Tuple.IndirectFunctionTarget - Class in io.jawk.intermediate
Runtime target metadata for a user-defined indirect function call.
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.ScalarPopTuple - Class in io.jawk.intermediate
Tuple for discarding an expression-statement value after validating that it is scalar.
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.
Tuple.WarningTuple - Class in io.jawk.intermediate
Tuple carrying a diagnostic message that the interpreter prints to the warning stream when executed.
typeof(Object, Map<Object, Object>) - Method in class io.jawk.ext.GawkExtension
Returns the gawk type category for a value.

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.
UNTYPED - Static variable in interface io.jawk.jrt.AssocArray
An untyped value shared across newly referenced AWK array elements.
UntypedObject - Class in io.jawk.intermediate
Marker for a variable or array element whose scalar-or-array nature has not yet been fixed.
UntypedObject() - Constructor for class io.jawk.intermediate.UntypedObject
Creates an untyped marker.
untypedToBlank(Object) - Static method in class io.jawk.jrt.JRT
Replaces the untyped marker by AWK's assigned blank scalar.
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
UPDATE_FUNCTAB - Enum constant in enum io.jawk.intermediate.Opcode
Populates the FUNCTAB array with the names of the program's functions.
UPDATE_SYMTAB - Enum constant in enum io.jawk.intermediate.Opcode
Populates the SYMTAB array with the names and values of the program's symbols.
updateFunctab(int) - Method in class io.jawk.intermediate.AwkTuples
Emits the tuple populating the FUNCTAB array.
updateSymtab(int) - Method in class io.jawk.intermediate.AwkTuples
Emits the tuple populating the SYMTAB array.
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.BuiltinFunction
Returns the enum constant of this type with the specified name.
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.BuiltinFunction
Returns an array containing the constants of this enum type, in the order they are declared.
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.

W

warning(String) - Method in class io.jawk.intermediate.AwkTuples
Emits a tuple that prints a diagnostic message to the warning stream when executed.
WARNING - Enum constant in enum io.jawk.intermediate.Opcode
Prints a diagnostic message to the warning stream.
A B C D E F G H I J K L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form