Digitalguru's example didn't uses classes. It was simply an "expression", using a node ID (the name of a node), a member parameter, a constant (2) and a basic math operation (multiply). The syntax looks similar to what's seen in many 3D programs. That's why Oshyan suggested you look at Houdini, because they do something similar.