|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttomp.xtcl.XTCompiler
Reads the commands from the underlying CommandLineReader, within a Context and produces a Command (usually a Sequence)
Constructor Summary | |
XTCompiler(Context c)
Creates a new instance of XTCompiler working within a Context |
|
XTCompiler(XTCompiler parent)
Creates a new child XTCompiler |
Method Summary | |
Command |
compile(CommandLineReader clr)
Compiles commands from a CommandLineReader into a command Sequence |
Command |
compile(java.io.File f)
Compiles commands from a String |
Command |
compile(java.lang.String s)
Compiles commands from a String |
Command |
compile(java.lang.String[] cl,
CommandLineReader clr)
The main compile method. |
protected Command |
compile(java.lang.String cl,
CommandLineReader clr)
Compiles commands from a String followed by a CommandLineReader into a command Sequence |
int |
compileAndExecute(java.lang.String s)
Compiles and executes commands from a String |
int |
execute(Command command)
Executes a command in the current context |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XTCompiler(Context c)
c
- Context in which the XTCompiler workspublic XTCompiler(XTCompiler parent)
Method Detail |
public int execute(Command command) throws java.lang.Exception
command
- to be executed
java.lang.Exception
public Command compile(java.io.File f) throws java.lang.Exception
java.lang.Exception
public Command compile(java.lang.String s) throws java.lang.Exception
s
- String - the source from which it compiles
java.lang.Exception
public int compileAndExecute(java.lang.String s) throws java.lang.Exception
s
- String - the source from which it compiles
java.lang.Exception
public Command compile(CommandLineReader clr) throws java.lang.Exception
clr
- CommandLineReader - the source for compilation
java.lang.Exception
protected Command compile(java.lang.String cl, CommandLineReader clr) throws java.lang.Exception
cl
- String - will be tokenized and passed further to
compile(String[], CommandLineReader)clr
- CommandLineReader - the sources for compilation
first the String, then the CLR
java.lang.Exception
public Command compile(java.lang.String[] cl, CommandLineReader clr) throws java.lang.Exception
cl
- String[] - array with one input line parsed into tokensclr
- CommandLineReader - the sources for compilation
first the String[], then the CLR
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |