Search in sources :

Example 1 with EExplicit

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

the class Walker method visitCast.

@Override
public ANode visitCast(CastContext ctx) {
    String type = ctx.decltype().getText();
    AExpression child = (AExpression) visit(ctx.unary());
    return new EExplicit(location(ctx), type, child);
}
Also used : AExpression(org.elasticsearch.painless.node.AExpression) EExplicit(org.elasticsearch.painless.node.EExplicit) EString(org.elasticsearch.painless.node.EString)

Aggregations

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