blob: f30efef4146733533fce427591df9b6734df0b57 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
package org.shedlang.compiler.patio.operands;
import org.shedlang.compiler.patio.types.PatioType;
import org.shedlang.compiler.patio.types.PatioTypes;
import org.shedlang.compiler.patio.values.PatioIntValue;
import org.shedlang.compiler.patio.values.PatioIntValueLiteral;
public record PatioInt32Const(PatioIntValue value) implements PatioOperandConst {
public static PatioInt32Const of(int value) {
return new PatioInt32Const(new PatioIntValueLiteral(value));
}
@Override
public PatioType type() {
return PatioTypes.INT32;
}
}
|