Package se.krka.kahlua.j2se
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
- Specified by:
setMetatable
in interfaceKahluaTable
-
getMetatable
- Specified by:
getMetatable
in interfaceKahluaTable
-
size
public int size()- Specified by:
size
in interfaceKahluaTable
-
rawset
public void rawset(java.lang.Object object, java.lang.Object object2)- Specified by:
rawset
in interfaceKahluaTable
-
rawget
public java.lang.Object rawget(java.lang.Object object)- Specified by:
rawget
in interfaceKahluaTable
-
rawset
public void rawset(int int1, java.lang.Object object)- Specified by:
rawset
in interfaceKahluaTable
-
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 interfaceKahluaTable
-
len
public int len()- Specified by:
len
in interfaceKahluaTable
-
iterator
- Specified by:
iterator
in interfaceKahluaTable
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceKahluaTable
-
wipe
public void wipe()- Specified by:
wipe
in interfaceKahluaTable
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
save
public void save(java.nio.ByteBuffer byteBuffer)- Specified by:
save
in interfaceKahluaTable
-
save
public void save(java.io.DataOutputStream dataOutputStream) throws java.io.IOException- Specified by:
save
in interfaceKahluaTable
- Throws:
java.io.IOException
-
load
public void load(java.nio.ByteBuffer byteBuffer, int int1)- Specified by:
load
in interfaceKahluaTable
-
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 interfaceKahluaTable
- 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 interfaceKahluaTable
-
getRewriteTable
-
setRewriteTable
public void setRewriteTable(java.lang.Object object) -
canSave
public static boolean canSave(java.lang.Object object, java.lang.Object object2)
-