Class PlainJArrayExpr

    • Field Detail

      • members

        private java.util.ArrayList<JExpr> members
    • Constructor Detail

      • PlainJArrayExpr

        PlainJArrayExpr()
      • PlainJArrayExpr

        PlainJArrayExpr​(JExpr... members)
    • Method Detail

      • add

        public JArrayExpr add​(JExpr value)
        Description copied from interface: JArrayExpr
        Add an element to this array. Returns this array.
        Specified by:
        add in interface JArrayExpr
        Parameters:
        value - the value to add
        Returns:
        this array expression
      • elementCount

        public int elementCount()
        Description copied from interface: JArrayExpr
        Get the current number of elements added to this array.
        Specified by:
        elementCount in interface JArrayExpr
        Returns:
        the number of elements
      • write

        public void write​(SourceFileWriter writer)
                   throws java.io.IOException
        Specified by:
        write in interface Writable
        Throws:
        java.io.IOException