/** * Copyright (c) 2012-2016 André Bargull * Alle Rechte vorbehalten / All Rights Reserved. Use is subject to license terms. * * <https://github.com/anba/es6draft> */ package com.github.anba.es6draft.ast; import java.util.List; /** * <h1>12 ECMAScript Language: Expressions</h1><br> * <h2>12.3 Left-Hand-Side Expressions</h2> * <ul> * <li>12.3.3 The new Operator * </ul> */ public final class NewExpression extends Expression { private final Expression expression; private final List<Expression> arguments; public NewExpression(long beginPosition, long endPosition, Expression expression, List<Expression> arguments) { super(beginPosition, endPosition); this.expression = expression; this.arguments = arguments; } public Expression getExpression() { return expression; } public List<Expression> getArguments() { return arguments; } @Override public <R, V> R accept(NodeVisitor<R, V> visitor, V value) { return visitor.visit(this, value); } @Override public <V> int accept(IntNodeVisitor<V> visitor, V value) { return visitor.visit(this, value); } @Override public <V> void accept(VoidNodeVisitor<V> visitor, V value) { visitor.visit(this, value); } }