|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.flagstone.transform.action.Push
public final class Push
Push is used to push values on the Flash Player's internal stack.
Push supports the full range of data types supported by Flash:
| Boolean | A boolean value, 1 (true) or 0 (false). |
| Integer | A signed 32-bit integer, range -2,147,483,648 to 2,147,483,647. |
| Double | A double-precision (64-bit) floating-point number, range approximately +/- 1.79769313486231570E+308. |
| String | A String. The string is encoded as using the UTF-8 encoding which is backward compatible with ASCII encoding supported in Flash 5. |
| Register Index | The number (0..255) of one of the Flash player's internal registers. |
| Table Index | An index into a table of string literals defined using the Table action. |
| Null | A null value. |
| Void | A void value. |
| Movie Clip Property | A reserved number used to identify a specific property of a movie clip. |
| Player Property | A reserved number used to identify a specific property of the Flash Player. |
Null,
Property,
RegisterIndex,
TableIndex,
Void| Nested Class Summary | |
|---|---|
static class |
Push.Builder
The Builder class is used to generate a new Push object. |
| Constructor Summary | |
|---|---|
Push(List<Object> list)
Creates a Push action that will push the values in the list onto the stack. |
|
Push(Push object)
Creates and initialises a Push action using the values copied from another Push action. |
|
Push(SWFDecoder coder,
Context context)
Creates and initialises a Push action using values encoded in the Flash binary format. |
|
| Method Summary | |
|---|---|
Push |
copy()
Creates a complete copy of this object. |
void |
encode(SWFEncoder coder,
Context context)
Encode an object to the Flash binary format. |
List<Object> |
getValues()
Get the list of values that will be pushed onto the Flash Player's stack. |
int |
prepareToEncode(Context context)
Prepare an object for encoding, returning the expected size of an object when it is encoded. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Push(SWFDecoder coder,
Context context)
throws IOException
coder - an SWFDecoder object that contains the encoded Flash data.context - a Context object used to manage the decoders for different
type of object and to pass information on how objects are
decoded.
IOException - if an error occurs while decoding the data.public Push(List<Object> list)
list - a list of values to be pushed onto the stack. The values must
be one of the following classes: Boolean, Integer, Double,
String, RegisterIndex or TableIndex. Must not be null.public Push(Push object)
object - a Push action from which the values will be
copied. References to immutable objects will be shared.| Method Detail |
|---|
public List<Object> getValues()
public Push 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 | |||||||||