@Test public void testParseAnyOf1() { VirtualCheckOperator op = VirtualCheckExpressionParser.parseVirtualCheckExpression("any of [ host 'vm1', host 'vm2', host 'vm3', host 'vm4' ]"); assertThat(op.toString(), is(equalTo("any of [host 'vm1', host 'vm2', host 'vm3', host 'vm4']"))); }
public static final VirtualCheckOperator parseVirtualCheckExpression(String expression) { try { try (StringReader reader = new StringReader(expression)) { VirtualCheckExpressionParserInternal parser = new VirtualCheckExpressionParserInternal(reader); return parser.readExpression(); } } catch (Exception e) { throw new RuntimeException("Failed to parse virtual check expression: '" + expression + "'", e); } }
VirtualCheckExpressionParser { public static final VirtualCheckOperator parseVirtualCheckExpression(String expression) { try { try (StringReader reader = new StringReader(expression)) { VirtualCheckExpressionParserInternal parser = new VirtualCheckExpressionParserInternal(reader); return parser.readExpression(); } } catch (Exception e) { throw new RuntimeException("Failed to parse virtual check expression: '" + expression + "'", e); } } }
VirtualCheckExpressionParser { public static final VirtualCheckOperator parseVirtualCheckExpression(String expression) { try { try (StringReader reader = new StringReader(expression)) { VirtualCheckExpressionParserInternal parser = new VirtualCheckExpressionParserInternal(reader); return parser.readExpression(); } } catch (Exception e) { throw new RuntimeException("Failed to parse virtual check expression: '" + expression + "'", e); } }  }
VirtualCheckExpressionParser { public static final VirtualCheckOperator parseVirtualCheckExpression(String expression) { try { try (StringReader reader = new StringReader(expression)) { VirtualCheckExpressionParserInternal parser = new VirtualCheckExpressionParserInternal(reader); return parser.readExpression(); } } catch (Exception e) { throw new RuntimeException("Failed to parse virtual check expression: '" + expression + "'", e); } }  static final VirtualCheckOperator parseVirtualCheckExpression(String expression); static final List<CheckReference<?>> parseParentsExpression(String expression); }
VirtualCheckExpressionParser { public static final VirtualCheckOperator parseVirtualCheckExpression(String expression) { try { try (StringReader reader = new StringReader(expression)) { VirtualCheckExpressionParserInternal parser = new VirtualCheckExpressionParserInternal(reader); return parser.readExpression(); } } catch (Exception e) { throw new RuntimeException("Failed to parse virtual check expression: '" + expression + "'", e); } }  static final VirtualCheckOperator parseVirtualCheckExpression(String expression); static final List<CheckReference<?>> parseParentsExpression(String expression);  }