Class org.as2lib.data.holder.stack.StackStringifier

org.as2lib.core.BasicClass
   +--org.as2lib.data.holder.stack.StackStringifier

Implemented Interfaces

Stringifier

Description

StackStringifier stringifies instances of type Stack.

Method Index

execute()

Inherited from BasicClass

toString()

Method Detail

execute

public function execute(target):String

Returns the string representation of the passed-in target stack.

target must be an instance of type Stack.

The string representation is constructed as follows:

   [lastlyAddedValue, penultimatelyAddedValue, ...]
 

Parameters

targetthe target stack to stringify

Return

the string representation of the passed-in target stack

Specified By

execute() in org.as2lib.util.Stringifier