|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.flagstone.transform.action.Table
public final class Table
Table is used to create a table of string literals that can be referenced by an index rather than using the literal value when executing a sequence of actions.
Variables and built-in functions are specified by their name and the Table class contains a table of the respective strings. References to a variable or function can then use its index in the table rather than the name resulting in a more compact representation when the actions are encoded into binary form.
TableIndex,
Push| Constructor Summary | |
|---|---|
Table()
Creates an empty Table. |
|
Table(List<String> list)
Creates a Table using the list of strings. |
|
Table(SWFDecoder coder)
Creates and initialises a Table action using values encoded in the Flash binary format. |
|
Table(Table object)
Creates and initialises a Table action using the values copied from another Table action. |
|
| Method Summary | |
|---|---|
Table |
add(String aString)
Adds a String to the variable table. |
Table |
copy()
Creates a complete copy of this object. |
void |
encode(SWFEncoder coder,
Context context)
Encode an object to the Flash binary format. |
List<String> |
getValues()
Get the table of strings. |
int |
prepareToEncode(Context context)
Prepare an object for encoding, returning the expected size of an object when it is encoded. |
void |
setValues(List<String> list)
Sets the list of Strings stored in the literal table. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Table(SWFDecoder coder)
throws IOException
coder - an SWFDecoder object that contains the encoded Flash data.
IOException - if an error occurs while decoding the data.public Table()
public Table(List<String> list)
list - of Strings that will be added to the table. Must not be null.public Table(Table object)
object - a Table action from which the values will be
copied.| Method Detail |
|---|
public Table add(String aString)
aString - a String that will be added to the end of the table. Must not
be null.
public List<String> getValues()
public void setValues(List<String> list)
list - a list of Strings that will replaces the existing literal
table. Must not be null.public Table copy()
copy in interface Copyable<Action>public String toString()
toString in class Objectpublic int prepareToEncode(Context context)
prepareToEncode in interface SWFEncodeablecontext - an Context that allows information to be passed between
objects to control how they are initialised for encoding.
public void encode(SWFEncoder coder,
Context context)
throws IOException
encode in interface SWFEncodeablecoder - an SWFEncoder object.context - an Context that allows information to be passed between
objects to control how they are initialised for encoding.
IOException - if an error occurs while encoding the object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||