Class LuaReturn

java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList
se.krka.kahlua.integration.LuaReturn
All Implemented Interfaces:
java.lang.Iterable, java.util.Collection, java.util.List
Direct Known Subclasses:
LuaFail, LuaSuccess

public abstract class LuaReturn
extends java.util.AbstractList
  • Field Summary

    Fields
    Modifier and Type Field Description
    protected java.lang.Object[] returnValues  

    Fields inherited from class java.util.AbstractList

    modCount
  • Constructor Summary

    Constructors
    Modifier Constructor Description
    protected LuaReturn​(java.lang.Object[] objectArray)  
  • Method Summary

    Modifier and Type Method Description
    static LuaReturn createReturn​(java.lang.Object[] objectArray)  
    java.lang.Object get​(int int1)  
    abstract java.lang.Object getErrorObject()  
    abstract java.lang.String getErrorString()  
    java.lang.Object getFirst()  
    abstract java.lang.RuntimeException getJavaException()  
    abstract java.lang.String getLuaStackTrace()  
    java.lang.Object getSecond()  
    java.lang.Object getThird()  
    abstract boolean isSuccess()  
    int size()  

    Methods inherited from class java.util.AbstractList

    add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList

    Methods inherited from class java.util.AbstractCollection

    addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.util.Collection

    parallelStream, removeIf, stream, toArray

    Methods inherited from interface java.lang.Iterable

    forEach

    Methods inherited from interface java.util.List

    addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
  • Field Details

    • returnValues

      protected final java.lang.Object[] returnValues
  • Constructor Details

    • LuaReturn

      protected LuaReturn​(java.lang.Object[] objectArray)
  • Method Details

    • isSuccess

      public abstract boolean isSuccess()
    • getErrorObject

      public abstract java.lang.Object getErrorObject()
    • getErrorString

      public abstract java.lang.String getErrorString()
    • getLuaStackTrace

      public abstract java.lang.String getLuaStackTrace()
    • getJavaException

      public abstract java.lang.RuntimeException getJavaException()
    • getFirst

      public java.lang.Object getFirst()
    • getSecond

      public java.lang.Object getSecond()
    • getThird

      public java.lang.Object getThird()
    • get

      public java.lang.Object get​(int int1)
      Specified by:
      get in interface java.util.List
      Specified by:
      get in class java.util.AbstractList
    • size

      public int size()
      Specified by:
      size in interface java.util.Collection
      Specified by:
      size in interface java.util.List
      Specified by:
      size in class java.util.AbstractCollection
    • createReturn

      public static LuaReturn createReturn​(java.lang.Object[] objectArray)