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

com.g2forge.alexandria.expression.numeric.NumericLiteral Maven / Gradle / Ivy

Go to download

A library for expressions and their evaluation. Includes a basic implementation for math.

There is a newer version: 0.0.18
Show newest version
package com.g2forge.alexandria.expression.numeric;

import com.g2forge.alexandria.expression.ILiteral;

import lombok.Data;

@Data
public class NumericLiteral implements ILiteral, INumericExpression {
	protected final int value;

	@Override
	public NumericLiteral apply(NumericEnvironment environment) {
		return this;
	}

	@Override
	public NumericLiteral reduce() {
		return this;
	}

	@Override
	public String toString() {
		return Integer.toString(getValue());
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy