Search in sources :

Example 1 with PCallInvoke

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

the class Walker method visitCallinvoke.

public AExpression visitCallinvoke(CallinvokeContext ctx, AExpression prefix) {
    String name = ctx.DOTID().getText();
    List<AExpression> arguments = collectArguments(ctx.arguments());
    return new PCallInvoke(location(ctx), prefix, name, ctx.NSDOT() != null, arguments);
}
Also used : PCallInvoke(org.elasticsearch.painless.node.PCallInvoke) AExpression(org.elasticsearch.painless.node.AExpression) EString(org.elasticsearch.painless.node.EString)

Aggregations

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