Class DefaultNaftahDateParserVisitor

java.lang.Object
org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
org.daiitech.naftah.parser.NaftahDateParserBaseVisitor<Object>
org.daiitech.naftah.parser.time.DefaultNaftahDateParserVisitor
All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeVisitor<Object>, NaftahDateParserVisitor<Object>

public class DefaultNaftahDateParserVisitor extends NaftahDateParserBaseVisitor<Object>
A default visitor implementation for parsing Arabic date and time expressions.

This class extends NaftahDateParserBaseVisitor and provides implementations for converting parse tree nodes into corresponding NaftahTemporal objects, such as NaftahDate, NaftahTime, and NaftahDateTime.

It handles:

  • Date and calendar specifiers
  • Time with optional AM/PM markers
  • Time zones or offsets
  • Integration of date and time into a single temporal object

Author:
Chakib Daii