Examples of ExpressionInfo


Examples of org.geomajas.sld.expression.ExpressionInfo

    FilterTypeInfo filter = (FilterTypeInfo) object;
    Assert.assertTrue(filter.ifComparisonOps());
    Assert.assertTrue(filter.getComparisonOps() instanceof PropertyIsEqualToInfo);
    PropertyIsEqualToInfo p = (PropertyIsEqualToInfo) filter.getComparisonOps();
    Assert.assertEquals(2, p.getExpressionList().size());
    ExpressionInfo left = p.getExpressionList().get(0);
    ExpressionInfo right = p.getExpressionList().get(1);
    Assert.assertTrue(left instanceof PropertyNameInfo);
    Assert.assertTrue(right instanceof LiteralTypeInfo);
    PropertyNameInfo prop = (PropertyNameInfo) left;
    LiteralTypeInfo litteral = (LiteralTypeInfo) right;
    Assert.assertEquals("SomeProperty", prop.getValue());
View Full Code Here

Examples of org.geomajas.sld.expression.ExpressionInfo

    if (css != null) {
      for (CssParameterInfo cssParameter : css) {
        if (cssParameter.getValue() != null) {
          result.put(cssParameter.getName(), cssParameter.getValue());
        } else if (cssParameter.getExpressionList().size() > 0) {
          ExpressionInfo expression = cssParameter.getExpressionList().get(0);
          if (expression instanceof LiteralTypeInfo) {
            result.put(cssParameter.getName(), expression.getValue());
          }
        }
      }
    }
    return result;
View Full Code Here

Examples of org.geomajas.sld.expression.ExpressionInfo

  private String getParameterValue(ParameterValueTypeInfo parameter) {
    if (parameter.getValue() != null) {
      return parameter.getValue();
    } else if (parameter.getExpressionList().size() > 0) {
      ExpressionInfo expression = parameter.getExpressionList().get(0);
      if (expression instanceof LiteralTypeInfo) {
        return expression.getValue();
      }
    }
    return null;
  }
View Full Code Here

Examples of org.spockframework.runtime.model.ExpressionInfo

 
  private String renderAsFailedEqualityComparison(ExpressionInfo expr) {
    if (!(Boolean.FALSE.equals(expr.getValue()))) return null;
    if (!expr.isEqualityComparison()) return null;

    ExpressionInfo expr1 = expr.getChildren().get(0);
    ExpressionInfo expr2 = expr.getChildren().get(1);
    if (expr1.getEffectiveRenderedValue().equals(expr2.getEffectiveRenderedValue())) {
      addTypeHint(expr1);
      addTypeHint(expr2);
    }

    return "false";
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.