reader.stepOut(); state = State.BEFORE_VALUE; continue;
/** * Collects the necessary imports from the reader and catalog, and load * them into the passed-in {@code importsList}. */ private static void prepImportsList(List<SymbolTable> importsList, IonReader reader, IonCatalog catalog) { assert IMPORTS.equals(reader.getFieldName()); reader.stepIn(); IonType t; while ((t = reader.next()) != null) { if (!reader.isNullValue() && t == IonType.STRUCT) { SymbolTable importedTable = readOneImport(reader, catalog); if (importedTable != null) { importsList.add(importedTable); } } } reader.stepOut(); }
private void writeContainerRecursively(IonType type, IonReader reader) throws IOException { stepIn(type); reader.stepIn(); while ((type = reader.next()) != null) { writeValueRecursively(type, reader); } reader.stepOut(); stepOut(); }
/** * @return true iff any child contains a symbol * (including field names and annotations) */ private boolean load_children(IonContainerLite container, IonReader reader) { boolean symbol_is_present = false; reader.stepIn(); for (;;) { IonType t = reader.next(); if (t == null) { break; } IonValueLite child = load_value_helper(reader, /*isTopLevel*/ false); container.add(child); if (child._isSymbolPresent()) { symbol_is_present = true; } } reader.stepOut(); return symbol_is_present; }
reader.stepOut();
reader.stepOut(); state = State.BEFORE_VALUE; continue;
ionRep.stepOut();
reader.stepOut(); break; default:
/** * Collects the necessary imports from the reader and catalog, and load * them into the passed-in {@code importsList}. */ private static void prepImportsList(List<SymbolTable> importsList, IonReader reader, IonCatalog catalog) { assert IMPORTS.equals(reader.getFieldName()); reader.stepIn(); IonType t; while ((t = reader.next()) != null) { if (!reader.isNullValue() && t == IonType.STRUCT) { SymbolTable importedTable = readOneImport(reader, catalog); if (importedTable != null) { importsList.add(importedTable); } } } reader.stepOut(); }
/** * Collects the necessary imports from the reader and catalog, and load * them into the passed-in {@code importsList}. */ private static void prepImportsList(List<SymbolTable> importsList, IonReader reader, IonCatalog catalog) { assert IMPORTS.equals(reader.getFieldName()); reader.stepIn(); IonType t; while ((t = reader.next()) != null) { if (!reader.isNullValue() && t == IonType.STRUCT) { SymbolTable importedTable = readOneImport(reader, catalog); if (importedTable != null) { importsList.add(importedTable); } } } reader.stepOut(); }
private void writeContainerRecursively(IonType type, IonReader reader) throws IOException { stepIn(type); reader.stepIn(); while ((type = reader.next()) != null) { writeValueRecursively(type, reader); } reader.stepOut(); stepOut(); }
private void writeContainerRecursively(IonType type, IonReader reader) throws IOException { stepIn(type); reader.stepIn(); while ((type = reader.next()) != null) { writeValueRecursively(type, reader); } reader.stepOut(); stepOut(); }
/** * @return true iff any child contains a symbol * (including field names and annotations) */ private boolean load_children(IonContainerLite container, IonReader reader) { boolean symbol_is_present = false; reader.stepIn(); for (;;) { IonType t = reader.next(); if (t == null) { break; } IonValueLite child = load_value_helper(reader, /*isTopLevel*/ false); container.add(child); if (child._isSymbolPresent()) { symbol_is_present = true; } } reader.stepOut(); return symbol_is_present; }
/** * @return true iff any child contains a symbol * (including field names and annotations) */ private boolean load_children(IonContainerLite container, IonReader reader) { boolean symbol_is_present = false; reader.stepIn(); for (;;) { IonType t = reader.next(); if (t == null) { break; } IonValueLite child = load_value_helper(reader, /*isTopLevel*/ false); container.add(child); if (child._isSymbolPresent()) { symbol_is_present = true; } } reader.stepOut(); return symbol_is_present; }
reader.stepIn(); int stepOutTimes = matchRecursive(reader); reader.stepOut(); tracker.pop();
reader.stepOut();