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 voidvoidclear()Removes all entries.protected voidbooleangetList()protected void<T> Tremove(int index) Remove a given index and associated value from the object.protected abstract voidintsize()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, waitMethods inherited from interface dev.webfx.platform.ast.AstArray
push, push, push, push, push, push, pushScalar, set, set, set, set, set, set, setScalarMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods 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, iteratorMethods 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:ReadOnlyAstArrayLength of the array or number of keys of the object- Specified by:
sizein interfaceReadOnlyAstArray- Specified by:
sizein interfaceReadOnlyAstNode
-
remove
public <T> T remove(int index) Description copied from interface:AstArrayRemove a given index and associated value from the object. -
clear
public void clear()Description copied from interface:AstNodeRemoves all entries. -
recreateEmptyNativeArray
protected void recreateEmptyNativeArray() -
equals
-