Package jodd.jerry

Interface JerryFunction

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface JerryFunction
    Callback function for iterating nodes.
    • Method Detail

      • onNode

        java.lang.Boolean onNode​(Jerry node,
                                 int index)
        Invoked on node. Returns true or null to continue looping. The reason why it returns a Boolean is because when Jerry is used in Nashorn, when javascript method returns nothing it means it's not false.