diff options
author | 2018-02-20 07:06:05 -0800 | |
---|---|---|
committer | 2018-02-20 07:08:30 -0800 | |
commit | bf6c267744db3693c639d3c2a18d17776f7710e6 (patch) | |
tree | 770cbbe3dc8a183d50d4068ff8325305add2e3a6 | |
parent | 97704eac7c5147c8c5fb9d02638c7d1c136b3b9f (diff) |
Improve some of the names in CommandLine.
PiperOrigin-RevId: 186298405
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/actions/CommandLine.java | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/actions/CommandLine.java b/src/main/java/com/google/devtools/build/lib/actions/CommandLine.java index dcf1006ec5..f14af972df 100644 --- a/src/main/java/com/google/devtools/build/lib/actions/CommandLine.java +++ b/src/main/java/com/google/devtools/build/lib/actions/CommandLine.java @@ -69,13 +69,13 @@ public abstract class CommandLine { @AutoCodec @VisibleForSerialization - static class ArgumentCommandLine extends CommandLine { - public static final ObjectCodec<ArgumentCommandLine> CODEC = - new CommandLine_ArgumentCommandLine_AutoCodec(); + static class SimpleCommandLine extends CommandLine { + public static final ObjectCodec<SimpleCommandLine> CODEC = + new CommandLine_SimpleCommandLine_AutoCodec(); private Iterable<String> args; - ArgumentCommandLine(Iterable<String> args) { + SimpleCommandLine(Iterable<String> args) { this.args = args; } @@ -88,20 +88,20 @@ public abstract class CommandLine { /** Returns a {@link CommandLine} backed by a copy of the given list of arguments. */ public static CommandLine of(Iterable<String> arguments) { final Iterable<String> immutableArguments = CollectionUtils.makeImmutable(arguments); - return new ArgumentCommandLine(immutableArguments); + return new SimpleCommandLine(immutableArguments); } @AutoCodec @VisibleForSerialization - static class ConcatenatedCommandLine extends CommandLine { - public static final ObjectCodec<ConcatenatedCommandLine> CODEC = - new CommandLine_ConcatenatedCommandLine_AutoCodec(); + static class PrefixedCommandLine extends CommandLine { + public static final ObjectCodec<PrefixedCommandLine> CODEC = + new CommandLine_PrefixedCommandLine_AutoCodec(); private ImmutableList<String> executableArgs; private CommandLine commandLine; @VisibleForSerialization - ConcatenatedCommandLine(ImmutableList<String> executableArgs, CommandLine commandLine) { + PrefixedCommandLine(ImmutableList<String> executableArgs, CommandLine commandLine) { this.executableArgs = executableArgs; this.commandLine = commandLine; } @@ -127,20 +127,20 @@ public abstract class CommandLine { if (executableArgs.isEmpty()) { return commandLine; } - return new ConcatenatedCommandLine(executableArgs, commandLine); + return new PrefixedCommandLine(executableArgs, commandLine); } @AutoCodec @VisibleForSerialization - static class ReverseConcatenatedCommandLine extends CommandLine { - public static final ObjectCodec<ReverseConcatenatedCommandLine> CODEC = - new CommandLine_ReverseConcatenatedCommandLine_AutoCodec(); + static class SuffixedCommandLine extends CommandLine { + public static final ObjectCodec<SuffixedCommandLine> CODEC = + new CommandLine_SuffixedCommandLine_AutoCodec(); private ImmutableList<String> executableArgs; private CommandLine commandLine; @VisibleForSerialization - ReverseConcatenatedCommandLine(ImmutableList<String> executableArgs, CommandLine commandLine) { + SuffixedCommandLine(ImmutableList<String> executableArgs, CommandLine commandLine) { this.executableArgs = executableArgs; this.commandLine = commandLine; } @@ -166,7 +166,7 @@ public abstract class CommandLine { if (args.isEmpty()) { return commandLine; } - return new ReverseConcatenatedCommandLine(args, commandLine); + return new SuffixedCommandLine(args, commandLine); } /** |