Search in sources :

Example 1 with EInstanceof

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

the class Walker method visitInstanceof.

@Override
public ANode visitInstanceof(InstanceofContext ctx) {
    AExpression expr = (AExpression) visit(ctx.expression());
    String type = ctx.decltype().getText();
    return new EInstanceof(location(ctx), expr, type);
}
Also used : AExpression(org.elasticsearch.painless.node.AExpression) EInstanceof(org.elasticsearch.painless.node.EInstanceof) EString(org.elasticsearch.painless.node.EString)

Aggregations

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