Index
A C D E F G H I K L N O R S T V _
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- asBoolean() - Method in class lukyt.LuaObject
-
Returns this LuaObject as a primitive
booleanvalue. - asDouble() - Method in class lukyt.LuaObject
-
Returns this LuaObject as a primitive
doublevalue.
If the Lua object isn't anumber, this returns 0. - asLong() - Method in class lukyt.LuaObject
-
Returns this LuaObject as a primitive
longvalue.
If the Lua object isn't anumber, this returns 0.
The number is floored if necessary. - asObject() - Method in class lukyt.LuaObject
-
Returns this LuaObject as either a String, a Double, a Boolean or a
nullvalue. - asString() - Method in class lukyt.LuaObject
-
Returns this LuaObject as a String object.
If the Lua object isn't astring, this returns the result oftostring(). - available() - Method in class lukyt.LuaInputStream
C
- ChildNotFoundException - Exception in lukyt
-
Exception thrown when no children with specified key has been found.
- ChildNotFoundException() - Constructor for exception lukyt.ChildNotFoundException
- ChildNotFoundException(String) - Constructor for exception lukyt.ChildNotFoundException
- ChildNotFoundException(String, Throwable) - Constructor for exception lukyt.ChildNotFoundException
- ChildNotFoundException(Throwable) - Constructor for exception lukyt.ChildNotFoundException
- cil.li.oc - package cil.li.oc
-
Package containing binding classes to OpenComputers APIs
- cil.li.oc.proxies - package cil.li.oc.proxies
- clock() - Static method in class lukyt.Os
-
Invoke `os.clock()` and return the result as a double.
- close() - Method in class lukyt.LuaInputStream
- ComponentProxy - Class in cil.li.oc
-
Abstract class for component proxies.
- ComponentProxy() - Constructor for class cil.li.oc.ComponentProxy
- Components - Class in cil.li.oc
-
Class used to access the component API.
D
- doc(String, String) - Static method in class cil.li.oc.Components
-
Returns the documentation string for the method with the specified name of the component with the specified address, if any.
E
- equals(Object) - Method in class lukyt.LuaObject
- execute() - Method in class lukyt.LuaObject
-
Execute this Lua Object as a function no arguments and return the first return value.
- execute(String) - Static method in class lukyt.Os
- execute(LuaObject) - Method in class lukyt.LuaObject
-
Execute this Lua Object as a function with one argument
argand return the first return value. - execute(LuaObject[]) - Method in class lukyt.LuaObject
-
Execute this Lua Object as a function with arguments
argsand return the first return value. - executeAll(LuaObject[]) - Method in class lukyt.LuaObject
-
Execute this Lua Object as a function with arguments
argsand return all of its results as LuaObjects. - executeChild(String) - Method in class lukyt.LuaObject
-
Execute the child with key
keyas a function with zero arguments. - executeChild(String, LuaObject[]) - Method in class lukyt.LuaObject
-
Execute the child with key
keyas a function
F
- FALSE - Static variable in class lukyt.LuaObject
-
The
LuaObjectcorresponding to the Lua primitivefalse - fill(int, int, int, int, char) - Method in class cil.li.oc.proxies.GPUProxy
- from(Object) - Static method in class lukyt.LuaObject
-
Auto-cast object
oto a LuaObject. - fromBoolean(boolean) - Static method in class lukyt.LuaObject
- fromDouble(double) - Static method in class lukyt.LuaObject
-
Cast a primitive
doublevalue to a LuaObject. - fromLong(long) - Static method in class lukyt.LuaObject
-
Cast a primitive
longvalue to a LuaObject. - fromString(String) - Static method in class lukyt.LuaObject
-
Cast a String to a LuaObject.
G
- get(String) - Method in class lukyt.LuaObject
-
Returns the
LuaObjectcorresponding to the child of the lua variable corresponding to this LuaObject. - getAddress() - Method in class cil.li.oc.ComponentProxy
- getAddress() - Method in class cil.li.oc.proxies.GPUProxy
- getPrimary(String) - Static method in class cil.li.oc.Components
-
Gets the proxy for the primary component of the specified type.
Throws an error if there is no primary component of the specified type. - getPrimaryAddress(String) - Static method in class cil.li.oc.Components
-
Get the primary component.
Unlike Lua, this returns the address. - getProxy(String) - Static method in class cil.li.oc.Components
-
Gets a 'proxy' object for a component, this provides all methods the component provides so they can be called more directly (instead of via invoke).
- getType() - Method in class cil.li.oc.ComponentProxy
- getType() - Method in class cil.li.oc.proxies.GPUProxy
- getType() - Method in class lukyt.LuaObject
- GPUProxy - Class in cil.li.oc.proxies
-
Component proxy of a GPU.
- GPUProxy(LuaObject) - Constructor for class cil.li.oc.proxies.GPUProxy
H
I
- invoke(String, String, Object...) - Static method in class cil.li.oc.Components
-
Invoke component's
methodwith specified componentaddressand with argumentsargs
This returns all the results of the call.
If needed, objects are serialized to lua objects, in that case, Object can be one of: Integer Long Map (mapped to a table) Double
Functions are serialized to theirjava.util.functionequivalent. - invoke(String, String, LuaObject[]) - Static method in class cil.li.oc.Components
-
SPECIFIC TO LUKYT : should not actually be used, this was some support function for complex lua object types but shouldn't be used now.
- isArray() - Method in class lukyt.LuaObject
-
Returns
trueif this object only contains numerical keys. - isNil() - Method in class lukyt.LuaObject
- isShellAvailable() - Static method in class lukyt.Os
-
Invoke `os.execute()` which returns true if the shell is available.
- isTable() - Method in class lukyt.LuaObject
K
- keys() - Method in class lukyt.LuaObject
-
Returns the list of all the keys used in this Lua
tableobject.
L
- LuaInputStream - Class in lukyt
- LuaInputStream(LuaObject) - Constructor for class lukyt.LuaInputStream
- LuaObject - Class in lukyt
-
Java class wrapping a Lua value.
- LuaObject() - Constructor for class lukyt.LuaObject
-
Init the LuaObject with a new
nilvalue. - LuaObject(String) - Constructor for class lukyt.LuaObject
-
Use path
pathto find the LuaObject throughLuaObject._ENV.
Childrens are separated by dots (.)
Example:os.timereturns the child namedtimeof theostable which is a child of theLuaObject._ENVtable. - lukyt - package lukyt
N
O
- Os - Class in lukyt
-
Binding class around Lua
osAPI, it usesLuaObject. - Os() - Constructor for class lukyt.Os
R
- read() - Method in class lukyt.LuaInputStream
S
- set(String, LuaObject) - Method in class lukyt.LuaObject
-
Set the child with this key to the lua variable corresponding to the given
LuaObject. - setBackground(int) - Method in class cil.li.oc.proxies.GPUProxy
- setForeground(int) - Method in class cil.li.oc.proxies.GPUProxy
T
- time() - Static method in class lukyt.Os
-
Invoke `os.time()` and return the result as a double.
- TRUE - Static variable in class lukyt.LuaObject
-
The
LuaObjectcorresponding to the Lua primitivetrue
V
- values() - Method in class lukyt.LuaObject
-
Returns the list of all the values in this Lua
tableobject.
_
- _ENV - Static variable in class lukyt.LuaObject
-
The
LuaObjectcorresponding to the Lua variable_ENV - _G - Static variable in class lukyt.LuaObject
-
The
LuaObjectcorresponding to the Lua variable_G
All Classes All Packages