1 // Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
2 package org.jetbrains.java.decompiler.modules.decompiler;
4 import org.jetbrains.java.decompiler.modules.decompiler.exps.Exprent;
6 import java.util.ArrayList;
9 public class PrimitiveExpressionList {
10 private final List<Exprent> expressions = new ArrayList<>();
11 private final ExpressionStack stack;
13 public PrimitiveExpressionList() {
14 this(new ExpressionStack());
17 private PrimitiveExpressionList(ExpressionStack stack) {
21 public PrimitiveExpressionList copy() {
22 return new PrimitiveExpressionList(stack.copy());
25 public List<Exprent> getExpressions() {
29 public ExpressionStack getStack() {