aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/syntax/compiler/ByteCodeMethodCalls.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/syntax/compiler/ByteCodeMethodCalls.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/syntax/compiler/ByteCodeMethodCalls.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/syntax/compiler/ByteCodeMethodCalls.java b/src/main/java/com/google/devtools/build/lib/syntax/compiler/ByteCodeMethodCalls.java
index b93fe3856d..a699a17d46 100644
--- a/src/main/java/com/google/devtools/build/lib/syntax/compiler/ByteCodeMethodCalls.java
+++ b/src/main/java/com/google/devtools/build/lib/syntax/compiler/ByteCodeMethodCalls.java
@@ -13,6 +13,8 @@
// limitations under the License.
package com.google.devtools.build.lib.syntax.compiler;
+import com.google.common.collect.ImmutableList;
+
import net.bytebuddy.implementation.bytecode.StackManipulation;
/**
@@ -26,6 +28,25 @@ import net.bytebuddy.implementation.bytecode.StackManipulation;
public class ByteCodeMethodCalls {
/**
+ * Byte code invocations for {@link ImmutableList}.
+ */
+ public static class BCImmutableList {
+ public static final StackManipulation builder =
+ ByteCodeUtils.invoke(ImmutableList.class, "builder");
+
+ /**
+ * Byte code invocations for {@link ImmutableList.Builder}.
+ */
+ public static class Builder {
+ public static final StackManipulation build =
+ ByteCodeUtils.invoke(ImmutableList.Builder.class, "build");
+
+ public static final StackManipulation add =
+ ByteCodeUtils.invoke(ImmutableList.Builder.class, "add", Object.class);
+ }
+ }
+
+ /**
* Byte code invocations for {@link Integer}.
*/
public static class BCInteger {