Class PlainJArrayExpr

java.lang.Object
org.jboss.jdeparser.AbstractJExpr
org.jboss.jdeparser.PlainJArrayExpr
All Implemented Interfaces:
JArrayExpr, JExpr, Writable
Direct Known Subclasses:
NewUndimJArrayExpr

class PlainJArrayExpr extends AbstractJExpr implements JArrayExpr
  • Field Details

  • Constructor Details

    • PlainJArrayExpr

      PlainJArrayExpr()
    • PlainJArrayExpr

      PlainJArrayExpr(JExpr... members)
  • Method Details

    • 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 IOException
      Specified by:
      write in interface Writable
      Throws:
      IOException