AST Tree Nodes Reference¶
This section provides comprehensive documentation for all Abstract Syntax Tree (AST) nodes in General SQL Parser. The AST represents the hierarchical structure of parsed SQL statements, where each node corresponds to a specific SQL element.
Quick Navigation¶
Core Node Categories¶
📋 SQL Statements¶
Top-level SQL operations and commands
- SELECT Statement - Query operations
- INSERT Statement - Data insertion
- UPDATE Statement - Data modification
- DELETE Statement - Data removal
- DDL Statements - Schema operations
🔧 SQL Clauses¶
Components that appear within SQL statements - WHERE Clause - Filtering conditions - FROM Clause - Data sources - JOIN Clause - Table relationships - GROUP BY Clause - Data grouping - ORDER BY Clause - Result sorting
🧮 Expressions¶
Mathematical, logical, and comparison operations - Basic Expressions - TExpression overview - Function Calls - SQL functions - Arithmetic Operations - Math operations - Logical Operations - AND, OR, NOT - CASE Expressions - Conditional logic
🗂️ Table References¶
How tables and data sources are represented - Table Nodes - Basic table references - JOIN Nodes - Table joins - Derived Tables - Subqueries as tables
📊 Columns and Lists¶
Column selections and list structures
- Result Columns - SELECT column lists
- Column References - Column identifiers
- Value Lists - INSERT values
📝 Literals and Constants¶
Constant values and data types
- String Literals - Text values
- Numeric Literals - Numbers
- Date Literals - Dates and times
🚀 Advanced Nodes¶
Complex SQL features and database-specific nodes - Window Functions - OVER clauses - Common Table Expressions - WITH clauses - Database-Specific Features - Vendor extensions
Getting Started¶
For SQL Analysts¶
- Start with SELECT Statement to understand query structure
- Learn about WHERE Clause for filtering
- Explore Expressions for condition analysis
For Java Developers¶
- Review Basic Expressions for core concepts
- Check API Documentation for method signatures
- See Javadoc API for complete technical reference
For Data Engineers¶
- Focus on Table References for lineage analysis
- Study JOIN Nodes for relationship mapping
- Use Advanced Nodes for complex transformations
Common Usage Patterns¶
Traversing AST Trees¶
1 2 3 4 5 6 7 8 9 |
|
Finding Specific Node Types¶
1 2 3 4 5 6 7 8 |
|
Node Hierarchy Overview¶
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
See Also¶
- API Documentation - Method-level reference
- Javadoc - Complete Java API
- Basic Parsing Tutorial - Getting started guide
- How-to Guides - Practical examples