Package com.opengamma.financial.expression

Examples of com.opengamma.financial.expression.UserExpression


    }
  }

  @Override
  public OverrideOperation compile(final String operation, final ComputationTargetResolver.AtVersionCorrection resolver) {
    final UserExpression expr = getParser().parse(operation);
    return new Evaluator(expr, resolver);
  }
View Full Code Here


  private static final Logger s_logger = LoggerFactory.getLogger(ExpressionParserTest.class);

  private static void parse(final String str, final String expected) {
    s_logger.debug("Parsing {}", str);
    final UserExpression expr = new ExpressionParser().parse(str);
    assertNotNull(expr);
    assertEquals(expr.toString(), expected);
  }
View Full Code Here

    assertEquals(expr.toString(), expected);
  }

  @Test(expectedExceptions = {IllegalArgumentException.class })
  public void testEmptyString() {
    final UserExpression expr = new ExpressionParser().parse("");
  }
View Full Code Here

    final UserExpression expr = new ExpressionParser().parse("");
  }

  @Test(expectedExceptions = {IllegalArgumentException.class })
  public void testIllegalString() {
    final UserExpression expr = new ExpressionParser().parse("Foo less \"Bar\"");
  }
View Full Code Here

TOP

Related Classes of com.opengamma.financial.expression.UserExpression

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.