Adding source for Java version of Visitor class