org.graalvm.compiler.replacements.SnippetTemplate_OptionDescriptors Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of compiler Show documentation
Show all versions of compiler Show documentation
The GraalVM compiler and the Graal-truffle optimizer.
// CheckStyle: stop header check
// CheckStyle: stop line length check
// GENERATED CONTENT - DO NOT EDIT
// Source: SnippetTemplate.java
package org.graalvm.compiler.replacements;
import java.util.*;
import org.graalvm.compiler.options.*;
import org.graalvm.compiler.options.OptionType;
import org.graalvm.compiler.options.OptionStability;
public class SnippetTemplate_OptionDescriptors implements OptionDescriptors {
@Override
public OptionDescriptor get(String value) {
switch (value) {
// CheckStyle: stop line length check
case "MaxTemplatesPerSnippet": {
return OptionDescriptor.create(
/*name*/ "MaxTemplatesPerSnippet",
/*optionType*/ OptionType.Debug,
/*optionValueType*/ Integer.class,
/*help*/ "",
/*declaringClass*/ SnippetTemplate.Options.class,
/*fieldName*/ "MaxTemplatesPerSnippet",
/*option*/ SnippetTemplate.Options.MaxTemplatesPerSnippet,
/*stability*/ OptionStability.EXPERIMENTAL,
/*deprecated*/ false,
/*deprecationMessage*/ "");
}
case "UseSnippetTemplateCache": {
return OptionDescriptor.create(
/*name*/ "UseSnippetTemplateCache",
/*optionType*/ OptionType.Debug,
/*optionValueType*/ Boolean.class,
/*help*/ "Use a LRU cache for snippet templates.",
/*declaringClass*/ SnippetTemplate.Options.class,
/*fieldName*/ "UseSnippetTemplateCache",
/*option*/ SnippetTemplate.Options.UseSnippetTemplateCache,
/*stability*/ OptionStability.EXPERIMENTAL,
/*deprecated*/ false,
/*deprecationMessage*/ "");
}
// CheckStyle: resume line length check
}
return null;
}
@Override
public Iterator iterator() {
return new Iterator<>() {
int i = 0;
@Override
public boolean hasNext() {
return i < 2;
}
@Override
public OptionDescriptor next() {
switch (i++) {
case 0: return get("MaxTemplatesPerSnippet");
case 1: return get("UseSnippetTemplateCache");
}
throw new NoSuchElementException();
}
};
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy