public boolean visit(ClassDeclaration s) throws Exception { Map<String, String> parameters = createInitialParameters(s); parameters.put("name", s.getName()); xmlWriter.startTag("ClassDeclaration", parameters); return true; }
/** * * * <pre> * ClassDeclaration : class BindingIdentifier ClassTail * ClassDeclaration : class ClassTail * </pre> */ @Override public List<Name> visit(ClassDeclaration node, List<Name> names) { names.add(node.getName()); return names; }