public final class TAMEScriptReader extends java.lang.Object implements TAMEConstants
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
STREAMNAME_TEXT |
CUE_ERROR, CUE_FATAL, CUE_PAUSE, CUE_QUIT, CUE_TEXT, CUE_TEXTF, CUE_TRACE, CUE_WAIT, DEFAULT_FUNCTION_DEPTH, DEFAULT_RUNAWAY_THRESHOLD, HEADER_AUTHOR, HEADER_COUNTRY, HEADER_EMAIL, HEADER_LANGUAGE, HEADER_TAME_FUNCDEPTH_MAX, HEADER_TAME_RUNAWAY_MAX, HEADER_TITLE, HEADER_TWITTER, HEADER_VERSION, HEADER_WEBSITE, IDENTITY_ARCHETYPE_CONTAINER, IDENTITY_CURRENT_PLAYER, IDENTITY_CURRENT_ROOM, IDENTITY_CURRENT_WORLD, RETURN_VARIABLE
Modifier and Type | Method and Description |
---|---|
static TAMEModule |
read(java.io.File file)
Reads TAMEModule objects into a new module from a starting text file.
|
static TAMEModule |
read(java.io.File file,
TAMEScriptIncluder includer)
Reads TAMEModule objects into a new module from a starting text file.
|
static TAMEModule |
read(java.io.File file,
TAMEScriptReaderOptions options)
Reads TAMEModule objects into a new module from a starting text file.
|
static TAMEModule |
read(java.io.File file,
TAMEScriptReaderOptions options,
TAMEScriptIncluder includer)
Reads TAMEModule objects into a new module from a starting text file.
|
static TAMEModule |
read(java.lang.String text)
Reads TAMEModule objects from a String of text into a new module.
|
static TAMEModule |
read(java.lang.String text,
TAMEScriptIncluder includer)
Reads TAMEModule objects from a String of text into a new module.
|
static TAMEModule |
read(java.lang.String text,
TAMEScriptReaderOptions options)
Reads TAMEModule objects from a String of text into a new module.
|
static TAMEModule |
read(java.lang.String text,
TAMEScriptReaderOptions options,
TAMEScriptIncluder includer)
Reads TAMEModule objects from a String of text into a new module.
|
static TAMEModule |
read(java.lang.String streamName,
java.io.InputStream in)
Reads TAMEModule objects into a new module.
|
static TAMEModule |
read(java.lang.String streamName,
java.io.InputStream in,
TAMEScriptIncluder includer)
Reads TAMEModule objects into a new module.
|
static TAMEModule |
read(java.lang.String streamName,
java.io.InputStream in,
TAMEScriptReaderOptions options)
Reads TAMEModule objects into a new module.
|
static TAMEModule |
read(java.lang.String streamName,
java.io.InputStream in,
TAMEScriptReaderOptions options,
TAMEScriptIncluder includer)
Reads TAMEModule objects into a new module.
|
static TAMEModule |
read(java.lang.String streamName,
java.lang.String text)
Reads TAMEModule objects from a String of text into a new module.
|
static TAMEModule |
read(java.lang.String streamName,
java.lang.String text,
TAMEScriptIncluder includer)
Reads TAMEModule objects from a String of text into a new module.
|
static TAMEModule |
read(java.lang.String streamName,
java.lang.String text,
TAMEScriptReaderOptions options)
Reads TAMEModule objects from a String of text into a new module.
|
static TAMEModule |
read(java.lang.String streamName,
java.lang.String text,
TAMEScriptReaderOptions options,
TAMEScriptIncluder includer)
Reads TAMEModule objects from a String of text into a new module.
|
public static final java.lang.String STREAMNAME_TEXT
public static TAMEModule read(java.lang.String text) throws java.io.IOException
text
- the String to read from.TAMEScriptParseException
- if one or more parse errors happen.java.io.IOException
- if the stream can't be read.java.lang.NullPointerException
- if file is null.public static TAMEModule read(java.lang.String text, TAMEScriptIncluder includer) throws java.io.IOException
text
- the String to read from.includer
- the includer to use to resolve "included" paths.TAMEScriptParseException
- if one or more parse errors happen.java.io.IOException
- if the stream can't be read.java.lang.NullPointerException
- if text is null.public static TAMEModule read(java.lang.String text, TAMEScriptReaderOptions options) throws java.io.IOException
text
- the String to read from.options
- the reader options for compiling.java.io.IOException
- if the stream can't be read.java.lang.NullPointerException
- if file is null.public static TAMEModule read(java.lang.String text, TAMEScriptReaderOptions options, TAMEScriptIncluder includer) throws java.io.IOException
text
- the String to read from.options
- the reader options for compiling.includer
- the includer to use to resolve "included" paths.java.io.IOException
- if the stream can't be read.java.lang.NullPointerException
- if file is null.public static TAMEModule read(java.lang.String streamName, java.lang.String text) throws java.io.IOException
streamName
- a name to assign to the stream.text
- the String to read from.TAMEScriptParseException
- if one or more parse errors happen.java.io.IOException
- if the stream can't be read.java.lang.NullPointerException
- if file is null.public static TAMEModule read(java.lang.String streamName, java.lang.String text, TAMEScriptIncluder includer) throws java.io.IOException
streamName
- a name to assign to the stream.text
- the String to read from.includer
- the includer to use to resolve "included" paths.TAMEScriptParseException
- if one or more parse errors happen.java.io.IOException
- if the stream can't be read.java.lang.NullPointerException
- if text is null.public static TAMEModule read(java.lang.String streamName, java.lang.String text, TAMEScriptReaderOptions options) throws java.io.IOException
streamName
- a name to assign to the stream.text
- the String to read from.options
- the reader options for compiling.java.io.IOException
- if the stream can't be read.java.lang.NullPointerException
- if file is null.public static TAMEModule read(java.lang.String streamName, java.lang.String text, TAMEScriptReaderOptions options, TAMEScriptIncluder includer) throws java.io.IOException
streamName
- a name to assign to the stream.text
- the String to read from.options
- the reader options for compiling.includer
- the includer to use to resolve "included" paths.java.io.IOException
- if the stream can't be read.java.lang.NullPointerException
- if file is null.public static TAMEModule read(java.io.File file) throws java.io.IOException
file
- the file to read from.TAMEScriptParseException
- if one or more parse errors happen.java.io.IOException
- if the stream can't be read.java.lang.SecurityException
- if a read error happens due to OS permissioning.java.lang.NullPointerException
- if file is null.public static TAMEModule read(java.io.File file, TAMEScriptIncluder includer) throws java.io.IOException
file
- the file to read from.includer
- the includer to use to resolve "included" paths.TAMEScriptParseException
- if one or more parse errors happen.java.io.IOException
- if the stream can't be read.java.lang.SecurityException
- if a read error happens due to OS permissioning.java.lang.NullPointerException
- if file is null.public static TAMEModule read(java.io.File file, TAMEScriptReaderOptions options) throws java.io.IOException
file
- the file to read from.options
- the reader options for compiling.TAMEScriptParseException
- if one or more parse errors happen.java.io.IOException
- if the stream can't be read.java.lang.SecurityException
- if a read error happens due to OS permissioning.java.lang.NullPointerException
- if file is null.public static TAMEModule read(java.io.File file, TAMEScriptReaderOptions options, TAMEScriptIncluder includer) throws java.io.IOException
file
- the file to read from.options
- the reader options for compiling.includer
- the includer to use to resolve "included" paths.TAMEScriptParseException
- if one or more parse errors happen.java.io.IOException
- if the stream can't be read.java.lang.SecurityException
- if a read error happens due to OS permissioning.java.lang.NullPointerException
- if file is null.public static TAMEModule read(java.lang.String streamName, java.io.InputStream in) throws java.io.IOException
streamName
- the name of the stream.in
- the stream to read from.TAMEScriptParseException
- if one or more parse errors happen.java.io.IOException
- if the stream can't be read.java.lang.SecurityException
- if a read error happens due to OS permissioning.java.lang.NullPointerException
- if in is null.public static TAMEModule read(java.lang.String streamName, java.io.InputStream in, TAMEScriptIncluder includer) throws java.io.IOException
streamName
- the name of the stream.in
- the stream to read from.includer
- the includer to use to resolve "included" paths.TAMEScriptParseException
- if one or more parse errors happen.java.io.IOException
- if the stream can't be read.java.lang.SecurityException
- if a read error happens due to OS permissioning.java.lang.NullPointerException
- if in is null.public static TAMEModule read(java.lang.String streamName, java.io.InputStream in, TAMEScriptReaderOptions options) throws java.io.IOException
streamName
- the name of the stream.in
- the stream to read from.options
- the reader options for compiling.TAMEScriptParseException
- if one or more parse errors happen.java.io.IOException
- if the stream can't be read.java.lang.SecurityException
- if a read error happens due to OS permissioning.java.lang.NullPointerException
- if in is null.public static TAMEModule read(java.lang.String streamName, java.io.InputStream in, TAMEScriptReaderOptions options, TAMEScriptIncluder includer) throws java.io.IOException
streamName
- the name of the stream.in
- the stream to read from.options
- the reader options for compiling.includer
- the includer to use to resolve "included" paths.TAMEScriptParseException
- if one or more parse errors happen.java.io.IOException
- if the stream can't be read.java.lang.SecurityException
- if a read error happens due to OS permissioning.java.lang.NullPointerException
- if in is null.