If you need to use pattern matching on Java object instances, the following post run's you through the process, using Tom as the underlying pattern matching compiler. Read the full post on pattern matching Java objects using Tom: http://langexplr.blogspot.com/2008/04/pattern-matching-on-java-objects-with.html