hydra.langs.java.syntax.ConstantExpression Maven / Gradle / Ivy
package hydra.langs.java.syntax;
import java.io.Serializable;
public class ConstantExpression implements Serializable {
public static final hydra.core.Name NAME = new hydra.core.Name("hydra/langs/java/syntax.ConstantExpression");
public final hydra.langs.java.syntax.Expression value;
public ConstantExpression (hydra.langs.java.syntax.Expression value) {
this.value = value;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof ConstantExpression)) {
return false;
}
ConstantExpression o = (ConstantExpression) (other);
return value.equals(o.value);
}
@Override
public int hashCode() {
return 2 * value.hashCode();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy