toCode abstract method

String toCode()

Transforms the BaseInstance or its implementation into Code (a String)

This makes testing rather easy, because the building blocs of a whole Code tree can be easily tested, but just testing the underlying types of instances. More complex impelementations of Instances can be based on the BaseInstances for which only the configuration (properties, etc) have to be unit tested since the toCode function is inherited.

Implementation

String toCode();