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 Detail

      • m_arrayCreation

        private final ArrayCreation m_arrayCreation
        Array creation expression.
    • Constructor Detail

      • NewArrayBuilder

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

      • 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 -