KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > tests > jfun > yan > xml > nuts > Util


1 package tests.jfun.yan.xml.nuts;
2
3 import jfun.yan.Component;
4 import jfun.yan.Mutation;
5
6 final class Util {
7   static Component decorate(boolean echo, Component c, final Listener l){
8     if(!echo) return c;
9     return c.mutate(new Mutation(){
10       public void mutate(Object JavaDoc obj){
11         l.onInstance(obj);
12       }
13     });
14   }
15 }
16
Popular Tags