Class TriggerSpecificationParser


  • public class TriggerSpecificationParser
    extends Object
    A reusable wrapper around the ANTLR generated parser for a TriggerSpecification. This class enables the reuse of the antlr parser/lexer pair without having to recreate them every time.
    Author:
    Apache Directory Project
    • Constructor Detail

      • TriggerSpecificationParser

        public TriggerSpecificationParser()
        Creates a TriggerSpecification parser.
      • TriggerSpecificationParser

        public TriggerSpecificationParser​(NormalizerMappingResolver<Normalizer> resolver)
        Creates a normalizing TriggerSpecification parser.
        Parameters:
        resolver - the resolver
    • Method Detail

      • parse

        public TriggerSpecification parse​(String spec)
                                   throws ParseException
        Parses an TriggerSpecification without exhausting the parser.
        Parameters:
        spec - the specification to be parsed
        Returns:
        the specification bean
        Throws:
        ParseException - if there are any recognition errors (bad syntax)
      • isNormizing

        public boolean isNormizing()
        Tests to see if this parser is normalizing.
        Returns:
        true if it normalizes false otherwise