Class JDOQLParameterDeclarationParser

  • All Implemented Interfaces:
    QueryParser

    public class JDOQLParameterDeclarationParser
    extends Object
    implements QueryParser
    Helper class to support parsing of JDOQL parameter declarations. Created on October 16, 2002
    Author:
    Michael Bouschen
    • Field Detail

      • messages

        protected static final ResourceBundle messages
        I18N support
    • Constructor Detail

      • JDOQLParameterDeclarationParser

        public JDOQLParameterDeclarationParser()
    • Method Detail

      • parameterTypeIterator

        public Iterator parameterTypeIterator​(String text)
        Returns an iterator over the parameter types of the specified JDOQL parameter declartion. The types are represented by their name, thus the Iterator's next method returns Strings.
        Specified by:
        parameterTypeIterator in interface QueryParser
        Parameters:
        text - the JDOQL parameter declaration
        Returns:
        an iterator over parameter types
        Throws:
        JDOQueryException - indicates a parse error
      • main

        public static void main​(String[] args)
        Method main for testing purposes. Parameter args is expected to a an array of parameter declaration String. One parameter declaration may declare multiple parameters according to the JDOQL parameter declaration syntax. Calling java com...jqlc.ParameterDeclarationHelper "int a, String b" will print
        Parameter types for >int a, String b<
        int
        String