- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {Dictionary d =
new Hashtable()
Bundle bundle;bundle.getHeaders()
new Properties()
- Smart code suggestions by Codota
}
@Override public Object evaluate(EvaluationContext ctx) { return EvalHelper.unescapeString( getText() ); }
public static StringNode newStringNode(ParserRuleContext ctx) { return new StringNode( ctx ); }
@Override public DirectCompilerResult visit(StringNode n) { return DirectCompilerResult.of( Expressions.stringLiteral(n.getText()), // setString escapes the contents Java-style BuiltInType.STRING); }
assertThat(entry.getName(), is(instanceOf(StringNode.class))); StringNode nameNode = (StringNode) entry.getName(); assertThat(nameNode.getText(), is(notNullValue())); assertThat(nameNode.getText(), is("\"a string key\"")); // Reference String literal test, BaseNode#getText() return the FEEL equivalent expression, in this case quoted. assertThat( entry.getValue(), is( instanceOf( NumberNode.class ) ) ); assertThat( entry.getResultType(), is( BuiltInType.NUMBER ) );