|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FlatteningListDecorator
This adapter is used by different script language implementations to teach
FlatteningList
about their own strange array and collection
implementations.
When Schmant starts, a ScriptExecutor
may register an implementation of this interface with the
FlatteningList
class.
Method Summary | ||
---|---|---|
|
tryAdd(FlatteningList<T> list,
int index,
Object o,
ObjectTransformer<T> transformer)
If o is an object that this decorator handles, add it to the
list. |
|
|
tryAdd(FlatteningList<T> list,
int index,
T o)
If o is an object that this decorator handles, add it to the
list. |
Method Detail |
---|
<T> int tryAdd(FlatteningList<T> list, int index, T o)
o
is an object that this decorator handles, add it to the
list.
T
- The type of objects in the list.list
- The list to add the object to.index
- The index for the new object in the list. If this argument
is -1
, add the object to the end of the list.o
- The object to add.
-1
.<T> int tryAdd(FlatteningList<T> list, int index, Object o, ObjectTransformer<T> transformer)
o
is an object that this decorator handles, add it to the
list.
T
- The type of objects in the list.index
- The index for the new object in the list. If this argument
is -1
, add the object to the end of the list.list
- The list to add the object to.o
- The object to add.transformer
- The transformer used to transform the object into the
list's type before it is added.
-1
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |