com.vmware.dcm.compiler.ir.Literal Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dcm Show documentation
Show all versions of dcm Show documentation
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.
/*
* 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