| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| protected class | IonContainerLite.
Encapsulates an iterator and implements a custom remove method |
| Modifier and Type | Field and Description |
|---|---|
| protected int | |
| protected IonValueLite[] | |
| pack-priv static final int[] | INITIAL_SIZE
sizes for the various types of containers expected to be tuned. |
| protected IonSystemLite | |
| pack-priv static final int[] | |
| pack-priv static final int | |
| protected int |
| Access | Constructor and Description |
|---|---|
| protected | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | accept(ValueVisitor
will have one of its visitor)visit methods called.Redeclares com. Implements abstract com. Entry point for visitor pattern. |
| public boolean | |
| pack-priv void | |
| protected int | |
| pack-priv void | afterIteratorRemove(IonValueLite
the value that was removed. value, int the container index of the value that was removed. idx)Called after a value is removed from the SequenceContentIterator. |
| pack-priv void | beforeIteratorRemove(IonValueLite
the value that will be removed. value, int the container index of the value that will be removed. idx)Called before a value is removed from the SequenceContentIterator. |
| public void | clear()
Implements com. Clears the contents of this container (if any) and set it to empty. |
| public IonContainer | clone()
Implements abstract com. Implements com. Creates a copy of this value and all of its children. |
| pack-priv final IonContainerLite | Returns: the clone.true if the value to be cloned is an IonDatagram; otherwise, false. isDatagramBeingCloned)Clones the container by walking it iteratively. |
| private void | |
| pack-priv void | |
| public IonValue | |
| public final IonValueLite | |
| public final int | |
| public final IonContainerLite | getContextContainer()
Implements com. methods from IonValue public void deepMaterialize() public IonContainer getContainer() public int getFieldId() public String getFieldName() public String[] getTypeAnnotations() public boolean hasTypeAnnotation(String annotation) public boolean isNullValue() public boolean isReadOnly() public void removeTypeAnnotation(String annotation) |
| pack-priv IonContext | |
| public final SymbolTable | Returns: null, since symbol tables are only directly assigned
to top-level values.Implements com. Returns the symbol table that is directly assigned to this context. |
| public IonSystemLite | getSystem()
Overrides com. Implements com. Get the IonSystem concrete object that created the IonValue that is associated with this context. |
| protected final int | |
| public boolean | |
| public final Iterator | iterator()
Implements com. Creates an iterator providing the (direct) elements of this container. |
| public final ListIterator | |
| public ListIterator | |
| pack-priv static int[] | |
| pack-priv static int[] | |
| public void | makeNull()
Implements com. Sets the contents of this container to an Ion |
| protected final int | |
| public final void | |
| public boolean | remove(IonValue
the element to be removed from this container,
if present. element)Implements com. Removes the given element from this container. |
| pack-priv void | |
| pack-priv final int | scalarHashCode()
Implements abstract com. Internal HashCode implementation to be overridden by scalar subclasses. |
| pack-priv final IonValueLite | |
| private static void | setCloneContext(IonContainerLite.
the context to fill in. cloneContext,the container being cloned. containerOriginal, IonContainerLite the container clone. containerCopy, boolean true if the value being cloned is a child of a datagram. needsTopLevelContext)Prepares a CloneContext for the container that is about to be walked. |
| public int | size()
Implements com. Returns the number of elements in this container. |
| pack-priv void | transitionToLargeSize(int size)
This is overridden in |
| pack-priv void | validateNewChild(IonValue child)
Ensures that a potential new child is non-null, has no container, is not read-only, and is not a datagram. |
| pack-priv final void | writeBodyTo(IonWriter
an IonWriter. writer, _Private_IonValue.a SymbolTableProvider. symbolTableProviderImplements abstract com. Writes a *non-null scalar* value to the given writer. |
| _child_count | back to summary |
|---|---|
| protected int _child_count | |
| _children | back to summary |
|---|---|
| protected IonValueLite[] _children | |
| INITIAL_SIZE | back to summary |
|---|---|
| pack-priv static final int[] INITIAL_SIZE sizes for the various types of containers expected to be tuned. | |
| ionSystem | back to summary |
|---|---|
| protected IonSystemLite ionSystem | |
| NEXT_SIZE | back to summary |
|---|---|
| pack-priv static final int[] NEXT_SIZE | |
| STRUCT_INITIAL_SIZE | back to summary |
|---|---|
| pack-priv static final int STRUCT_INITIAL_SIZE | |
| structuralModificationCount | back to summary |
|---|---|
| protected int structuralModificationCount | |
| IonContainerLite | back to summary |
|---|---|
| protected IonContainerLite(ContainerlessContext context, boolean isNull) | |
| IonContainerLite | back to summary |
|---|---|
| pack-priv IonContainerLite(IonContainerLite existing, IonContext context) | |
| accept | back to summary |
|---|---|
| public abstract void accept(ValueVisitor visitor) throws Exception Redeclares com. Implements abstract com. Doc from com. Entry point for visitor pattern. Implementations of this method by
concrete classes will simply call the appropriate
| |
| add | back to summary |
|---|---|
| public boolean add(IonValue child) throws NullPointerException, IllegalArgumentException, ContainedValueException | |
| add | back to summary |
|---|---|
| pack-priv void add(int index, IonValueLite child) throws ContainedValueException, NullPointerException Validates the child and checks locks.
| |
| add_child | back to summary |
|---|---|
| protected int add_child(int idx, IonValueLite child) Does not validate the child or check locks. | |
| afterIteratorRemove | back to summary |
|---|---|
| pack-priv void afterIteratorRemove(IonValueLite value, int idx) Called after a value is removed from the SequenceContentIterator. May be overridden by subclasses that require custom behavior.
| |
| beforeIteratorRemove | back to summary |
|---|---|
| pack-priv void beforeIteratorRemove(IonValueLite value, int idx) Called before a value is removed from the SequenceContentIterator. May be overridden by subclasses that require custom behavior.
| |
| clear | back to summary |
|---|---|
| public void clear() Implements com. Doc from com. Clears the contents of this container (if any) and set it to empty.
If this container is an Ion
Use Warning This method is not support for instances of
| |
| clone | back to summary |
|---|---|
| public IonContainer clone() Implements abstract com. Implements com. Doc from com. Creates a copy of this value and all of its children. The cloned value
may use the same shared symbol tables, but it will have an independent local
symbol table if necessary. The cloned value will
be modifiable regardless of whether this instance
The cloned value will be created in the context of the same
| |
| deepClone | back to summary |
|---|---|
| pack-priv final IonContainerLite deepClone(boolean isDatagramBeingCloned) Clones the container by walking it iteratively.
| |
| detachAllChildren | back to summary |
|---|---|
| private void detachAllChildren() | |
| forceMaterializationOfLazyState | back to summary |
|---|---|
| pack-priv void forceMaterializationOfLazyState() Force any lazy state to be materialized (if applicable). | |
| get | back to summary |
|---|---|
| public IonValue get(int index) throws NullValueException | |
| get_child | back to summary |
|---|---|
| public final IonValueLite get_child(int idx) Implements com. | |
| get_child_count | back to summary |
|---|---|
| public final int get_child_count() Implements com. | |
| getContextContainer | back to summary |
|---|---|
| public final IonContainerLite getContextContainer() Implements com. methods from IonValue public void deepMaterialize() public IonContainer getContainer() public int getFieldId() public String getFieldName() public String[] getTypeAnnotations() public boolean hasTypeAnnotation(String annotation) public boolean isNullValue() public boolean isReadOnly() public void removeTypeAnnotation(String annotation)
| |
| getContextForIndex | back to summary |
|---|---|
| pack-priv IonContext getContextForIndex(IonValue element, int index) | |
| getContextSymbolTable | back to summary |
|---|---|
| public final SymbolTable getContextSymbolTable() Implements com. Doc from com. Returns the symbol table that is directly assigned to this context.
For
| |
| getSystem | back to summary |
|---|---|
| public IonSystemLite getSystem() Overrides com. Implements com. Doc from com. Get the IonSystem concrete object that created the IonValue that is associated with this context. Generally this delegates to the parent.
| |
| initialSize | back to summary |
|---|---|
| protected final int initialSize() | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() throws NullValueException Implements com. Doc from com. Checks if this container is empty.
| |
| iterator | back to summary |
|---|---|
| public final Iterator Implements com. Doc from com. Creates an iterator providing the (direct) elements of this container. If this is an Ion null value, then this method returns an empty iterator.
Note that iteration over a | |
| listIterator | back to summary |
|---|---|
| public final ListIterator | |
| listIterator | back to summary |
|---|---|
| public ListIterator | |
| make_initial_size_array | back to summary |
|---|---|
| pack-priv static int[] make_initial_size_array() | |
| make_next_size_array | back to summary |
|---|---|
| pack-priv static int[] make_next_size_array() | |
| makeNull | back to summary |
|---|---|
| public void makeNull() Implements com. Doc from com. Sets the contents of this container to an Ion
Use | |
| nextSize | back to summary |
|---|---|
| protected final int nextSize(int current_size, boolean call_transition) | |
| patch_elements_helper | back to summary |
|---|---|
| public final void patch_elements_helper(int lowest_bad_idx) | |
| remove | back to summary |
|---|---|
| public boolean remove(IonValue element) Implements com. Doc from com. Removes the given element from this container.
If this is an Ion null value, then this
method returns
Note that, unlike
| |
| remove_child | back to summary |
|---|---|
| pack-priv void remove_child(int idx) Does not check locks. | |
| scalarHashCode | back to summary |
|---|---|
| pack-priv final int scalarHashCode() Implements abstract com. Doc from com. Internal HashCode implementation to be overridden by scalar subclasses. Must only be called on non-null values.
| |
| set_child | back to summary |
|---|---|
| pack-priv final IonValueLite set_child(int idx, IonValueLite child) | |
| setCloneContext | back to summary |
|---|---|
| private static void setCloneContext(IonContainerLite. Prepares a CloneContext for the container that is about to be walked.
| |
| size | back to summary |
|---|---|
| public int size() Implements com. Doc from com. Returns the number of elements in this container.
| |
| transitionToLargeSize | back to summary |
|---|---|
| pack-priv void transitionToLargeSize(int size) This is overridden in | |
| validateNewChild | back to summary |
|---|---|
| pack-priv void validateNewChild(IonValue child) throws ContainedValueException, NullPointerException, IllegalArgumentException Ensures that a potential new child is non-null, has no container, is not read-only, and is not a datagram.
| |
| writeBodyTo | back to summary |
|---|---|
| pack-priv final void writeBodyTo(IonWriter writer, _Private_IonValue. Implements abstract com. Doc from com. Writes a *non-null scalar* value to the given writer. It is incorrect to call this method on a container value.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv IonContext | |
| pack-priv IonContainerLite | |
| pack-priv boolean | |
| pack-priv IonContainerLite |
| Access | Constructor and Description |
|---|---|
| private |
| childIndex | back to summary |
|---|---|
| pack-priv int childIndex | |
| contextCopy | back to summary |
|---|---|
| pack-priv IonContext contextCopy | |
| parentCopy | back to summary |
|---|---|
| pack-priv IonContainerLite parentCopy | |
| parentIsStruct | back to summary |
|---|---|
| pack-priv boolean parentIsStruct | |
| parentOriginal | back to summary |
|---|---|
| pack-priv IonContainerLite parentOriginal | |
| CloneContext | back to summary |
|---|---|
| private CloneContext() | |
| Modifier and Type | Field and Description |
|---|---|
| protected IonValueLite | |
| protected boolean | |
| protected int | |
| protected final boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(IonValue
the element to insert element)Implements java. Inserts the specified element into the list (optional operation). |
| protected final void | |
| private final void | |
| public final boolean | hasNext()
Implements java. Returns |
| public final boolean | hasPrevious()
Implements java. Returns |
| public IonValue | next()
Implements java. Returns the next element in the list and advances the cursor position. |
| public final int | nextIndex()
Implements java. Returns the index of the element that would be returned by a
subsequent call to |
| pack-priv IonValueLite | |
| public IonValue | previous()
Implements java. Returns the previous element in the list and moves the cursor position backwards. |
| public final int | previousIndex()
Implements java. Returns the index of the element that would be returned by a
subsequent call to |
| public void | remove()
Implements java. Sets the container to dirty after calling |
| public void | set(IonValue
the element with which to replace the last element returned by
element)next or previousImplements java. Replaces the last element returned by |
| __current | back to summary |
|---|---|
| protected IonValueLite __current | |
| __lastMoveWasPrevious | back to summary |
|---|---|
| protected boolean __lastMoveWasPrevious | |
| __pos | back to summary |
|---|---|
| protected int __pos | |
| __readOnly | back to summary |
|---|---|
| protected final boolean __readOnly | |
| SequenceContentIterator | back to summary |
|---|---|
| public SequenceContentIterator(int index, boolean readOnly) | |
| add | back to summary |
|---|---|
| public void add(IonValue element) Implements java. Doc from java. Inserts the specified element into the list (optional operation).
The element is inserted immediately before the element that
would be returned by
| |
| force_position_sync | back to summary |
|---|---|
| protected final void force_position_sync() | |
| force_position_sync_helper | back to summary |
|---|---|
| private final void force_position_sync_helper() | |
| hasNext | back to summary |
|---|---|
| public final boolean hasNext() Implements java. Doc from java. Returns
| |
| hasPrevious | back to summary |
|---|---|
| public final boolean hasPrevious() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public IonValue next() Implements java. Doc from java. Returns the next element in the list and advances the cursor position.
This method may be called repeatedly to iterate through the list,
or intermixed with calls to
| |
| nextIndex | back to summary |
|---|---|
| public final int nextIndex() Implements java. Doc from java. Returns the index of the element that would be returned by a
subsequent call to
| |
| nextOrNull | back to summary |
|---|---|
| pack-priv IonValueLite nextOrNull() Returns the next element, or null if there are no more elements. This does not call force_position_sync(), so it must only be called from contexts where it is guaranteed that the container has not been mutated since the last position sync. | |
| previous | back to summary |
|---|---|
| public IonValue previous() Implements java. Doc from java. Returns the previous element in the list and moves the cursor
position backwards. This method may be called repeatedly to
iterate through the list backwards, or intermixed with calls to
| |
| previousIndex | back to summary |
|---|---|
| public final int previousIndex() Implements java. Doc from java. Returns the index of the element that would be returned by a
subsequent call to
| |
| remove | back to summary |
|---|---|
| public void remove() Implements java. Sets the container to dirty after calling | |
| set | back to summary |
|---|---|
| public void set(IonValue element) Implements java. Doc from java. Replaces the last element returned by
| |