|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.millscript.millscript.Session
public abstract class Session
This is class represents a MillScript session.
| Field Summary | |
|---|---|
protected Configuration |
config
This sessions configuration. |
protected Engine |
engine
This sessions engine. |
protected CompilerState |
state
This sessions compiler state. |
| Constructor Summary | |
|---|---|
Session()
Constructs a new session. |
|
| Method Summary | |
|---|---|
void |
compile(Source source)
Compiles from the specified source. |
void |
compile(java.lang.String[] files)
Compiles the specified files sequentially. |
abstract void |
compile(java.lang.String origin,
java.io.Reader r)
Compiles code read from the specified reader, with the specified origin message. |
void |
compile(org.millscript.commons.vfs.VFile file)
Compiles from the specified virtual file. |
void |
printStatistics(long startTime)
Print statistics for the current session. |
void |
summarizeResults()
Summarizes any results left in the engine/machine. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Configuration config
protected Engine engine
protected CompilerState state
| Constructor Detail |
|---|
public Session()
| Method Detail |
|---|
public void compile(java.lang.String[] files)
files - a String array holding file names to compile
public abstract void compile(java.lang.String origin,
java.io.Reader r)
origin - the origin message for any problems.r - the reader to read code from.public void compile(org.millscript.commons.vfs.VFile file)
file - the virtual file to compile from.public void compile(Source source)
source - the source to compile from.public void printStatistics(long startTime)
startTime - the time in milliseconds that the session was started.public void summarizeResults()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||