- EofMatch - Class in expect4j.matches
-
TODO
- EofMatch(Closure) - Constructor for class expect4j.matches.EofMatch
-
- EofMatch() - Constructor for class expect4j.matches.EofMatch
-
- escape(String) - Static method in class expect4j.ExpectEmulation
-
- exp_continue() - Method in class expect4j.ExpectState
-
Instructs the
Expect4j
state machine to continue to seek
additional matches after this one.
- exp_continue_reset_timer() - Method in class expect4j.ExpectState
-
Instructs the
Expect4j
state machine to continue to seek
additional matches after this one
and to reset the timeout
timer.
- ExpContinueCommand() - Constructor for class expect4j.ExpectEmulation.ExpContinueCommand
-
- expect(String) - Method in class expect4j.Expect4j
-
Attempts to detect the provided pattern as an exact match.
- expect(String, Closure) - Method in class expect4j.Expect4j
-
Attempts to detect the provided pattern and executes the provided
Closure
if it is detected.
- expect(Match[]) - Method in class expect4j.Expect4j
-
Attempts to detect the patterns contained in the
Match
list and executes their associated
Closure
s if any are
detected.
- expect(List<Match>) - Method in class expect4j.Expect4j
-
Attempts to detect the patterns contained in the
List
list and executes their associated
Closure
s if any are detected.
- expect4j - package expect4j
-
- Expect4j - Class in expect4j
-
Provides an API for interacting with the reader/writer streams to be
managed.
- Expect4j(IOPair) - Constructor for class expect4j.Expect4j
-
Create an
Expect4j
instance based on an
IOPair
concrete instance.
- Expect4j(Socket) - Constructor for class expect4j.Expect4j
-
Creates an
Expect4j
instance based on a
Socket
.
- Expect4j(InputStream, OutputStream) - Constructor for class expect4j.Expect4j
-
- Expect4j(Process) - Constructor for class expect4j.Expect4j
-
Creates an
Expect4j
instance based on a spawned
Process
.
- expect4j.matches - package expect4j.matches
-
- ExpectCommand() - Constructor for class expect4j.ExpectEmulation.ExpectCommand
-
- ExpectEmulation - Class in expect4j
-
Register commands to support the Expect API
Commands:
exp_continue
exp_internal 0;
expect
log_user 0;
send " ";
send -- "$command\r";
sleep
spawn
stty -echo;
stty echo;
timestamp
Variables:
expect_out(1,string)
through
expect_out(5,string)
expect_out(buffer)
spawn_id
- ExpectEmulation() - Constructor for class expect4j.ExpectEmulation
-
- ExpectEmulation.ExpContinueCommand - Class in expect4j
-
exp_continue
TODO Make calling Closure check for continue var
- ExpectEmulation.ExpectCommand - Class in expect4j
-
expect [[-opts] pat1 body1] ...
- ExpectEmulation.ExpInternalCommand - Class in expect4j
-
exp_internal [-f file] [-info] [0|1]
TODO find out how isExpDebug would be called
- ExpectEmulation.IntegerAssocData - Class in expect4j
-
- ExpectEmulation.LogUserCommand - Class in expect4j
-
log_user [0|1]
TODO find out how isLogUser would be called
- ExpectEmulation.MapAssocData - Class in expect4j
-
- ExpectEmulation.SendCommand - Class in expect4j
-
Send
- ExpectEmulation.SleepCommand - Class in expect4j
-
sleep seconds
- ExpectEmulation.SpawnCommand - Class in expect4j
-
spawn [args] program [args]
Called with possible local paths, like C:\Windows\ssh.exe.
- ExpectEmulation.SttyCommand - Class in expect4j
-
stty [-echo|echo]
Only called in ask, which shouldn't be called in automated script mode
- ExpectEmulation.TimestampCommand - Class in expect4j
-
timestamp [-seconds NNN] [-gmt] [-format format]
TODO support formattings
- ExpectState - Class in expect4j
-
A container that represents a snapshot of the
Expect4j
state
machine for a given match.
- ExpectState(String, int, String, int, List, Map<String, Object>) - Constructor for class expect4j.ExpectState
-
Creates an ExpectState
instance for a successful
match.
- ExpectState() - Constructor for class expect4j.ExpectState
-
Creates an
ExpectState
instance for times when a
Closure
is being run but there isn't a corresponding
match.
- ExpectState(int, String, Map<String, Object>) - Constructor for class expect4j.ExpectState
-
Creates an ExpectState
instance for a successful
match.
- ExpectUtils - Class in expect4j
-
Utilities functions to help access the Expect4J library in the most
common ways.
- ExpectUtils() - Constructor for class expect4j.ExpectUtils
-
- ExpInternalCommand() - Constructor for class expect4j.ExpectEmulation.ExpInternalCommand
-
- expStateCurrent(Interp) - Static method in class expect4j.ExpectEmulation
-
- RegExpMatch - Class in expect4j.matches
-
Simulates "expect { -regexp {..*} { code } }
- RegExpMatch(String, Closure) - Constructor for class expect4j.matches.RegExpMatch
-
Creates a new instance of RegExpMatch
- registerBufferChangeLogger(BufferChangeLogger) - Method in interface expect4j.Consumer
-
Registers a change logger that is called whenever an input change
is recorded to the buffer.
- registerBufferChangeLogger(BufferChangeLogger) - Method in class expect4j.ConsumerImpl
-
- registerBufferChangeLogger(BufferChangeLogger) - Method in class expect4j.Expect4j
-
Registers a change logger that is called whenever an input change
is recorded to the buffer.
- releaseClosures(Interp, Collection<TclObject>) - Method in class expect4j.ExpectEmulation.ExpectCommand
-
- reset() - Method in interface expect4j.IOPair
-
TODO
- reset() - Method in class expect4j.StreamPair
-
TODO evaluate if this is even needed
- reset() - Method in class expect4j.StringPair
-
TODO evaluate if this is even needed
- resume(int) - Method in class expect4j.BlockingConsumer
-
Resume processing from the specified offset.
- resume() - Method in interface expect4j.Consumer
-
Resume processing from the beginning of the buffer.
- resume(int) - Method in interface expect4j.Consumer
-
Resume processing from the specified offset.
- resume() - Method in class expect4j.ConsumerImpl
-
Resume processing from the beginning of the buffer.
- resume(int) - Method in class expect4j.NioConsumer
-
- resume(int) - Method in class expect4j.PollingConsumer
-
- RET_EOF - Static variable in class expect4j.Expect4j
-
An error code returned by Expect4j.expect
to
indicate that the end of file marker was encountered when
accessing the reader stream.
- RET_TIMEOUT - Static variable in class expect4j.Expect4j
-
An error code returned by Expect4j.expect
to
indicate that the timeout value expired prior to finding a
concluding match.
- RET_TRIED_ONCE - Static variable in class expect4j.Expect4j
-
An error code returned by Expect4j.expect
to
indicate that no match was found and no re-attempt was made.
- RET_UNKNOWN - Static variable in class expect4j.Expect4j
-
An error code returned by Expect4j.expect
to
indicate that some unforeseen condition occurred.
- run() - Method in class expect4j.BlockingConsumer
-
Starts the BlockingConsumer
in processing the reader
stream.
- run(ExpectState) - Method in interface expect4j.Closure
-
The main execution of the Closure
.
- run() - Method in interface expect4j.Consumer
-
Starts the Consumer
in processing the reader
stream.
- run() - Method in class expect4j.NioConsumer
-
- run() - Method in class expect4j.PollingConsumer
-
TODO Handle timeout of zero to expect, that shouldn't wait
- run(ExpectState) - Method in class expect4j.TclClosure
-
Establish certain variables in the TCL interp.
- runFirstMatch(List) - Method in class expect4j.Expect4j
-
TODO
- selector - Variable in class expect4j.NioConsumer
-
- send(String) - Method in interface expect4j.Consumer
-
Passes data to the writer stream for remote execution from the
Consumer
.
- send(String) - Method in class expect4j.ConsumerImpl
-
Passes data to the writer stream for remote execution from the
Consumer
.
- send(String) - Method in class expect4j.Expect4j
-
Passes data to the writer stream for remote execution.
- SendCommand() - Constructor for class expect4j.ExpectEmulation.SendCommand
-
- setBooleanVar(Interp, String, boolean) - Static method in class expect4j.ExpectEmulation
-
- setBuffer(String) - Method in class expect4j.ExpectState
-
Sets the reader buffer.
- setDefaultTimeout(long) - Method in class expect4j.Expect4j
-
Changes the default timeout value for the Expect4j instance.
- setEcho(Interp, boolean) - Static method in class expect4j.ExpectEmulation
-
- setExpContinue(Interp, boolean) - Static method in class expect4j.ExpectEmulation
-
- setExpDebug(Interp, boolean) - Static method in class expect4j.ExpectEmulation
-
- setLogUser(Interp, boolean) - Static method in class expect4j.ExpectEmulation
-
- shouldContinue - Variable in class expect4j.ExpectState
-
A flag to indicate whether the
Expect4j
state machine
should continue to seek additional matches.
- shouldContinue() - Method in class expect4j.ExpectState
-
Returns whether the
Expect4j
state machine should
continue to seek additional matches after this one.
- shouldResetTimer - Variable in class expect4j.ExpectState
-
A flag to indicate whether the
Expect4j
state machine
should reset its timer to avoid a timeout.
- shouldResetTimer() - Method in class expect4j.ExpectState
-
Returns whether the
Expect4j
state machine should reset
its timeout timer after processing this match.
- SleepCommand() - Constructor for class expect4j.ExpectEmulation.SleepCommand
-
- socketChannel - Variable in class expect4j.NioConsumer
-
- spawn(String) - Static method in class expect4j.ExpectUtils
-
Spawns a local process with the input/output streams controlled
via Expect4J.
- spawn(String, String[]) - Static method in class expect4j.ExpectUtils
-
Spawns a local process with the input/output streams controlled
via Expect4J.
- spawn(String[]) - Static method in class expect4j.ExpectUtils
-
Spawns a local process with the input/output streams controlled
via Expect4J.
- spawn(String[], String[]) - Static method in class expect4j.ExpectUtils
-
Spawns a local process with the input/output streams controlled
via Expect4J.
- SpawnCommand() - Constructor for class expect4j.ExpectEmulation.SpawnCommand
-
- SSH(String, String, String) - Static method in class expect4j.ExpectUtils
-
Creates an SSH session to the given server on TCP port 22 using
the provided credentials.
- SSH(String, String, String, int) - Static method in class expect4j.ExpectUtils
-
Creates an SSH session to the given server on a custom TCP port
using the provided credentials.
- STATE_EXPECTED - Static variable in class expect4j.Expect4j
-
Class found a match to a pattern, and it can receive new patterns.
- STATE_EXPECTING - Static variable in class expect4j.Expect4j
-
Class has been given patterns, and it is currently parsing the streams.
- STATE_INITIALIZED - Static variable in class expect4j.Expect4j
-
Class has been given the appropriate arguments.
- STATE_UNINIT - Static variable in class expect4j.Expect4j
-
Class has not had its core variables set yet.
- stop() - Method in interface expect4j.Consumer
-
Requests the Consumer
to stop processing data at its
next convenient time.
- stop() - Method in class expect4j.ConsumerImpl
-
Requests the Consumer
to stop processing data at its
next convenient time.
- stopRequested - Variable in class expect4j.ConsumerImpl
-
A flag to indicate whether processing should continue.
- StreamPair - Class in expect4j
-
TODO
- StreamPair(InputStream, OutputStream) - Constructor for class expect4j.StreamPair
-
Creates a new instance of ReaderConsumer
- StringPair - Class in expect4j
-
- StringPair(String) - Constructor for class expect4j.StringPair
-
Creates a new instance of StringPair
- SttyCommand() - Constructor for class expect4j.ExpectEmulation.SttyCommand
-
- SubstCrCommand - Class in tcl.lang
-
This class implements the built-in "subst" command in Tcl.
- SubstCrCommand() - Constructor for class tcl.lang.SubstCrCommand
-