Examples of MatchReference


Examples of org.apache.uima.ruta.expression.MatchReference

            conditions.size());
    // boolean base = matcher.match(annotation, stream, getParent());
    boolean base = true;
    if (matcher instanceof RutaTypeMatcher) {
      RutaTypeMatcher rtm = (RutaTypeMatcher) matcher;
      MatchReference mr = (MatchReference) rtm.getExpression();
      FeatureExpression featureExpression = mr.getFeatureExpression(parent, stream);
      if (featureExpression != null) {
        base = matcher.match(annotation, stream, getParent());
      }
    }
    List<AnnotationFS> textsMatched = new ArrayList<AnnotationFS>(1);
View Full Code Here

Examples of org.apache.uima.ruta.expression.MatchReference

      defaultNamespace = pack + "." + module;
    }
    RutaScriptBlock result = createScriptBlock(module, null, null, null, defaultNamespace);
    List<RuleElement> ruleElements = new ArrayList<RuleElement>();
    RuleElementIsolator container = new RuleElementIsolator();
    ruleElements.add(createRuleElement(new MatchReference("uima.tcas.DocumentAnnotation", null,
            null), null, null, null, container, result));
    RutaRule createRule = createRule(ruleElements, result);
    container.setContainer(createRule);

    result.setRule(createRule);
View Full Code Here

Examples of org.apache.uima.ruta.expression.MatchReference

    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.expression.MatchReference

            conditions.size());
    // boolean base = matcher.match(annotation, stream, getParent());
    boolean base = true;
    if (matcher instanceof RutaTypeMatcher) {
      RutaTypeMatcher rtm = (RutaTypeMatcher) matcher;
      MatchReference mr = (MatchReference) rtm.getExpression();
      FeatureExpression featureExpression = mr.getFeatureExpression(parent, stream);
      if (featureExpression != null) {
        base = matcher.match(annotation, stream, getParent());
      }
    }
    List<AnnotationFS> textsMatched = new ArrayList<AnnotationFS>(1);
View Full Code Here

Examples of org.apache.uima.ruta.expression.MatchReference

      defaultNamespace = pack + "." + module;
    }
    RutaScriptBlock result = createScriptBlock(module, null, null, null, defaultNamespace);
    List<RuleElement> ruleElements = new ArrayList<RuleElement>();
    RuleElementIsolator container = new RuleElementIsolator();
    ruleElements.add(createRuleElement(new MatchReference("uima.tcas.DocumentAnnotation", null,
            null), null, null, null, container, result));
    RutaRule createRule = createRule(ruleElements, result);
    container.setContainer(createRule);

    result.setRule(createRule);
View Full Code Here

Examples of org.apache.uima.ruta.expression.MatchReference

    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.