com.oracle.truffle.tck.instrumentation.DebugALotOptionDescriptors Maven / Gradle / Ivy
// CheckStyle: start generated
package com.oracle.truffle.tck.instrumentation;
import com.oracle.truffle.api.TruffleOptionDescriptors;
import com.oracle.truffle.api.dsl.GeneratedBy;
import java.util.Iterator;
import java.util.List;
import org.graalvm.options.OptionCategory;
import org.graalvm.options.OptionDescriptor;
import org.graalvm.options.OptionStability;
import org.graalvm.polyglot.SandboxPolicy;
@GeneratedBy(DebugALot.class)
final class DebugALotOptionDescriptors implements TruffleOptionDescriptors {
@Override
public OptionDescriptor get(String optionName) {
switch (optionName) {
case "debugalot" :
return OptionDescriptor.newBuilder(DebugALot.DebugALot, "debugalot").deprecated(false).help("Start debugging logger.").usageSyntax("").category(OptionCategory.EXPERT).stability(OptionStability.EXPERIMENTAL).build();
case "debugalot.Eval" :
return OptionDescriptor.newBuilder(DebugALot.Eval, "debugalot.Eval").deprecated(false).help("Whether to test evaluations. (default:false)").usageSyntax("").category(OptionCategory.EXPERT).stability(OptionStability.EXPERIMENTAL).build();
case "debugalot.FailFast" :
return OptionDescriptor.newBuilder(DebugALot.FailFast, "debugalot.FailFast").deprecated(false).help("Fail fast, give up after the first error. (default:false)").usageSyntax("").category(OptionCategory.EXPERT).stability(OptionStability.EXPERIMENTAL).build();
case "debugalot.LogFile" :
return OptionDescriptor.newBuilder(DebugALot.LogFile, "debugalot.LogFile").deprecated(false).help("File to print the debugger log into. (default:standard output)").usageSyntax("").category(OptionCategory.EXPERT).stability(OptionStability.EXPERIMENTAL).build();
}
return null;
}
@Override
public SandboxPolicy getSandboxPolicy(String optionName) {
assert get(optionName) != null : "Unknown option " + optionName;
return SandboxPolicy.TRUSTED;
}
@Override
public Iterator iterator() {
return List.of(
OptionDescriptor.newBuilder(DebugALot.DebugALot, "debugalot").deprecated(false).help("Start debugging logger.").usageSyntax("").category(OptionCategory.EXPERT).stability(OptionStability.EXPERIMENTAL).build(),
OptionDescriptor.newBuilder(DebugALot.Eval, "debugalot.Eval").deprecated(false).help("Whether to test evaluations. (default:false)").usageSyntax("").category(OptionCategory.EXPERT).stability(OptionStability.EXPERIMENTAL).build(),
OptionDescriptor.newBuilder(DebugALot.FailFast, "debugalot.FailFast").deprecated(false).help("Fail fast, give up after the first error. (default:false)").usageSyntax("").category(OptionCategory.EXPERT).stability(OptionStability.EXPERIMENTAL).build(),
OptionDescriptor.newBuilder(DebugALot.LogFile, "debugalot.LogFile").deprecated(false).help("File to print the debugger log into. (default:standard output)").usageSyntax("").category(OptionCategory.EXPERT).stability(OptionStability.EXPERIMENTAL).build())
.iterator();
}
}