tuna-master/joern/src/main/java/ast/expressions/Expression.java
package ast.expressions;

import ast.ASTNode;

public class Expression extends ASTNode {
    private String operator = "";

    public void replaceFirstChild(ASTNode node) {
        children.removeFirst();
        children.addFirst(node);
    }

    protected void setOperator(String text) {
        operator = text;
    }

    public String getOperator() {
        return operator;
    }

    public Expression clone() throws CloneNotSupportedException {
        Expression node = (Expression) super.clone();
        node.setOperator(operator);
        return node;
    }
}
