Interface AnyExternalObject

  • All Superinterfaces:
    GroundedValue, Item, Sequence
    All Known Implementing Classes:
    Bindery.FailureValue, MemoFunction.NodeSurrogate, ObjectValue, Tuple

    public interface AnyExternalObject
    extends Item
    An external object is a fourth kind of Item (after nodes, atomic values, and functions): it acts as a wrapper for a Java object (or, in C#, a .NET object).

    This interface deliberately does not use generics, enabling it to be used in the same way both in Java and C#.

    • Method Detail

      • getWrappedObject

        java.lang.Object getWrappedObject()
        Get the Java (or C#) object that is wrapped by this AnyExternalObject
        Returns:
        the wrapped object
      • getItemType

        ItemType getItemType​(TypeHierarchy th)
        Get the item type of the object
        Parameters:
        th - the type hierarchy
        Returns:
        the item type