net.sf.tomp.xtcl
Interface Compiler
- All Known Implementing Classes:
- CompilerBase
- public interface Compiler
- Author:
- tomp TODO To change the template for this generated type comment go
to Window - Preferences - Java - Code Style - Code Templates
compile
public 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
public 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
public 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
public Command compile(java.lang.String script)
throws java.lang.Exception
- Parameters:
script
-
- Returns:
- compiled Command
- Throws:
java.lang.Exception
- if something bad occurs
getContext
public Context getContext()
- Returns:
- Returns the context.
getNextCompiler
public Compiler getNextCompiler()
- Returns:
- Returns this Compiler's parent.
setContext
public void setContext(Context context)
- Parameters:
context
- The context to set.
Copyright © 2004 Masaryk University in Brno, Faculty of Informatics, Czech Republic. All Rights Reserved.