| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| pack-priv static class | IonValueLite.
Lazy memoized symtab provider. |
| Modifier and Type | Field and Description |
|---|---|
| protected SymbolToken[] | _annotations
The annotation sequence. |
| protected IonContext | _context
Not null. |
| private int | |
| protected String | |
| private int | |
| pack-priv static final int | |
| private static final IonTextWriterBuilder | |
| private static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | IS_LOCKED
this hold all the various boolean flags we have in a single int. |
| protected static final int | |
| protected static final int | IS_SYMBOL_ID_PRESENT
Symbol ID present refers to there being the possibility that the IonValueLite, or it's contained sub graph
(e.g. if it is a |
| protected static final int | |
| protected static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv | IonValueLite(ContainerlessContext
the context that this value is associated with context, boolean if true, sets the null bit in the flags member field isNull)The constructor, which is called from the concrete subclasses' constructors. |
| pack-priv | IonValueLite(IonValueLite
the non-null existing IonValueLite entity to clone existing, IonContext the non-null parent context to use for the cloned entity. context)Copy Constructor *purely* for cloning - NOTE; this means that the clone is not perfect as if the original entity was read-only the cloned value will now be mutable. |
| Modifier and Type | Method and Description |
|---|---|
| protected final void | |
| protected final int | |
| protected final int | Returns: the metadata from _flags at the given mask.the location of the metadata to retrieve. mask, int the number of bits to right-shift the metadata so that
it starts at bit index 0. shift)Used by subclasses to retrieve metadata set by
|
| protected final boolean | |
| protected final boolean | |
| protected final boolean | |
| protected final boolean | |
| protected final boolean | |
| protected final boolean | |
| protected final boolean | |
| protected final boolean | |
| protected final boolean | |
| protected final boolean | |
| protected final boolean | |
| protected final boolean | |
| protected final boolean | |
| protected final boolean | |
| protected final boolean | |
| protected final boolean | |
| protected final void | _setMetadata(int
the metadata to set. metadata, int the location at which to set the metadata. Must be within
the lower 8 bits. mask, int the number of bits to left-shift the metadata so that
it starts at the index of the mask's LSB. shift)May be used by subclasses to reuse _flag bits for purposes specific to that subclass. |
| public abstract void | accept(ValueVisitor
will have one of its visitor)visit methods called.Redeclares com. Entry point for visitor pattern. |
| public void | addTypeAnnotation(String
as a string value. annotation)Implements com. Adds a user type annotation to the annotations attached to this value. |
| pack-priv boolean | Returns: true if all SID's have been successfully removed, otherwise falseSets this value's symbol table to null, and erases any SIDs here and recursively. |
| protected void | |
| protected void | |
| pack-priv final void | |
| private final void | |
| private boolean | |
| pack-priv final boolean | |
| public final void | clearTypeAnnotations()
Implements com. Removes all the user type annotations attached to this value. |
| public abstract IonValue | clone()
Redeclares com. Overrides java. Creates a copy of this value and all of its children. |
| private int | |
| pack-priv final void | |
| pack-priv final void | |
| public void | |
| public final boolean | Returns: A boolean, true if the other value is an Ion Value that is the same content and annotations.The value to compare with. other)Overrides java. Implements com. Implements equality over values. |
| public final int | findTypeAnnotation(String
the annotation to find. annotation)Implements com. Returns the given annotation's index in the value's annotations list, or -1 if not present. |
| public SymbolTable | getAssignedSymbolTable()
Implements com. Returns the symbol table that is directly associated with this value, without doing any recursive lookup. |
| public IonContainerLite | getContainer()
Implements com. Gets the container of this value,
or |
| pack-priv IonContext | |
| public final int | |
| public final int | getFieldId()
Implements com. Gets the symbol ID of the field name attached to this value. |
| public final String | getFieldName()
Implements com. Gets the field name attached to this value,
or |
| public final int | |
| public SymbolToken | getFieldNameSymbol()
Implements com. Gets the field name attached to this value as an interned symbol (text + ID). |
| public final SymbolToken | getFieldNameSymbol(_Private_IonValue.
- provides this IonValue's symbol table symbolTableProviderImplements com. Overrides |
| public final SymbolToken | |
| public SymbolTable | Returns: not null, in conflict with the public documentation.Implements com. Gets the symbol table used to encode this value. |
| public IonSystemLite | getSystem()
Implements com. Gets the system that constructed this value. |
| public final IonType | getType()
Implements com. Gets an enumeration value identifying the core Ion data type of this object. |
| public final String[] | getTypeAnnotations()
Implements com. Gets this value's user type annotations as text. |
| public SymbolToken[] | getTypeAnnotationSymbols()
Implements com. Gets this value's user type annotations as interned symbols (text + ID). |
| public final SymbolToken[] | getTypeAnnotationSymbols(_Private_IonValue.
- provides this IonValue's symbol table symbolTableProviderImplements com. Overrides |
| pack-priv abstract IonType | |
| public int | Returns: hash code for instance consistent with equals().Overrides java. Implements com. Since |
| pack-priv abstract int | |
| protected int | |
| public final boolean | hasTypeAnnotation(String
as a string value. annotation)Implements com. Determines whether or not the value is annotated with a particular user type annotation. |
| private final boolean | |
| public final boolean | isNullValue()
Implements com. Determines whether this in an Ion null value, e.g.,
|
| public final boolean | isReadOnly()
Implements com. Determines whether this value is read-only. |
| public void | makeReadOnly()
Implements com. Marks this instance and its children to be immutable. |
| pack-priv void | |
| public boolean | removeFromContainer()
Implements com. Removes this value from its container, if any. |
| public void | removeTypeAnnotation(String
as a string value.
If null or empty, the method has no effect. annotation)Implements com. Removes a user type annotation from the list of annotations attached to this value. |
| private boolean | |
| pack-priv abstract int | |
| private final void | |
| pack-priv final void | setContext(IonContext
must not be null. context)This method is used to re-set the context of an IonValue. |
| pack-priv final void | |
| pack-priv final void | setFieldNameSymbol(SymbolToken
is not retained by this value, but both fields are copied. name)Sets the field name and ID based on a SymbolToken. |
| public void | setSymbolTable(SymbolTable
must be local or system table. May be null. symbols)Implements com. Makes this symbol table current for this value. |
| public void | setTypeAnnotations(String...
the new annotations. If null or empty array, then
all annotations are removed. Any duplicates are preserved. annotations)Implements com. Replaces all type annotations with the given text. |
| public void | setTypeAnnotationSymbols(SymbolToken...
the new annotations.
If null or empty array, then all annotations are removed.
Any duplicates are preserved. annotations)Implements com. Replaces all type annotations with the given symbol tokens. |
| pack-priv abstract IonValueLite | Returns: a shallow clone of this value.the context applicable to the value's parent. parentContext)Clones the value's annotations and field name (if any). |
| public IonValueLite | topLevelValue()
Implements com. Finds the top level value above this value. |
| public String | toPrettyString()
Implements com. Returns a pretty-printed Ion text representation of this value, using
the settings of |
| public String | toString()
Overrides java. Implements com. Returns a non-canonical Ion-formatted ASCII representation of this value. |
| public String | toString(IonTextWriterBuilder
the configuration that will be used for writing
data to a string. writerBuilder)Implements com. Returns an Ion text representation of this value, using the settings from the given builder. |
| public String | |
| pack-priv final void | |
| pack-priv abstract void | writeBodyTo(IonWriter
an IonWriter. writer, _Private_IonValue.a SymbolTableProvider. symbolTableProviderWrites a *non-null scalar* value to the given writer. |
| private static void | writeFieldNameAndAnnotations(IonWriter writer, IonValueLite value, _Private_IonValue.
|
| public void | writeTo(IonWriter writer)
Implements com. Copies this value to the given |
| pack-priv final void | |
| private void |