Class StringMatchExpression


  • public class StringMatchExpression
    extends AbstractPathRuleMatchExpression
    Denotes the special expression regarding a path match.
    Author:
    Holger Eichelberger
    • Field Detail

      • text

        private java.lang.String text
      • resolved

        private transient Path resolved
    • Constructor Detail

      • StringMatchExpression

        public StringMatchExpression​(java.lang.String text)
        Creates a path match expression.
        Parameters:
        text - the text representing the expression
    • Method Detail

      • getText

        public java.lang.String getText()
        Returns the text used for creating the expression.
        Returns:
        the text
      • resolve

        void resolve​(Path resolved)
        Sets the resolved value of the match expression, in particular in case of mixed expressions.
        Parameters:
        resolved - the resolved path
      • evaluate

        public Collection<?> evaluate​(IExpressionVisitor evaluator)
                               throws VilException
        Description copied from class: AbstractRuleMatchExpression
        Evaluates this expression. Some subtypes may define some kind of value resolution, e.g., for match expressions. This must be called before!
        Specified by:
        evaluate in class AbstractRuleMatchExpression
        Parameters:
        evaluator - the expression evaluator (in case that an actual expression must be evaluated as part of this evaluation).
        Returns:
        the evaluation result
        Throws:
        VilException - in case that evaluation fails