• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

aspectran / aspectran / #4773

13 Nov 2025 03:39PM UTC coverage: 43.054% (+0.2%) from 42.879%
#4773

push

github

topframe
feat: Introduce AponParser for efficient dynamic APON parsing

This commit introduces a new `AponParser` class designed for efficient and intuitive parsing of APON documents, particularly for dynamic data structures and multi-dimensional arrays.

- **Structure-based Parsing:** Implements a recursive, structure-based parsing mechanism that directly builds nested `List` objects for arrays, offering improved performance and clarity over `AponReader` for these scenarios.
- **Comprehensive Scalar Handling:** Supports parsing of various scalar types including strings (quoted/unquoted, escaped), numbers (int, long, double), booleans, and nulls.
- **Text Block Support:** Adds functionality to correctly parse multi-line text blocks defined within `()`.
- **Empty Structure Handling:** Properly parses empty object blocks `{}` and empty arrays `[]`.
- **Robust Error Handling:** Includes detailed error reporting for unclosed structures, invalid line formats, and malformed escape sequences.
- **Dedicated Test Suite:** Accompanied by `AponParserTest.java` with comprehensive test cases verifying all new functionalities.

95 of 142 new or added lines in 1 file covered. (66.9%)

173 existing lines in 3 files now uncovered.

16361 of 38001 relevant lines covered (43.05%)

0.43 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/utils/src/main/java/com/aspectran/utils/apon/ValueTypeMismatchException.java


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc