All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.shmilyhe.convert.ast.expression.CallExpression Maven / Gradle / Ivy

package io.shmilyhe.convert.ast.expression;

import java.util.ArrayList;
import java.util.List;

public class CallExpression extends Expression{

    @Override
    public String getType() {
        return TYPE_CALL;
    }
    
    protected Expression callee;

    protected List arguments;

    public Expression getCallee() {
        return callee;
    }

    public CallExpression setCallee(Expression callee) {
        this.callee = callee;
        return this;
    }

    public List getArguments() {
        return arguments;
    }

    public void addArgument(Expression exp){
        if(exp==null)return;
        if(arguments==null)arguments= new ArrayList<>();
        arguments.add(exp);
    }

    public CallExpression setArguments(List arguments) {
        this.arguments = arguments;
        return this;
    }

    


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy