A C G L M O P S T 

A

addModule(String, Object) - Method in class com.rogerbinns.MiniPython
Makes methods on the methods Object available to the Python

C

callMethod(String, Object...) - Method in class com.rogerbinns.MiniPython
Calls a method in Python and returns the result
clear() - Method in class com.rogerbinns.MiniPython
Removes all internal state.
com.rogerbinns - package com.rogerbinns
 

G

getType() - Method in exception com.rogerbinns.MiniPython.ExecutionError
Returns the type of the error.

L

linenumber() - Method in exception com.rogerbinns.MiniPython.ExecutionError
Returns the line number which was being executed when the error happened.

M

MiniPython - Class in com.rogerbinns
Encapsulates running a Python syntax file.
MiniPython() - Constructor for class com.rogerbinns.MiniPython
 
MiniPython.Client - Interface in com.rogerbinns
Provide platform behaviour
MiniPython.ExecutionError - Exception in com.rogerbinns
Encapsulates what would be an Exception in Python.

O

onError(MiniPython.ExecutionError) - Method in interface com.rogerbinns.MiniPython.Client
Called whenever there is an ExecutionError.

P

pc() - Method in exception com.rogerbinns.MiniPython.ExecutionError
Returns program counter when error occurred.
print(String) - Method in interface com.rogerbinns.MiniPython.Client
Request to print a string

S

setClient(MiniPython.Client) - Method in class com.rogerbinns.MiniPython
Callbacks to use for specific behaviour
setCode(InputStream) - Method in class com.rogerbinns.MiniPython
Reads and executes code from the supplied stream The stream provided must satisfy reads completely (eg if 27 bytes is asked for then that number should be returned in the read() call unless end of file is reached.)
signalError(String, String) - Method in class com.rogerbinns.MiniPython
Call this method when your callbacks need to halt execution due to an error This method will do the internal bookkeeping necessary in order to provide diagnostics to the original caller and then throw an ExecutionError which you should not catch.
signalError(String, String, Throwable) - Method in class com.rogerbinns.MiniPython
Call this method when your callbacks need to halt execution due to an error This method will do the internal bookkeeping necessary in order to provide diagnostics to the original caller and then throw an ExecutionError which you should not catch.

T

toDetailedString() - Method in exception com.rogerbinns.MiniPython.ExecutionError
Returns more detailed than toString (eg includes linenumber and pc).
toPyReprString(Object) - Static method in class com.rogerbinns.MiniPython
Same as toPyString except strings are quoted and backslash escaped.
toPyString(Object) - Static method in class com.rogerbinns.MiniPython
Returns a string representing the object using Python nomenclature where possible For example `null` is returned as `None`, `true` as `True` etc.
toPyTypeString(Object) - Static method in class com.rogerbinns.MiniPython
Returns a string representing the type of the object using Python nomenclature where possible For example `null` is returned as `NoneType`, `true` as `bool`, `Map` as `dict` etc.
toString() - Method in exception com.rogerbinns.MiniPython.ExecutionError
 
A C G L M O P S T