Class Filter


  • public class Filter
    extends java.lang.Object
    Parses the filter expression associated with a Cas Processor in the cpe descriptor.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.util.LinkedList expressionList
      The expression list.
      protected boolean filterInitialized
      The filter initialized.
      protected boolean isAndFilter
      The is and filter.
      protected boolean isOrFilter
      The is or filter.
      (package private) java.util.Stack stack
      The stack.
    • Constructor Summary

      Constructors 
      Constructor Description
      Filter()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void evaluate​(java.lang.String anOp)
      Builds filter expression from values from the stack.
      static void main​(java.lang.String[] args)
      The main method.
      java.util.LinkedList parse​(java.lang.String expression)
      Parses filter expression.
      private void parseTokens​(java.util.StringTokenizer aTokenizer)
      Parses tokens.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • stack

        java.util.Stack stack
        The stack.
      • expressionList

        java.util.LinkedList expressionList
        The expression list.
      • isAndFilter

        protected boolean isAndFilter
        The is and filter.
      • isOrFilter

        protected boolean isOrFilter
        The is or filter.
      • filterInitialized

        protected boolean filterInitialized
        The filter initialized.
    • Constructor Detail

      • Filter

        public Filter()
    • Method Detail

      • parse

        public java.util.LinkedList parse​(java.lang.String expression)
                                   throws java.text.ParseException
        Parses filter expression.
        Parameters:
        expression - - filter expression to parse
        Returns:
        - list of filters
        Throws:
        java.text.ParseException - -
      • parseTokens

        private void parseTokens​(java.util.StringTokenizer aTokenizer)
                          throws java.text.ParseException
        Parses tokens.
        Parameters:
        aTokenizer - - tokenized filter expression
        Throws:
        java.text.ParseException - -
      • evaluate

        private void evaluate​(java.lang.String anOp)
                       throws java.text.ParseException
        Builds filter expression from values from the stack.
        Parameters:
        anOp - the an op
        Throws:
        java.text.ParseException - -
      • main

        public static void main​(java.lang.String[] args)
        The main method.
        Parameters:
        args - the arguments