Class NewArrayBuilder


public class NewArrayBuilder extends ExpressionBuilderBase
Abstract syntax tree new array expression builder. This adds convenience methods and control information to the base builder.
  • Field Details

    • m_arrayCreation

      private final ArrayCreation m_arrayCreation
      Array creation expression.
  • Constructor Details

    • NewArrayBuilder

      public NewArrayBuilder(ClassBuilder source, ArrayCreation expr)
      Constructor.
      Parameters:
      source -
      expr -
  • Method Details

    • addOperand

      protected void addOperand(Expression operand)
      Add operand to expression. This just adds the supplied operand expression as a new initializer value.
      Specified by:
      addOperand in class ExpressionBuilderBase
      Parameters:
      operand -
    • setSize

      public void setSize(ExpressionBuilderBase size)
      Set the size of the array.
      Parameters:
      size -