super(adapters);
}
@Override
public QualifiedName adapt(QualifiedNameContext context) {
QualifiedName qualifiedName = createNode(context);
List<Identifier> identifiers =
transform(context, TerminalNode.class, new Function<TerminalNode, Identifier>() {
@Override
public Identifier apply(TerminalNode input) {
if (input.getSymbol().getType() == JavaParser.DOT) {
return null;
} else {
return getAdapter(IdentifierAdapter.class).adapt(input);
}
}
});
qualifiedName.setIdentifiers(identifiers);
return qualifiedName;
}