com.oracle.svm.hosted.ResourcesFeature_OptionDescriptors Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of svm Show documentation
Show all versions of svm Show documentation
SubstrateVM image builder components
// CheckStyle: stop header check
// CheckStyle: stop line length check
// GENERATED CONTENT - DO NOT EDIT
// Source: ResourcesFeature.java
package com.oracle.svm.hosted;
import java.util.*;
import org.graalvm.compiler.options.*;
import org.graalvm.compiler.options.OptionType;
public class ResourcesFeature_OptionDescriptors implements OptionDescriptors {
@Override
public OptionDescriptor get(String value) {
switch (value) {
// CheckStyle: stop line length check
case "IncludeResources": {
return OptionDescriptor.create(
/*name*/ "IncludeResources",
/*optionType*/ OptionType.User,
/*optionValueType*/ String[].class,
/*help*/ "Regexp to match names of resources to be included in the image.",
/*declaringClass*/ ResourcesFeature.Options.class,
/*fieldName*/ "IncludeResources",
/*option*/ ResourcesFeature.Options.IncludeResources);
}
case "ResourceConfigurationFiles": {
return OptionDescriptor.create(
/*name*/ "ResourceConfigurationFiles",
/*optionType*/ OptionType.User,
/*optionValueType*/ String[].class,
/*help*/ "Files describing Java resources to be included in the image.",
/*declaringClass*/ ResourcesFeature.Options.class,
/*fieldName*/ "ResourceConfigurationFiles",
/*option*/ ResourcesFeature.Options.ResourceConfigurationFiles);
}
case "ResourceConfigurationResources": {
return OptionDescriptor.create(
/*name*/ "ResourceConfigurationResources",
/*optionType*/ OptionType.User,
/*optionValueType*/ String[].class,
/*help*/ "Resources describing Java resources to be included in the image.",
/*declaringClass*/ ResourcesFeature.Options.class,
/*fieldName*/ "ResourceConfigurationResources",
/*option*/ ResourcesFeature.Options.ResourceConfigurationResources);
}
// CheckStyle: resume line length check
}
return null;
}
@Override
public Iterator iterator() {
return new Iterator() {
int i = 0;
@Override
public boolean hasNext() {
return i < 3;
}
@Override
public OptionDescriptor next() {
switch (i++) {
case 0: return get("IncludeResources");
case 1: return get("ResourceConfigurationFiles");
case 2: return get("ResourceConfigurationResources");
}
throw new NoSuchElementException();
}
};
}
}