super(adapters);
}
@Override
public LocalVariableDeclaration adapt(LocalVariableDeclarationContext context) {
LocalVariableDeclaration localVariableDeclaration = createNode(context);
setModifiers(context, localVariableDeclaration);
TypeContext typeContext = getChild(context, TypeContext.class);
if (typeContext != null) {
localVariableDeclaration.setType(getAdapter(TypeAdapter.class).adapt(typeContext));
}
VariableDeclaratorsContext variableDeclaratorsContext =
getChild(context, VariableDeclaratorsContext.class);
if (variableDeclaratorsContext != null) {
localVariableDeclaration.setVariableDeclarations(
getAdapter(VariableDeclaratorsAdapter.class).adapt(variableDeclaratorsContext,
localVariableDeclaration.getType(), typeContext));
}
return localVariableDeclaration;
}