Examples of FunctionValue


Examples of com.google.gwt.resources.css.ast.CssProperty.FunctionValue

            expression =
                String.format(VALUE_WITH_SUFFIX, dotPathValue.getPath(), dotPathValue.getSuffix());
          }
        }
      } else if (value.isFunctionValue() != null) {
        FunctionValue functionValue = value.isFunctionValue();

        // process the argument list values
        String arguments = printValuesList(functionValue.getValues().getValues(), insideUrlNode);

        expression = unescape(functionValue.getName()) + "(" + arguments + ")";
      }

      // don't escape content of quoted string and don't escape isFunctionValue because the
      // arguments and the name of the functions are already unescaped if needed.
      if (value.isStringValue() != null || value.isFunctionValue() != null) {
View Full Code Here

Examples of com.google.gwt.resources.css.ast.CssProperty.FunctionValue

    for (Value value : cssPropertyValues) {
      if (value.isListValue() != null) {
        newValues.add(visitListValue(value.isListValue(), cssPropertyName, selector));

      } else if (value.isFunctionValue() != null) {
        FunctionValue functionValue = value.isFunctionValue();
        ListValue listValue = visitListValue(functionValue.getValues(), cssPropertyName,
            selector);

        newValues.add(new FunctionValue(functionValue.getName(), listValue));

      } else if (value.isIdentValue() != null) {
        newValues.add(visitIdentValue(value.isIdentValue(), cssPropertyName, selector));

      } else {
View Full Code Here

Examples of com.google.gwt.resources.css.ast.CssProperty.FunctionValue

          return new IdentValue(s);

        } else {
          List<Value> parameters = new ArrayList<Value>();
          extractValueOf(parameters, value.getParameters());
          return new FunctionValue(value.getFunctionName(),
              new ListValue(parameters));
        }
      }
      case LexicalUnit.SAC_INHERIT:
        return new IdentValue("inherit");
View Full Code Here

Examples of com.google.gwt.resources.css.ast.CssProperty.FunctionValue

  private ListValue substituteDefs(ListValue listValue) {
    List<Value> result = new ArrayList<Value>(listValue.getValues().size());
    for (Value val : listValue.getValues()) {
      if (val.isFunctionValue() != null) {
        // Recursively perform substitution on a function's values
        FunctionValue fnVal = val.isFunctionValue();
        ListValue newVals = substituteDefs(fnVal.getValues());
        result.add(new FunctionValue(fnVal.getName(), newVals));
        continue;
      }

      IdentValue maybeIdent = val.isIdentValue();
      if (maybeIdent == null) {
View Full Code Here

Examples of com.google.gwt.resources.css.ast.CssProperty.FunctionValue

    for (int i = 0; i < 5; i++) {
      arguments.add(new IdentValue("ARGUMENT" + i));
    }

    ListValue listValue = new ListValue(arguments);
    FunctionValue function = new FunctionValue("fct", listValue);

    when(property.getValues()).thenReturn(new ListValue(Lists.<Value>newArrayList(function)));

    when(cssRule.getProperties()).thenReturn(Lists.newArrayList(property));
View Full Code Here

Examples of org.maltparserx.core.feature.value.FunctionValue

  }

  public void update() throws MaltChainedException {
    multipleFeatureValue.reset();
    parentFeature.update();
    FunctionValue value = parentFeature.getFeatureValue();
    if (value instanceof SingleFeatureValue) {
      String symbol = ((SingleFeatureValue)value).getSymbol();
      if (((FeatureValue)value).isNullValue()) {
        multipleFeatureValue.addFeatureValue(parentFeature.getSymbolTable().getSymbolStringToCode(symbol), symbol);
        multipleFeatureValue.setNullValue(true);
View Full Code Here

Examples of org.maltparserx.core.feature.value.FunctionValue

    return table.getSymbolCodeToString(code);
  }

  public void update() throws MaltChainedException {
    parentFeature.update();
    FunctionValue value = parentFeature.getFeatureValue();
    if (value instanceof SingleFeatureValue) {
      String symbol = ((SingleFeatureValue)value).getSymbol();
      if (((FeatureValue)value).isNullValue()) {
        multipleFeatureValue.addFeatureValue(parentFeature.getSymbolTable().getSymbolStringToCode(symbol), symbol);
        multipleFeatureValue.setNullValue(true);
View Full Code Here

Examples of org.xhtmlrenderer.css.style.derived.FunctionValue

        FSDerivedValue value = valueByName(CSSName.POSITION);
        return value instanceof FunctionValue;
    }
   
    public String getRunningName() {
        FunctionValue value = (FunctionValue)valueByName(CSSName.POSITION);
        FSFunction function = value.getFunction();
       
        PropertyValue param = (PropertyValue)function.getParameters().get(0);
       
        return param.getStringValue();
    }
View Full Code Here

Examples of org.xhtmlrenderer.css.style.derived.FunctionValue

        FSDerivedValue value = valueByName(CSSName.POSITION);
        return value instanceof FunctionValue;
    }

    public String getRunningName() {
        FunctionValue value = (FunctionValue)valueByName(CSSName.POSITION);
        FSFunction function = value.getFunction();

        PropertyValue param = (PropertyValue)function.getParameters().get(0);

        return param.getStringValue();
    }
View Full Code Here

Examples of org.zkoss.zuss.metainfo.FunctionValue

          ctx.block.owner, name,
          new ArgumentDefinition[0], lineno));
        return;
      } else if (symbol == ';') { //use of function/mixin
        Expression expr = new Expression(ctx.block.owner, lineno);
        new FunctionValue(expr, name, lineno); //no parenthesis
        return;
      }
    } else if (t0 instanceof Op && ((Op)t0).getValue() == LPAREN) {
      //1) definition of function or mixin
      //2) use of function or mixin
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.