super(adapters);
}
@Override
public NameValuePair adapt(ElementValuePairContext context) {
NameValuePair values = createNode(context);
TerminalNode identifierNode = getTerminalNode(context, JavaParser.Identifier);
if (identifierNode != null) {
values.setName(getAdapter(IdentifierAdapter.class).adapt(identifierNode));
}
ElementValueContext elementValueContext = getChild(context, ElementValueContext.class);
if (elementValueContext != null) {
values.setValue(getAdapter(ElementValueAdapter.class).adapt(elementValueContext));
}
return values;
}