|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object tribble.net.ftp.shell.ExecFrame
class ExecFrame
FTP command execution context frame.
Copyright ©2007 by David R. Tribble, all rights reserved.
Permission is granted to any person or entity except those designated by
by the United States Department of State as a terrorist, or terrorist
government or agency, to use and distribute this source code provided
that the original copyright notice remains present and unaltered.
Interp
,
BlockDef
Field Summary | |
---|---|
(package private) int |
m_depth
Scope nesting depth. |
(package private) java.lang.String |
m_dir
Remote directory name ('foreach' loop). |
(package private) java.lang.Object |
m_expr
Conditional ('while' loop) expression. |
(package private) int |
m_fileCnt
Next file in the m_files[] list. |
(package private) java.util.ArrayList |
m_files
File list of Strings ('foreach' loop). |
(package private) java.lang.String |
m_host
Remote host name ('foreach' loop). |
(package private) CommandNode |
m_pc
Next command to execute. |
(package private) BlockDef |
m_scope
Begin/end block or func defining the scope for this frame. |
(package private) int |
m_sess
Session number (for a 'foreach' loop). |
(package private) static java.lang.String |
REV
Revision information. |
Constructor Summary | |
---|---|
ExecFrame(BlockDef scope,
CommandNode cmds,
ExecFrame prev)
Constructor. |
Method Summary | |
---|---|
(package private) void |
defVar(java.lang.String name,
java.lang.String val)
Define a local var value in this frame. |
(package private) void |
dumpStack(java.io.PrintWriter out)
Print the currently active stack frames. |
(package private) static void |
dumpString(java.lang.String s,
java.io.PrintWriter out)
Print a string value in printable (source) form. |
(package private) void |
dumpVars(java.io.PrintWriter out)
Print the current vars and their values. |
(package private) java.lang.String |
findVar(java.lang.String name,
java.lang.String elem)
Find a local var value in this frame. |
(package private) ExecFrame |
pop()
Terminate this execution frame. |
(package private) void |
reset()
Reset this execution frame so that it begins executing at its first command. |
(package private) boolean |
setVar(java.lang.String name,
int nest,
java.lang.String elem,
java.lang.String val)
Set the value of a local var value in this frame. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final java.lang.String REV
BlockDef m_scope
int m_depth
CommandNode m_pc
java.lang.Object m_expr
int m_sess
java.lang.String m_host
java.lang.String m_dir
java.util.ArrayList m_files
int m_fileCnt
m_files[]
list.
Constructor Detail |
---|
ExecFrame(BlockDef scope, CommandNode cmds, ExecFrame prev)
scope
- Begin/end block or func definition that defines the context and scope for
this frame. The initial (file) frame is the outermost scope for all
execution frames.cmds
- Commands to execute within this frame. This is the first statement of the
begin/end block or func for this frame, or null if there are no commands.prev
- Execution frame that is calling (nesting) this new frame. It is the frame
where execution will resume when the new frame finishes its execution.
The outermost (initial) execution frame has a null calling frame.Method Detail |
---|
static void dumpString(java.lang.String s, java.io.PrintWriter out)
void reset()
ExecFrame pop()
void defVar(java.lang.String name, java.lang.String val)
name
- Var name.val
- The initial value of the var.java.lang.String findVar(java.lang.String name, java.lang.String elem)
name
- Var name.elem
- Array element name, for a subscripted array name. This can be null, in
which case the var to be located is not an array element.
boolean setVar(java.lang.String name, int nest, java.lang.String elem, java.lang.String val)
name
- Var name.nest
- Nesting depth, specifying the number of level of block scope nesting that
the var is defined at.elem
- Array element name, for a subscripted array name. This can be null, in
which case the var to be modified is not an array element.val
- Value to set the var to.
void dumpVars(java.io.PrintWriter out)
void dumpStack(java.io.PrintWriter out)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |