Index

A C D E F G H I K L N O R S T V _ 
All Classes All Packages

A

asBoolean() - Method in class lukyt.LuaObject
Returns this LuaObject as a primitive boolean value.
asDouble() - Method in class lukyt.LuaObject
Returns this LuaObject as a primitive double value.
If the Lua object isn't a number, this returns 0.
asLong() - Method in class lukyt.LuaObject
Returns this LuaObject as a primitive long value.
If the Lua object isn't a number, 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 null value.
asString() - Method in class lukyt.LuaObject
Returns this LuaObject as a String object.
If the Lua object isn't a string, this returns the result of tostring().
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 arg and return the first return value.
execute(LuaObject[]) - Method in class lukyt.LuaObject
Execute this Lua Object as a function with arguments args and return the first return value.
executeAll(LuaObject[]) - Method in class lukyt.LuaObject
Execute this Lua Object as a function with arguments args and return all of its results as LuaObjects.
executeChild(String) - Method in class lukyt.LuaObject
Execute the child with key key as a function with zero arguments.
executeChild(String, LuaObject[]) - Method in class lukyt.LuaObject
Execute the child with key key as a function

F

FALSE - Static variable in class lukyt.LuaObject
The LuaObject corresponding to the Lua primitive false
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 o to a LuaObject.
fromBoolean(boolean) - Static method in class lukyt.LuaObject
 
fromDouble(double) - Static method in class lukyt.LuaObject
Cast a primitive double value to a LuaObject.
fromLong(long) - Static method in class lukyt.LuaObject
Cast a primitive long value 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 LuaObject corresponding 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

handle - Variable in class lukyt.LuaObject
 

I

invoke(String, String, Object...) - Static method in class cil.li.oc.Components
Invoke component's method with specified component address and with arguments args
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 their java.util.function equivalent.
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 true if this object only contains numerical keys.
isNil() - Method in class lukyt.LuaObject
Returns true if LuaObject.getType() returns "nil".
isShellAvailable() - Static method in class lukyt.Os
Invoke `os.execute()` which returns true if the shell is available.
isTable() - Method in class lukyt.LuaObject
Returns true if LuaObject.getType() returns "table".

K

keys() - Method in class lukyt.LuaObject
Returns the list of all the keys used in this Lua table object.

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 nil value.
LuaObject(String) - Constructor for class lukyt.LuaObject
Use path path to find the LuaObject through LuaObject._ENV.
Childrens are separated by dots (.)

Example: os.time returns the child named time of the os table which is a child of the LuaObject._ENV table.
lukyt - package lukyt
 

N

NIL - Static variable in class lukyt.LuaObject
The LuaObject corresponding to Lua nil

O

Os - Class in lukyt
Binding class around Lua os API, it uses LuaObject.
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 LuaObject corresponding to the Lua primitive true

V

values() - Method in class lukyt.LuaObject
Returns the list of all the values in this Lua table object.

_

_ENV - Static variable in class lukyt.LuaObject
The LuaObject corresponding to the Lua variable _ENV
_G - Static variable in class lukyt.LuaObject
The LuaObject corresponding to the Lua variable _G
A C D E F G H I K L N O R S T V _ 
All Classes All Packages