|
Tea Java Runtime API Version 3.2.4 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.pdmfc.tea.compiler.SCompiler
public class SCompiler
Parses a Tea script and produces bytecode that can be executed
later. The bytecode is stored inside a
object.
SCode
Objects of this class should not be used from inside of more then one thread at a time.
| Constructor Summary | |
|---|---|
SCompiler()
|
|
| Method Summary | |
|---|---|
SCode |
compile(byte[] script)
Compiles the Tea script stored in the script byte array. |
SCode |
compile(byte[] script,
int offset,
int length)
Compiles the Tea script stored in the script byte array. |
SCode |
compile(java.io.InputStream input)
Compiles the Tea script read from the an InputStream. |
SCode |
compile(java.io.InputStream input,
java.lang.String fileName)
Compiles the Tea script read from the an InputStream. |
SCode |
compile(java.lang.String fileName)
Compiles the Tea script read from the file fileName and builds an SCode object representing the compiled code. |
static java.lang.String |
unescape(java.lang.String s)
Takes a Tea string literal and builds the string represented by that literal. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SCompiler()
| Method Detail |
|---|
public SCode compile(java.lang.String fileName)
throws SCompileException
fileName - The name of the file containing the Tea script.
SCompileException - Thrown in the
following cases:
public SCode compile(java.io.InputStream input,
java.lang.String fileName)
throws SCompileException
InputStream.
input - Reference to an InputStream where a
script will be read from.
SCode object containing the bytecode
that can be executed later.
SCompileException - Thrown if a
syntax error was found during compilation or there were problems
reading from the InputStream.
public SCode compile(java.io.InputStream input)
throws SCompileException
input - Reference to an InputStream where a script
will be read from.
SCompileException - Thrown if a
syntax error was found during compilation.
public SCode compile(byte[] script,
int offset,
int length)
throws SCompileException
script - A Tea script.
SCompileException - Thrown if a
syntax error was found during compilation.
public SCode compile(byte[] script)
throws SCompileException
script - A Tea script.
SCompileException - Thrown if a
syntax error was found during compilation.public static java.lang.String unescape(java.lang.String s)
s - The Tea string literal to unescape.
|
Tea Java Runtime API Version 3.2.4 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||