@Override
public ClassDeclaration adapt(ClassDeclarationContext context) {
ClassDeclaration classDeclaration = createNode(context);
Identifier name =
transformOne(context, TerminalNode.class, new Function<TerminalNode, Identifier>() {
@Override
public Identifier apply(TerminalNode node) {
if (node.getSymbol().getType() == JavaParser.Identifier) {
return getAdapter(IdentifierAdapter.class).adapt(node);