Examples of VariableExpression


Examples of org.thymeleaf.standard.expression.VariableExpression

        final String attributeValue = element.getAttributeValue(attributeName);

        final Configuration configuration = arguments.getConfiguration();
        final IStandardExpressionParser expressionParser = StandardExpressions.getExpressionParser(configuration);

        final VariableExpression varExpression =
            (VariableExpression) expressionParser.parseExpression(arguments.getConfiguration(), arguments, attributeValue);

        additionalLocalVariables.put(SpringContextVariableNames.SPRING_BOUND_OBJECT_EXPRESSION, varExpression);
        // Added also with the deprecated name, for backwards compatibility
        additionalLocalVariables.put(SpringContextVariableNames.SPRING_FORM_COMMAND_VALUE, varExpression);
View Full Code Here

Examples of org.thymeleaf.standard.expression.VariableExpression

         * Only asterisk syntax (selection variable expressions) are allowed here.
         */
       
        if (useSelectionAsRoot) {

            VariableExpression boundObjectValue =
                    (VariableExpression) processingContext.getLocalVariable(SpringContextVariableNames.SPRING_BOUND_OBJECT_EXPRESSION);
            if (boundObjectValue == null) {
                // Try the deprecated name, to avoid legacy issues
                boundObjectValue =
                        (VariableExpression) processingContext.getLocalVariable(SpringContextVariableNames.SPRING_FORM_COMMAND_VALUE);
            }

            final String boundObjectExpression =
                    (boundObjectValue == null? null : boundObjectValue.getExpression());

            if (GLOBAL_EXPRESSION.equals(expression)) {
                // Should return null if no object previously bound: nothing to apply 'global' on!
                if (boundObjectExpression == null) {
                    return null;
View Full Code Here

Examples of org.thymeleaf.standard.expression.VariableExpression

        final String attributeValue = element.getAttributeValue(attributeName);

        final Configuration configuration = arguments.getConfiguration();
        final IStandardExpressionParser expressionParser = StandardExpressions.getExpressionParser(configuration);

        final VariableExpression varExpression =
            (VariableExpression) expressionParser.parseExpression(arguments.getConfiguration(), arguments, attributeValue);

        additionalLocalVariables.put(SpringContextVariableNames.SPRING_BOUND_OBJECT_EXPRESSION, varExpression);
        // Added also with the deprecated name, for backwards compatibility
        additionalLocalVariables.put(SpringContextVariableNames.SPRING_FORM_COMMAND_VALUE, varExpression);
View Full Code Here

Examples of ru.snake.spritepacker.writer.expression.VariableExpression

    Expression node = null;

    if (current.type == TokeType.NUMBER) {
      node = new ConstantExpression(current.value);
    } else if (current.type == TokeType.VARIABLE) {
      node = new VariableExpression(current.value);
    } else {
      throw ParserException.create("parseExpressionValue", current);
    }

    nextToken();
View Full Code Here

Examples of tosa.loader.parser.tree.VariableExpression

    assertNotNull(select.firstToken().toString());
    String sql = select.toSQL();
    System.out.println(sql);
    assertNotNull(sql);
    List<VariableExpression> vars = select.findDescendents(VariableExpression.class);
    VariableExpression var = vars.get(0);
    assertNotNull(var);
    assertEquals(":val", var.getName());
    assertEquals("?", var.toString());
  }
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.