org.jruby.truffle.stdlib.bigdecimal.RoundModeNodeFactory Maven / Gradle / Ivy
The newest version!
// CheckStyle: start generated
package org.jruby.truffle.stdlib.bigdecimal;
import com.oracle.truffle.api.dsl.GeneratedBy;
import com.oracle.truffle.api.dsl.NodeFactory;
import com.oracle.truffle.api.frame.VirtualFrame;
import com.oracle.truffle.api.nodes.NodeCost;
import java.math.RoundingMode;
import java.util.Arrays;
import java.util.List;
@GeneratedBy(RoundModeNode.class)
@SuppressWarnings({"unchecked", "rawtypes"})
public final class RoundModeNodeFactory implements NodeFactory {
private static RoundModeNodeFactory instance;
private RoundModeNodeFactory() {
}
@Override
public Class getNodeClass() {
return RoundModeNode.class;
}
@Override
public List getExecutionSignature() {
return Arrays.asList();
}
@Override
public List getNodeSignatures() {
return Arrays.asList(Arrays.asList());
}
@Override
public RoundModeNode createNode(Object... arguments) {
if (arguments.length == 0) {
return create();
} else {
throw new IllegalArgumentException("Invalid create signature.");
}
}
public static NodeFactory getInstance() {
if (instance == null) {
instance = new RoundModeNodeFactory();
}
return instance;
}
public static RoundModeNode create() {
return new RoundModeNodeGen();
}
@GeneratedBy(RoundModeNode.class)
public static final class RoundModeNodeGen extends RoundModeNode {
private RoundModeNodeGen() {
}
@Override
public NodeCost getCost() {
return NodeCost.MONOMORPHIC;
}
@Override
public Object execute(VirtualFrame frameValue) {
return executeRoundingMode_(frameValue);
}
public RoundingMode executeRoundingMode_(VirtualFrame frameValue) {
return this.doGetRoundMode(frameValue);
}
@Override
public void executeVoid(VirtualFrame frameValue) {
executeRoundingMode_(frameValue);
return;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy