public IonReaderTreeSystem(IonValue value) { if (value == null) { // do nothing _system_symtab = null; _symbolTableAccessor = null; } else { _system_symtab = value.getSystem().getSystemSymbolTable(); re_init(value, /* hoisted */ false); _symbolTableAccessor = new SymbolTableProvider() { public SymbolTable getSymbolTable() { return IonReaderTreeSystem.this.getSymbolTable(); } }; } }
/** * @param container must not be null. */ public static IonWriter makeSystemWriter(IonContainer container) { IonSystem sys = container.getSystem(); IonCatalog cat = sys.getCatalog(); SymbolTable defaultSystemSymtab = sys.getSystemSymbolTable(); IonWriter writer = new IonWriterSystemTree(defaultSystemSymtab, cat, container, null /* initialIvmHandling */); return writer; } }
/** * @param container must not be null. */ public static IonWriter makeWriter(IonCatalog catalog, IonContainer container) { IonSystem sys = container.getSystem(); SymbolTable defaultSystemSymtab = sys.getSystemSymbolTable(); // TODO the SUPPRESS here is a nasty discontinuity with other places // that create this kind of reader. It prevents the Lite DG system // iterator from returning two IVMs at the start of the data. // The Span tests detect that problem. IonWriterSystemTree system_writer = new IonWriterSystemTree(defaultSystemSymtab, catalog, container, InitialIvmHandling.SUPPRESS); return new IonWriterUser(catalog, sys, system_writer); }
public SymbolTable getSymbolTable() { return null == _symbols ? _system.getSystemSymbolTable() : _symbols; } };
final void init_user(IonCatalog catalog) { _symbols = _system.getSystemSymbolTable(); _catalog = catalog; }
/** Assumes that {@link #fillDefaults()} has been called. */ private IonWriter build(PrivateFastAppendable appender) { IonCatalog catalog = getCatalog(); SymbolTable[] imports = getImports(); // TODO We shouldn't need a system here IonSystem system = IonSystemBuilder.standard().withCatalog(catalog).build(); SymbolTable defaultSystemSymtab = system.getSystemSymbolTable(); IonWriterSystemText systemWriter = new IonWriterSystemText(defaultSystemSymtab, this, appender); SymbolTable initialSymtab = initialSymtab(((PrivateValueFactory)system).getLstFactory(), defaultSystemSymtab, imports); return new IonWriterUser(catalog, system, systemWriter, initialSymtab); }
IonReaderBinarySystemX(IonSystem system, UnifiedInputStreamX in) { super(); init_raw(in); _system = system; _symbols = system.getSystemSymbolTable(); }
@Override public SymbolTable getSymbolTable() { if (_symbols == null) { SymbolTable system_symbols = _system.getSystemSymbolTable(); _symbols = newLocalSymtab(_system, system_symbols); } return _symbols; }
/** * Horrible temporary hack. * * @return not null. */ @Override public SymbolTable getSymbolTable() { SymbolTable symtab = super.getSymbolTable(); if (symtab == null) { symtab = _system.getSystemSymbolTable(); } return symtab; }
public IonReaderTreeSystem(IonValue value) { if (value == null) { // do nothing _system_symtab = null; _symbolTableAccessor = null; } else { _system_symtab = value.getSystem().getSystemSymbolTable(); re_init(value, /* hoisted */ false); _symbolTableAccessor = new SymbolTableProvider() { public SymbolTable getSymbolTable() { return IonReaderTreeSystem.this.getSymbolTable(); } }; } }
/** * @param container must not be null. */ public static IonWriter makeSystemWriter(IonContainer container) { IonSystem sys = container.getSystem(); IonCatalog cat = sys.getCatalog(); SymbolTable defaultSystemSymtab = sys.getSystemSymbolTable(); IonWriter writer = new IonWriterSystemTree(defaultSystemSymtab, cat, container, null /* initialIvmHandling */); return writer; } }
/** * @param container must not be null. */ public static IonWriter makeSystemWriter(IonContainer container) { IonSystem sys = container.getSystem(); IonCatalog cat = sys.getCatalog(); SymbolTable defaultSystemSymtab = sys.getSystemSymbolTable(); IonWriter writer = new IonWriterSystemTree(defaultSystemSymtab, cat, container, null /* initialIvmHandling */); return writer; } }
/** * @param container must not be null. */ public static IonWriter makeWriter(IonCatalog catalog, IonContainer container) { IonSystem sys = container.getSystem(); SymbolTable defaultSystemSymtab = sys.getSystemSymbolTable(); // TODO the SUPPRESS here is a nasty discontinuity with other places // that create this kind of reader. It prevents the Lite DG system // iterator from returning two IVMs at the start of the data. // The Span tests detect that problem. IonWriterSystemTree system_writer = new IonWriterSystemTree(defaultSystemSymtab, catalog, container, InitialIvmHandling.SUPPRESS); return new IonWriterUser(catalog, sys, system_writer); }
/** * @param container must not be null. */ public static IonWriter makeWriter(IonCatalog catalog, IonContainer container) { IonSystem sys = container.getSystem(); SymbolTable defaultSystemSymtab = sys.getSystemSymbolTable(); // TODO the SUPPRESS here is a nasty discontinuity with other places // that create this kind of reader. It prevents the Lite DG system // iterator from returning two IVMs at the start of the data. // The Span tests detect that problem. IonWriterSystemTree system_writer = new IonWriterSystemTree(defaultSystemSymtab, catalog, container, InitialIvmHandling.SUPPRESS); return new IonWriterUser(catalog, sys, system_writer); }
int sid = _v.getInt(); if (sid == ION_1_0_SID) { _symbols = _system.getSystemSymbolTable(); push_symbol_table(_symbols); _has_next_needed = true; newLocalSymtab(_system, _system.getSystemSymbolTable(), _catalog, this,
/** Assumes that {@link #fillDefaults()} has been called. */ private IonWriter build(PrivateFastAppendable appender) { IonCatalog catalog = getCatalog(); SymbolTable[] imports = getImports(); // TODO We shouldn't need a system here IonSystem system = IonSystemBuilder.standard().withCatalog(catalog).build(); SymbolTable defaultSystemSymtab = system.getSystemSymbolTable(); IonWriterSystemText systemWriter = new IonWriterSystemText(defaultSystemSymtab, this, appender); SymbolTable initialSymtab = initialSymtab(system, defaultSystemSymtab, imports); return new IonWriterUser(catalog, system, systemWriter, initialSymtab); }
_system.getSystemSymbolTable(), _catalog, this, push_symbol_table(_system.getSystemSymbolTable()); _has_next_called = false;
/** Assumes that {@link #fillDefaults()} has been called. */ private IonWriter build(PrivateFastAppendable appender) { IonCatalog catalog = getCatalog(); SymbolTable[] imports = getImports(); // TODO We shouldn't need a system here IonSystem system = IonSystemBuilder.standard().withCatalog(catalog).build(); SymbolTable defaultSystemSymtab = system.getSystemSymbolTable(); IonWriterSystemText systemWriter = new IonWriterSystemText(defaultSystemSymtab, this, appender); SymbolTable initialSymtab = initialSymtab(((PrivateValueFactory)system).getLstFactory(), defaultSystemSymtab, imports); return new IonWriterUser(catalog, system, systemWriter, initialSymtab); }
String name = sym.stringValue(); if (name != null) { sid = _system.getSystemSymbolTable().findSymbol(name); && _next.getTypeAnnotationSymbols().length == 0) { SymbolTable symbols = _system.getSystemSymbolTable(); set_symbol_table(symbols); push_symbol_table(symbols); SymbolTable symtab = newLocalSymtab(_system, _system.getSystemSymbolTable(), _system.getCatalog(), reader, false);