public class ExpectEmulation
extends tcl.lang.Extension
Modifier and Type | Class and Description |
---|---|
class |
ExpectEmulation.ExpContinueCommand
exp_continue
TODO Make calling Closure check for continue var
|
class |
ExpectEmulation.ExpectCommand
expect [[-opts] pat1 body1] ...
|
class |
ExpectEmulation.ExpInternalCommand
exp_internal [-f file] [-info] [0|1]
TODO find out how isExpDebug would be called
|
class |
ExpectEmulation.IntegerAssocData |
class |
ExpectEmulation.LogUserCommand
log_user [0|1]
TODO find out how isLogUser would be called
|
class |
ExpectEmulation.MapAssocData |
class |
ExpectEmulation.SendCommand
Send
|
class |
ExpectEmulation.SleepCommand
sleep seconds
|
class |
ExpectEmulation.SpawnCommand
spawn [args] program [args]
Called with possible local paths, like C:\Windows\ssh.exe.
|
class |
ExpectEmulation.SttyCommand
stty [-echo|echo]
Only called in ask, which shouldn't be called in automated script mode
|
class |
ExpectEmulation.TimestampCommand
timestamp [-seconds NNN] [-gmt] [-format format]
TODO support formattings
|
Modifier and Type | Field and Description |
---|---|
private static Logger |
logger
Interface to the Java 2 platform's core logging facilities.
|
Constructor and Description |
---|
ExpectEmulation() |
Modifier and Type | Method and Description |
---|---|
static String |
escape(String value) |
static Expect4j |
expStateCurrent(tcl.lang.Interp interp) |
void |
init(tcl.lang.Interp interp) |
static boolean |
isEcho(tcl.lang.Interp interp) |
static boolean |
isExpContinue(tcl.lang.Interp interp) |
static boolean |
isExpDebug(tcl.lang.Interp interp) |
static boolean |
isLogUser(tcl.lang.Interp interp) |
static boolean |
isVar(tcl.lang.Interp interp,
String varname) |
static void |
setBooleanVar(tcl.lang.Interp interp,
String varname,
boolean value) |
static void |
setEcho(tcl.lang.Interp interp,
boolean setEcho) |
static void |
setExpContinue(tcl.lang.Interp interp,
boolean setExpContinue) |
static void |
setExpDebug(tcl.lang.Interp interp,
boolean setExpDebug) |
static void |
setLogUser(tcl.lang.Interp interp,
boolean setLogUser) |
private static final Logger logger
public void init(tcl.lang.Interp interp)
init
in class tcl.lang.Extension
public static Expect4j expStateCurrent(tcl.lang.Interp interp) throws tcl.lang.TclException
tcl.lang.TclException
public static boolean isVar(tcl.lang.Interp interp, String varname) throws tcl.lang.TclException
tcl.lang.TclException
public static void setBooleanVar(tcl.lang.Interp interp, String varname, boolean value) throws tcl.lang.TclException
tcl.lang.TclException
public static boolean isEcho(tcl.lang.Interp interp) throws tcl.lang.TclException
tcl.lang.TclException
public static void setEcho(tcl.lang.Interp interp, boolean setEcho) throws tcl.lang.TclException
tcl.lang.TclException
public static boolean isLogUser(tcl.lang.Interp interp) throws tcl.lang.TclException
tcl.lang.TclException
public static void setLogUser(tcl.lang.Interp interp, boolean setLogUser) throws tcl.lang.TclException
tcl.lang.TclException
public static boolean isExpDebug(tcl.lang.Interp interp) throws tcl.lang.TclException
tcl.lang.TclException
public static void setExpDebug(tcl.lang.Interp interp, boolean setExpDebug) throws tcl.lang.TclException
tcl.lang.TclException
public static boolean isExpContinue(tcl.lang.Interp interp) throws tcl.lang.TclException
tcl.lang.TclException
public static void setExpContinue(tcl.lang.Interp interp, boolean setExpContinue) throws tcl.lang.TclException
tcl.lang.TclException
Copyright © 2015. All rights reserved.