Examples of RutaTypeMatcher


Examples of org.apache.uima.ruta.rule.RutaTypeMatcher

  public RutaRuleElement createRuleElement(IRutaExpression expression,
          RuleElementQuantifier quantifier, List<AbstractRutaCondition> conditions,
          List<AbstractRutaAction> actions, RuleElementContainer container, RutaBlock parent) {
    RutaMatcher matcher = null;
    if (expression instanceof MatchReference) {
      matcher = new RutaTypeMatcher((MatchReference) expression);
    } else if (expression instanceof TypeExpression) {
      // e.g., for functions
      MatchReference matchReference = new MatchReference((TypeExpression) expression);
      matcher = new RutaTypeMatcher(matchReference);
    } else if (expression instanceof IStringExpression) {
      matcher = new RutaLiteralMatcher((IStringExpression) expression);
    }
    return new RutaRuleElement(matcher, quantifier, conditions, actions, container, parent);
  }
View Full Code Here

Examples of org.apache.uima.ruta.rule.RutaTypeMatcher

  public RutaRuleElement createRuleElement(TypeExpression typeExpression,
          RuleElementQuantifier quantifier, List<AbstractRutaCondition> conditions,
          List<AbstractRutaAction> actions, RuleElementContainer container,
          RutaBlock parent) {
    RutaTypeMatcher matcher = new RutaTypeMatcher(typeExpression);
    return new RutaRuleElement(matcher, quantifier, conditions, actions, container, parent);
  }
View Full Code Here

Examples of org.apache.uima.ruta.rule.RutaTypeMatcher

  public RutaRuleElement createRuleElement(RutaExpression expression,
          RuleElementQuantifier quantifier, List<AbstractRutaCondition> conditions,
          List<AbstractRutaAction> actions, RuleElementContainer container, RutaBlock parent) {
    RutaMatcher matcher = null;
    if (expression instanceof MatchReference) {
      matcher = new RutaTypeMatcher((MatchReference) expression);
    } else if (expression instanceof TypeExpression) {
      // e.g., for functions
      MatchReference matchReference = new MatchReference((TypeExpression) expression);
      matcher = new RutaTypeMatcher(matchReference);
    } else if (expression instanceof StringExpression) {
      matcher = new RutaLiteralMatcher((StringExpression) expression);
    }
    return new RutaRuleElement(matcher, quantifier, conditions, actions, container, parent);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.