EMPTY_ARRAY
Modifier and Type | Method and Description |
---|---|
IonSymbol |
clone()
Creates a copy of this value and all of its children.
|
void |
setValue(String value)
Changes the value of this element.
|
String |
stringValue()
Gets the text content of this symbol.
|
SymbolToken |
symbolValue()
Returns this value as a symbol token (text + ID).
|
accept, addTypeAnnotation, clearTypeAnnotations, equals, getContainer, getFieldName, getFieldNameSymbol, getSymbolTable, getSystem, getType, getTypeAnnotations, getTypeAnnotationSymbols, hashCode, hasTypeAnnotation, isNullValue, isReadOnly, makeReadOnly, removeFromContainer, removeTypeAnnotation, setTypeAnnotations, setTypeAnnotationSymbols, topLevelValue, toPrettyString, toString, toString, writeTo
String stringValue() throws UnknownSymbolException
stringValue
in interface IonText
null
if this is
null.symbol
.UnknownSymbolException
- if this symbol has unknown text.symbolValue()
SymbolToken symbolValue()
IonValue.isNullValue()
void setValue(String value) throws EmptySymbolException
setValue
in interface IonText
value
- the new value of this symbol;
may be null
to make this null.symbol
.EmptySymbolException
- if value
is the empty string.IonSymbol clone() throws UnknownSymbolException
IonValue
IonValue.isReadOnly()
.
The cloned value will be created in the context of the same
ValueFactory
as this instance; if you want a copy using a
different factory, then use ValueFactory.clone(IonValue)
instead.
clone
in interface IonText
clone
in interface IonValue
UnknownSymbolException
- if any part of this value has unknown text but known Sid for
its field name, annotation or symbol.