Examples of ExpressionState


Examples of org.springframework.expression.spel.ExpressionState

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

Examples of org.springframework.expression.spel.ExpressionState

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

Examples of org.springframework.expression.spel.ExpressionState


  // implementing Expression
 
  public Object getValue() throws EvaluationException {
    ExpressionState expressionState = new ExpressionState(getEvaluationContext(), configuration);
    return ast.getValue(expressionState);
  }
View Full Code Here

Examples of org.springframework.expression.spel.ExpressionState

    ExpressionState expressionState = new ExpressionState(getEvaluationContext(), configuration);
    return ast.getValue(expressionState);
  }

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

Examples of org.springframework.expression.spel.ExpressionState

    ExpressionState expressionState = new ExpressionState(getEvaluationContext(), toTypedValue(rootObject), configuration);
    return ast.getValue(expressionState);
  }

  public <T> T getValue(Class<T> expectedResultType) throws EvaluationException {
    ExpressionState expressionState = new ExpressionState(getEvaluationContext(), configuration);
    TypedValue typedResultValue = ast.getTypedValue(expressionState);
    return ExpressionUtils.convertTypedValue(expressionState.getEvaluationContext(), typedResultValue, expectedResultType);
  }
View Full Code Here

Examples of org.springframework.expression.spel.ExpressionState

    TypedValue typedResultValue = ast.getTypedValue(expressionState);
    return ExpressionUtils.convertTypedValue(expressionState.getEvaluationContext(), typedResultValue, expectedResultType);
  }

  public <T> T getValue(Object rootObject, Class<T> expectedResultType) throws EvaluationException {
    ExpressionState expressionState = new ExpressionState(getEvaluationContext(), toTypedValue(rootObject), configuration);
    TypedValue typedResultValue = ast.getTypedValue(expressionState);
    return ExpressionUtils.convertTypedValue(expressionState.getEvaluationContext(), typedResultValue, expectedResultType);
  }
View Full Code Here

Examples of org.springframework.expression.spel.ExpressionState

    return ExpressionUtils.convertTypedValue(expressionState.getEvaluationContext(), typedResultValue, expectedResultType);
  }

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

Examples of org.springframework.expression.spel.ExpressionState

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

Examples of org.springframework.expression.spel.ExpressionState

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

  public <T> T getValue(EvaluationContext context, Class<T> expectedResultType) throws EvaluationException {
    TypedValue typedResultValue = ast.getTypedValue(new ExpressionState(context, configuration));
    return ExpressionUtils.convertTypedValue(context, typedResultValue, expectedResultType);
  }
View Full Code Here

Examples of org.springframework.expression.spel.ExpressionState

    TypedValue typedResultValue = ast.getTypedValue(new ExpressionState(context, configuration));
    return ExpressionUtils.convertTypedValue(context, typedResultValue, expectedResultType);
  }
 
  public <T> T getValue(EvaluationContext context, Object rootObject, Class<T> expectedResultType) throws EvaluationException {
    TypedValue typedResultValue = ast.getTypedValue(new ExpressionState(context, toTypedValue(rootObject), configuration));
    return ExpressionUtils.convertTypedValue(context, typedResultValue, expectedResultType);
  }
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.