Package dev.webfx.platform.ast
Interface AstArray
- All Superinterfaces:
AstNode
,Iterable<Object>
,ReadOnlyAstArray
,ReadOnlyAstNode
- All Known Subinterfaces:
NativeAstArray
- All Known Implementing Classes:
ListAstArray
,ListBasedAstArray
- Author:
- Bruno Salmon
-
Method Summary
Modifier and TypeMethodDescriptiondefault <T extends AstArray>
Tpush
(boolean value) Pushes the given boolean value onto the end of the array.default <T extends AstArray>
Tpush
(double value) Pushes the given double value onto the end of the array.default <T extends AstArray>
Tpush
(ReadOnlyAstArray array) Set a given index to the given array.default <T extends AstArray>
Tpush
(ReadOnlyAstObject object) Set a given index to the given object.<T extends AstArray>
TPushes the given element onto the end of the array.default <T extends AstArray>
TPushes the given boolean string onto the end of the array.default <T extends AstArray>
TpushScalar
(Object scalar) Set a given index to the given element.<V> V
remove
(int index) Remove a given index and associated value from the object.default <T extends AstArray>
Tset
(int index, ReadOnlyAstArray array) Set a given index to the given array.default <T extends AstArray>
Tset
(int index, ReadOnlyAstObject object) Set a given index to the given object.default <T extends AstArray>
TSet a given index to the given boolean.default <T extends AstArray>
TSet a given index to the given double.<T extends AstArray>
TSet a given index to the given value.default <T extends AstArray>
TSet a given index to the given string.default <T extends AstArray>
TSet a given index to the given scalar.Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface dev.webfx.platform.ast.ReadOnlyAstArray
getArray, getBoolean, getBoolean, getDouble, getDouble, getElement, getInteger, getInteger, getLong, getLong, getObject, getScalar, getScalar, getString, getString, indexOf, isArray, isNull, isObject, isScalar, iterator, size
Methods inherited from interface dev.webfx.platform.ast.ReadOnlyAstNode
isArray, isEmpty, isObject
-
Method Details
-
remove
<V> V remove(int index) Remove a given index and associated value from the object. -
push
Pushes the given element onto the end of the array. Most consuming call. -
push
Set a given index to the given object. -
push
Set a given index to the given array. -
pushScalar
Set a given index to the given element. -
push
Pushes the given boolean string onto the end of the array. -
push
Pushes the given boolean value onto the end of the array. -
push
Pushes the given double value onto the end of the array. -
set
Set a given index to the given value. Most consuming call. -
set
Set a given index to the given object. -
set
Set a given index to the given array. -
setScalar
Set a given index to the given scalar. -
set
Set a given index to the given string. -
set
Set a given index to the given boolean. -
set
Set a given index to the given double.
-