@Test public void stringLiteralFunction() throws Exception { Function f = new StringLiteralFunction("test"); assertEquals(0, f.parameters().length); assertEquals("test", f.getString(null)); assertFalse(f.getBoolean(null)); Collection<String> dialogFunctions = new ArrayList<>(); f.getFunctionDialogReferences(dialogFunctions); assertTrue(dialogFunctions.isEmpty()); }
public StringLiteralFunction(String str) { literal = str; bool = literal.equalsIgnoreCase("true"); }
StringLiteralFunction implements Function { public StringLiteralFunction(String str) { literal = str; bool = literal.equalsIgnoreCase("true"); } }
StringLiteralFunction implements Function { public StringLiteralFunction(String str) { literal = str; bool = literal.equalsIgnoreCase("true"); } StringLiteralFunction(String str); }
StringLiteralFunction implements Function { public StringLiteralFunction(String str) { literal = str; bool = literal.equalsIgnoreCase("true"); } StringLiteralFunction(String str); @Override String[] parameters(); @Override void getFunctionDialogReferences(Collection<String> set); @Override String getString(Values parameters); @Override boolean getBoolean(Values parameters); }
StringLiteralFunction implements Function { public StringLiteralFunction(String str) { literal = str; bool = literal.equalsIgnoreCase("true"); } StringLiteralFunction(String str); @Override String[] parameters(); @Override void getFunctionDialogReferences(Collection<String> set); @Override String getString(Values parameters); @Override boolean getBoolean(Values parameters);  }