SPeCS Packages Documentation
    Preparing search index...

    GraalJS Java interoperability tools.

    Index

    Constructors

    Methods

    • Greates a shallow copy of given Java array or list. This is usually unnecessary, because you can use the Java arrays and lists directly as well.

      Type Parameters

      • T

      Parameters

      • obj: T[]

        Java array or list.

      Returns T[]

      JavaScript array.

    • Checks if a value is Java object or native JavaScript value.

      Parameters

      • value: any

        Value to check.

      Returns boolean

      If it is a Java object.

    • Converts a JavaScript value to Java type. This is usually handled automatically.

      Parameters

      • value: any

        JavaScript value.

      • javaType: any

        Java type to convert it to.

      Returns any

      Java object.

    • Gets type name of given Java class instance.

      Parameters

      • value: any

        Value to get type name for.

      Returns string | undefined

      Type name of given class instance, or undefined if a value that is not a class instance was given.