Class MatchFactory


  • public class MatchFactory
    extends java.lang.Object
    A factory to create the match expressions implemented in this package.
    Author:
    Holger Eichelberger
    • Constructor Detail

      • MatchFactory

        private MatchFactory()
        Prevents external creation.
    • Method Detail

      • create

        public AbstractRuleMatchExpression create​(Expression expr)
                                           throws VilException
        Creates a rule match expression from expr.
        Parameters:
        expr - the expression to be turned into a rule match expression
        Returns:
        the resulting rule match expression (null if no creation is possible)
        Throws:
        VilException - in case of type problems