Package org.openrewrite.config
Class PolyglotResourceLoader
- java.lang.Object
-
- org.openrewrite.config.PolyglotResourceLoader
-
- All Implemented Interfaces:
ResourceLoader
- Direct Known Subclasses:
NpmRegistryModuleLoader
public class PolyglotResourceLoader extends java.lang.Object implements ResourceLoader
-
-
Constructor Summary
Constructors Constructor Description PolyglotResourceLoader(org.graalvm.polyglot.Source... sources)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidevalPolyglotRecipe(org.graalvm.polyglot.Source moduleSrc)java.util.Collection<CategoryDescriptor>listCategoryDescriptors()java.util.Collection<RecipeDescriptor>listRecipeDescriptors()java.util.Collection<RecipeExample>listRecipeExamples()java.util.Collection<Recipe>listRecipes()java.util.Collection<NamedStyles>listStyles()
-
-
-
Method Detail
-
listRecipes
public java.util.Collection<Recipe> listRecipes()
- Specified by:
listRecipesin interfaceResourceLoader
-
listRecipeDescriptors
public java.util.Collection<RecipeDescriptor> listRecipeDescriptors()
- Specified by:
listRecipeDescriptorsin interfaceResourceLoader
-
listStyles
public java.util.Collection<NamedStyles> listStyles()
- Specified by:
listStylesin interfaceResourceLoader
-
listCategoryDescriptors
public java.util.Collection<CategoryDescriptor> listCategoryDescriptors()
- Specified by:
listCategoryDescriptorsin interfaceResourceLoader
-
listRecipeExamples
public java.util.Collection<RecipeExample> listRecipeExamples()
- Specified by:
listRecipeExamplesin interfaceResourceLoader
-
evalPolyglotRecipe
public void evalPolyglotRecipe(org.graalvm.polyglot.Source moduleSrc) throws java.io.IOException- Throws:
java.io.IOException
-
-