Next: Statement Block Symbols, Previous: Objective-C Method Symbols, Up: Syntactic Symbols
Java has a concept of anonymous classes which can look something like this:
1: public void watch(Observable o) {
2: o.addObserver(new Observer() {
3: public void update(Observable o, Object arg) {
4: history.addElement(arg);
5: }
6: });
7: }
The brace following the new operator opens the anonymous class.
Lines 3 and 6 are assigned the inexpr-class syntax, besides the
inclass symbol used in normal classes. Thus, the class will be
indented just like a normal class, with the added indentation given to
inexpr-class. An inexpr-class syntactic element doesn't
have an anchor position.