Class KahluaTableImpl

java.lang.Object
se.krka.kahlua.j2se.KahluaTableImpl
All Implemented Interfaces:
KahluaTable

public class KahluaTableImpl
extends java.lang.Object
implements KahluaTable
  • Field Summary

    Fields
    Modifier and Type Field Description
    java.util.Map delegate  
  • Constructor Summary

    Constructors
    Constructor Description
    KahluaTableImpl​(java.util.Map map)  
  • Method Summary

    Modifier and Type Method Description
    static boolean canSave​(java.lang.Object object, java.lang.Object object2)  
    KahluaTable getMetatable()  
    KahluaTableImpl getRewriteTable()  
    java.lang.String getString​(java.lang.String string)  
    boolean isEmpty()  
    KahluaTableIterator iterator()  
    int len()  
    void load​(java.io.DataInputStream dataInputStream, int int1)  
    java.lang.Object load​(java.io.DataInputStream dataInputStream, int int1, byte byte1)  
    void load​(java.nio.ByteBuffer byteBuffer, int int1)  
    java.lang.Object load​(java.nio.ByteBuffer byteBuffer, int int1, byte byte1)  
    java.lang.Object rawget​(int int1)  
    java.lang.Object rawget​(java.lang.Object object)  
    boolean rawgetBool​(java.lang.Object object)  
    float rawgetFloat​(java.lang.Object object)  
    int rawgetInt​(java.lang.Object object)  
    java.lang.String rawgetStr​(java.lang.Object object)  
    void rawset​(int int1, java.lang.Object object)  
    void rawset​(java.lang.Object object, java.lang.Object object2)  
    void save​(java.io.DataOutputStream dataOutputStream)  
    void save​(java.nio.ByteBuffer byteBuffer)  
    void setMetatable​(KahluaTable kahluaTable)  
    void setRewriteTable​(java.lang.Object object)  
    int size()  
    java.lang.String toString()  
    void wipe()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • delegate

      public final java.util.Map delegate
  • Constructor Details

    • KahluaTableImpl

      public KahluaTableImpl​(java.util.Map map)
  • Method Details

    • setMetatable

      public void setMetatable​(KahluaTable kahluaTable)
      Specified by:
      setMetatable in interface KahluaTable
    • getMetatable

      public KahluaTable getMetatable()
      Specified by:
      getMetatable in interface KahluaTable
    • size

      public int size()
      Specified by:
      size in interface KahluaTable
    • rawset

      public void rawset​(java.lang.Object object, java.lang.Object object2)
      Specified by:
      rawset in interface KahluaTable
    • rawget

      public java.lang.Object rawget​(java.lang.Object object)
      Specified by:
      rawget in interface KahluaTable
    • rawset

      public void rawset​(int int1, java.lang.Object object)
      Specified by:
      rawset in interface KahluaTable
    • rawgetStr

      public java.lang.String rawgetStr​(java.lang.Object object)
    • rawgetInt

      public int rawgetInt​(java.lang.Object object)
    • rawgetBool

      public boolean rawgetBool​(java.lang.Object object)
    • rawgetFloat

      public float rawgetFloat​(java.lang.Object object)
    • rawget

      public java.lang.Object rawget​(int int1)
      Specified by:
      rawget in interface KahluaTable
    • len

      public int len()
      Specified by:
      len in interface KahluaTable
    • iterator

      public KahluaTableIterator iterator()
      Specified by:
      iterator in interface KahluaTable
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface KahluaTable
    • wipe

      public void wipe()
      Specified by:
      wipe in interface KahluaTable
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • save

      public void save​(java.nio.ByteBuffer byteBuffer)
      Specified by:
      save in interface KahluaTable
    • save

      public void save​(java.io.DataOutputStream dataOutputStream) throws java.io.IOException
      Specified by:
      save in interface KahluaTable
      Throws:
      java.io.IOException
    • load

      public void load​(java.nio.ByteBuffer byteBuffer, int int1)
      Specified by:
      load in interface KahluaTable
    • load

      public java.lang.Object load​(java.nio.ByteBuffer byteBuffer, int int1, byte byte1) throws java.lang.RuntimeException
      Throws:
      java.lang.RuntimeException
    • load

      public void load​(java.io.DataInputStream dataInputStream, int int1) throws java.io.IOException
      Specified by:
      load in interface KahluaTable
      Throws:
      java.io.IOException
    • load

      public java.lang.Object load​(java.io.DataInputStream dataInputStream, int int1, byte byte1) throws java.io.IOException, java.lang.RuntimeException
      Throws:
      java.io.IOException
      java.lang.RuntimeException
    • getString

      public java.lang.String getString​(java.lang.String string)
      Specified by:
      getString in interface KahluaTable
    • getRewriteTable

      public KahluaTableImpl getRewriteTable()
    • setRewriteTable

      public void setRewriteTable​(java.lang.Object object)
    • canSave

      public static boolean canSave​(java.lang.Object object, java.lang.Object object2)