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

com.vmware.dcm.compiler.ir.Literal Maven / Gradle / Ivy

Go to download

Library for building declarative cluster managers. Please refer to the README at github.com/vmware/declarative-cluster-management/ for instructions on setting up solvers before use.

There is a newer version: 0.15.0
Show newest version
/*
 * Copyright 2018-2020 VMware, Inc. All Rights Reserved.
 *
 * SPDX-License-Identifier: BSD-2
 */

package com.vmware.dcm.compiler.ir;

public class Literal extends Expr {
    private final T value;

    public Literal(final T value, final Class type) {
        this.value = value;
    }

    public T getValue() {
        return value;
    }

    @Override
    public String toString() {
        return "Literal{" +
                "value='" + value + '\'' +
                '}';
    }

    @Override
     T1 acceptVisitor(final IRVisitor visitor, final C context) {
        return visitor.visitLiteral(this, context);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy