Class ListBasedAstArray
java.lang.Object
dev.webfx.platform.ast.spi.factory.impl.generic.ListBasedAstArray
- All Implemented Interfaces:
AstArray
,AstNode
,ReadOnlyAstArray
,ReadOnlyAstNode
,Iterable<Object>
- Direct Known Subclasses:
ListAstArray
- Author:
- Bruno Salmon
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
clear()
Removes all entries.protected void
boolean
getList()
protected void
<T> T
remove
(int index) Remove a given index and associated value from the object.protected abstract void
int
size()
Length of the array or number of keys of the objectMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.webfx.platform.ast.AstArray
push, push, push, push, push, push, pushScalar, set, set, set, set, set, set, setScalar
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
Methods inherited from interface dev.webfx.platform.ast.ReadOnlyAstNode
isArray, isEmpty, isObject
-
Field Details
-
isShallowCopy
protected boolean isShallowCopy
-
-
Constructor Details
-
ListBasedAstArray
protected ListBasedAstArray() -
ListBasedAstArray
-
-
Method Details
-
getList
-
setList
-
deepCopyNativeArray
protected void deepCopyNativeArray() -
checkCopyBeforeUpdate
protected void checkCopyBeforeUpdate() -
size
public int size()Description copied from interface:ReadOnlyAstArray
Length of the array or number of keys of the object- Specified by:
size
in interfaceReadOnlyAstArray
- Specified by:
size
in interfaceReadOnlyAstNode
-
remove
public <T> T remove(int index) Description copied from interface:AstArray
Remove a given index and associated value from the object. -
clear
public void clear()Description copied from interface:AstNode
Removes all entries. -
recreateEmptyNativeArray
protected void recreateEmptyNativeArray() -
equals
-