A Forth word corresponds to a static class method.
: myword ( -- ) ... ;
The definer i: creates dynamic instance words, which are related to an object.
i: start ( -- ) ;
The methods are public by default. You can attach all Java method attributes to HolonJ words.
private : myword ( -- ) ... ;
The identifier (name) may contain a prefix, which is used by HolonJ but does not appear in the class file. This is necessary because Holon requires unique names.
Example: The <init> method of the class view is called view.<init> in HolonJ. The method has the name <init> in the class file. <init> is used in other classes as well.
If a word belongs to a different class of the same application, i.e. if the word is in another module in the Holon source browser, HolonJ creates the corresponding external method reference.
Methods in external packages are imported. The external method is then represented by a local word.
1998-2013 Wolf Wejgaard