Embedding Simkin in your
Java application


Simkin scripts are executed by the Simkin Interpreter class.

When a piece of Simkin script accesses the method or field of an object, the Interpreter does one of two things:

  1. If the object implements the Executable interface, it calls either getValue,setValue or method to access or change a field, or call a method
  2. In all other cases, it uses Java Introspection to find a matching public field or method within the class
This means that Simkin script can automatically access any public field or method within your application.

Typically Simkin scripts are attached to particular Java objects and are contained within data files or databases. This means you can use Simkin to extend the data and behaviour of these Java objects without using Java.

Simkin provides 3 classes that help attach scripts to Java objects: