Search in sources :

Example 1 with ENewObj

use of org.elasticsearch.painless.node.ENewObj in project elasticsearch by elastic.

the class Walker method visitNewobject.

@Override
public ANode visitNewobject(NewobjectContext ctx) {
    String type = ctx.TYPE().getText();
    List<AExpression> arguments = collectArguments(ctx.arguments());
    return new ENewObj(location(ctx), type, arguments);
}
Also used : ENewObj(org.elasticsearch.painless.node.ENewObj) AExpression(org.elasticsearch.painless.node.AExpression) EString(org.elasticsearch.painless.node.EString)

Aggregations

AExpression (org.elasticsearch.painless.node.AExpression)1 ENewObj (org.elasticsearch.painless.node.ENewObj)1 EString (org.elasticsearch.painless.node.EString)1