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

io.github.kiryu1223.expressionTree.expressions.ExprTree Maven / Gradle / Ivy

package io.github.kiryu1223.expressionTree.expressions;

import io.github.kiryu1223.expressionTree.delegate.Delegate;

public final class ExprTree
{
    private final T delegate;
    private final LambdaExpression tree;

    private ExprTree(T delegate, LambdaExpression tree)
    {
        this.delegate = delegate;
        this.tree = tree;
    }

    public static  ExprTree Expr(T delegate, LambdaExpression tree)
    {
        return new ExprTree<>(delegate, tree);
    }

    public T getDelegate()
    {
        return delegate;
    }

    public LambdaExpression getTree()
    {
        return tree;
    }

    @Override
    public String toString()
    {
        return "ExprTree{" +
                "delegate=" + delegate +
                ", tree=" + tree +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy