Class Interpreter


  • class Interpreter
    extends Object
    The Interpreter class is used for interpreting selector queries.
    • Constructor Detail

      • Interpreter

        Interpreter()
    • Method Detail

      • interpret

        static Object interpret​(String name,
                                Message message,
                                String syntaxType)
        Calls the appropriate method for interpreting a field name according to the syntax type.

        Method called by the org.objectweb.joram.shared.selectors.Filter class.

        Parameters:
        name - Name of a field to retrieve.
        message - Message in which retrieving the field.
        syntaxType - Type of the syntax; ex: "JMS".
      • wrapToString

        public static String wrapToString​(Object value)
        Gets the String value of the given object.
      • jmsInterpret

        private static Object jmsInterpret​(String name,
                                           Message message)
        Retrieves the value of a field following the JMS syntax rules.
        Parameters:
        name - Name of a field to retrieve.
        message - Message in which retrieving the field.