Package org.springframework.expression.spel

Examples of org.springframework.expression.spel.ExpressionState


    Assert.notNull(context, "The EvaluationContext is required");   
    return ast.isWritable(new ExpressionState(context, configuration));
  }

  public boolean isWritable(Object rootObject) throws EvaluationException {
    return ast.isWritable(new ExpressionState(getEvaluationContext(), toTypedValue(rootObject), configuration));
  }
View Full Code Here


    return ast.isWritable(new ExpressionState(getEvaluationContext(), toTypedValue(rootObject), configuration));
  }
 
  public boolean isWritable(EvaluationContext context, Object rootObject) throws EvaluationException {
    Assert.notNull(context, "The EvaluationContext is required");   
    return ast.isWritable(new ExpressionState(context, toTypedValue(rootObject), configuration));
  }
View Full Code Here

    return ast.isWritable(new ExpressionState(context, toTypedValue(rootObject), configuration));
  }

  public void setValue(EvaluationContext context, Object value) throws EvaluationException {
    Assert.notNull(context, "The EvaluationContext is required");   
    ast.setValue(new ExpressionState(context, configuration), value);
  }
View Full Code Here

    Assert.notNull(context, "The EvaluationContext is required");   
    ast.setValue(new ExpressionState(context, configuration), value);
  }

  public void setValue(Object rootObject, Object value) throws EvaluationException {
    ast.setValue(new ExpressionState(getEvaluationContext(), toTypedValue(rootObject), configuration), value);
  }
View Full Code Here

    ast.setValue(new ExpressionState(getEvaluationContext(), toTypedValue(rootObject), configuration), value);
  }
 
  public void setValue(EvaluationContext context, Object rootObject, Object value) throws EvaluationException {
    Assert.notNull(context, "The EvaluationContext is required");   
    ast.setValue(new ExpressionState(context, toTypedValue(rootObject), configuration), value);
  }
View Full Code Here

    if (expressionState != null) {
      return getValueInternal(expressionState).getValue();
    }
    else {
      // configuration not set - does that matter?
      return getValue(new ExpressionState(new StandardEvaluationContext()));
    }
  }
View Full Code Here

    if (expressionState != null) {
      return getValueInternal(expressionState);
    }
    else {
      // configuration not set - does that matter?
      return getTypedValue(new ExpressionState(new StandardEvaluationContext()));
    }
  }
View Full Code Here

          // Running in SpelCompilerMode.immediate mode - propagate exception to caller
          throw new SpelEvaluationException(ex, SpelMessage.EXCEPTION_RUNNING_COMPILED_EXPRESSION);
        }
      }
    }
    ExpressionState expressionState = new ExpressionState(getEvaluationContext(), this.configuration);
    result = this.ast.getValue(expressionState);
    checkCompile(expressionState);
    return result;
  }
View Full Code Here

          // Running in SpelCompilerMode.immediate mode - propagate exception to caller
          throw new SpelEvaluationException(ex, SpelMessage.EXCEPTION_RUNNING_COMPILED_EXPRESSION);
        }
      }
    }
    ExpressionState expressionState = new ExpressionState(getEvaluationContext(), toTypedValue(rootObject), this.configuration);
    result = this.ast.getValue(expressionState);
    checkCompile(expressionState);
    return result;
  }
View Full Code Here

          // Running in SpelCompilerMode.immediate mode - propagate exception to caller
          throw new SpelEvaluationException(ex, SpelMessage.EXCEPTION_RUNNING_COMPILED_EXPRESSION);
        }
      }
    }
    ExpressionState expressionState = new ExpressionState(getEvaluationContext(), this.configuration);
    TypedValue typedResultValue = this.ast.getTypedValue(expressionState);
    checkCompile(expressionState);
    return ExpressionUtils.convertTypedValue(expressionState.getEvaluationContext(), typedResultValue, expectedResultType);
  }
View Full Code Here

TOP

Related Classes of org.springframework.expression.spel.ExpressionState

Copyright © 2018 www.massapicom. 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.