Example #1
0
 public boolean visit(ClassDeclaration s) throws Exception {
   Map<String, String> parameters = createInitialParameters(s);
   parameters.put("name", s.getName());
   xmlWriter.startTag("ClassDeclaration", parameters);
   return true;
 }
Example #2
0
 /**
  *
  *
  * <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;
 }