Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

Search: 

  Tutorial: Kanaputs

Kanaputs Kanaputs is an interpreter for Java. With Kanaputs you can use Java as an interpreted language: Java and you dont want to learn a new script language like PERL, KSH, CSH, but you need powerful scripting features like TCL/TK then Kanaputs fits

Tutorial Details:

Kanaputs allows to create Java objects and call methods on them. And when the Java class respects the Bean design pattern and especially the getter/setter convention, you can just use the object field directly and Kanaputs will call the getter or the setter transparently.

The grammar of the Kanaputs language is very close to the Java grammar. One big difference is that any variable handled by Kanaputs is type-less. There is no variable declaration nor type casting needed. Depending on the variable value, and where it is used, Kanaputs chooses the best internal Java basic type and tries the most appropriate type castings. When a variable handles a Java object, its type is the class of the Java object.

Another key feature of Kanaputs is the reactivity.. If the variable \'c\' was defined like this c = a + b; and if the reactivity of \'c\' is set (c.reactive = true;), each time the value of \'a\' or \'b\' changes then the value of \'c\' is updated as the result of the addition. When a variable is reactive, it listens to the other variables (or field of objects) in order to update its value The reactivity feature is very useful to manage Graphical User Interfaces by listening to any kind of event and consequently update variable values in a very simple way.


 

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
Kanaputs

View Tutorial:
Kanaputs

Related Tutorials:

Displaying 1 - 0 of about 0 Related Tutorials.

Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.