{
enumConstant.arguments().clear();
if (literalArguments != null && literalArguments.length > 0)
{
final String stub = "public enum Stub { FOO(" + Strings.join(Arrays.asList(literalArguments), ", ") + "); }";
final JavaEnumSource temp = JavaParser.parse(JavaEnumSource.class, stub);
final List<EnumConstantSource> constants = temp.getEnumConstants();
final EnumConstantDeclaration newConstant = (EnumConstantDeclaration) constants.get(0).getInternal();
final List<Expression> arguments = newConstant.arguments();
for (Expression argument : arguments)
{
final Expression subtree = (Expression) ASTNode.copySubtree(ast, argument);