Package org.openrewrite.polyglot
Class PolyglotValueMappings.PolyglotRecipeMapping
- java.lang.Object
-
- org.openrewrite.polyglot.PolyglotValueMappings.PolyglotRecipeMapping
-
- All Implemented Interfaces:
java.util.function.Function<org.graalvm.polyglot.Value,PolyglotRecipe>,java.util.function.Predicate<org.graalvm.polyglot.Value>,PolyglotMapping<org.graalvm.polyglot.Value,PolyglotRecipe>,PolyglotValueMappings.FromValuePolyglotMapping<PolyglotRecipe>
- Enclosing interface:
- PolyglotValueMappings
public static class PolyglotValueMappings.PolyglotRecipeMapping extends java.lang.Object implements PolyglotValueMappings.FromValuePolyglotMapping<PolyglotRecipe>
-
-
Constructor Summary
Constructors Constructor Description PolyglotRecipeMapping()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PolyglotRecipeapply(org.graalvm.polyglot.Value value)java.lang.Class<PolyglotRecipe>outputType()booleantest(org.graalvm.polyglot.Value value)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openrewrite.polyglot.PolyglotValueMappings.FromValuePolyglotMapping
inputType
-
-
-
-
Method Detail
-
outputType
public java.lang.Class<PolyglotRecipe> outputType()
- Specified by:
outputTypein interfacePolyglotMapping<org.graalvm.polyglot.Value,PolyglotRecipe>
-
apply
public PolyglotRecipe apply(org.graalvm.polyglot.Value value)
- Specified by:
applyin interfacejava.util.function.Function<org.graalvm.polyglot.Value,PolyglotRecipe>
-
test
public boolean test(org.graalvm.polyglot.Value value)
- Specified by:
testin interfacejava.util.function.Predicate<org.graalvm.polyglot.Value>
-
-