Class Script

    • Method Detail

      • _kind

        public final Script.Kind _kind()
        Description copied from interface: TaggedUnion
        Get the of the kind of variant held by this object.
        Specified by:
        _kind in interface TaggedUnion<Script.Kind,​java.lang.Object>
        Returns:
        the variant kind
      • isInline

        public boolean isInline()
        Is this variant instance of kind inline?
      • inline

        public InlineScript inline()
        Get the inline variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not of the inline kind.
      • isStored

        public boolean isStored()
        Is this variant instance of kind stored?
      • stored

        public StoredScriptId stored()
        Get the stored variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not of the stored kind.