net.sf.tomp.xtcl
Interface Compiler
- All Known Implementing Classes:
- CompilerBase, XTCompiler
public interface Compiler
Compiler for compiling XTCL script from various sources.
- Author:
- tomp
compile
Command compile(CommandLineReader clr)
throws java.lang.Exception
- Compiles commands from a CommandLineReader into a command Sequence
- Parameters:
clr
- CommandLineReader - the source for compilation
- Returns:
- the compiled Command
- Throws:
java.lang.Exception
- if something bad occurs
compile
Command compile(java.lang.String[] cl,
CommandLineReader clr)
throws java.lang.Exception
- Parameters:
cl
- Current (first) command lines (already split to String[])clr
- CommandLineReader for further reading
- Returns:
- compiled Command
- Throws:
java.lang.Exception
- if something bad occurs
compile
Command compile(java.lang.String cl,
CommandLineReader clr)
throws java.lang.Exception
- Parameters:
cl
- Current (first) command lines (not yet split to String[])
- Returns:
- compiled Command
- Throws:
java.lang.Exception
- if something bad occurs
compile
Command compile(java.lang.String script)
throws java.lang.Exception
- Parameters:
script
-
- Returns:
- compiled Command
- Throws:
java.lang.Exception
- if something bad occurs
getContext
Context getContext()
- Returns:
- Returns the context.
getNextCompiler
Compiler getNextCompiler()
- Returns:
- Returns this Compiler's parent.
setContext
void setContext(Context context)
- Parameters:
context
- The context to set.