java.lang.Object
org.apache.uima.collection.impl.cpm.utils.Filter

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

    • stack

      Stack stack
      The stack.
    • expressionList

      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 Details

    • Filter

      public Filter()
  • Method Details

    • parse

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

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

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

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