![JAR search and dependency download from the Maven repository](/logo.png)
com.g2forge.alexandria.expression.numeric.NumericLiteral Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ax-expression Show documentation
Show all versions of ax-expression Show documentation
A library for expressions and their evaluation. Includes a basic implementation for math.
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