Class AbstractJAssignableExpr

java.lang.Object
org.jboss.jdeparser.AbstractJExpr
org.jboss.jdeparser.AbstractJAssignableExpr
All Implemented Interfaces:
JAssignableExpr, JCommentable, JExpr, JStatement, Writable
Direct Known Subclasses:
ArrayLookupJExpr, FieldRefJExpr, NameJExpr, StaticRefJExpr

abstract class AbstractJAssignableExpr extends AbstractJExpr implements JAssignableExpr
  • Field Details

  • Constructor Details

    • AbstractJAssignableExpr

      protected AbstractJAssignableExpr(int prec)
  • Method Details

    • preDec

      public JExpr preDec()
      Description copied from interface: JAssignableExpr
      Apply the prefix -- operator to this expression.
      Specified by:
      preDec in interface JAssignableExpr
      Returns:
      the new expression
    • preInc

      public JExpr preInc()
      Description copied from interface: JAssignableExpr
      Apply the prefix ++ operator to this expression.
      Specified by:
      preInc in interface JAssignableExpr
      Returns:
      the new expression
    • postDec

      public JExpr postDec()
      Description copied from interface: JAssignableExpr
      Apply the postfix -- operator to this expression.
      Specified by:
      postDec in interface JAssignableExpr
      Returns:
      the new expression
    • postInc

      public JExpr postInc()
      Description copied from interface: JAssignableExpr
      Apply the postfix ++ operator to this expression.
      Specified by:
      postInc in interface JAssignableExpr
      Returns:
      the new expression
    • shlAssign

      public JExpr shlAssign(JExpr e1)
      Description copied from interface: JAssignableExpr
      Combine this expression with another using the binary <<= operator.
      Specified by:
      shlAssign in interface JAssignableExpr
      Parameters:
      e1 - the other expression
      Returns:
      the combined expression
    • lshrAssign

      public JExpr lshrAssign(JExpr e1)
      Description copied from interface: JAssignableExpr
      Combine this expression with another using the binary >>>= operator.
      Specified by:
      lshrAssign in interface JAssignableExpr
      Parameters:
      e1 - the other expression
      Returns:
      the combined expression
    • shrAssign

      public JExpr shrAssign(JExpr e1)
      Description copied from interface: JAssignableExpr
      Combine this expression with another using the binary >>= operator.
      Specified by:
      shrAssign in interface JAssignableExpr
      Parameters:
      e1 - the other expression
      Returns:
      the combined expression
    • xorAssign

      public JExpr xorAssign(JExpr e1)
      Description copied from interface: JAssignableExpr
      Combine this expression with another using the binary ^= operator.
      Specified by:
      xorAssign in interface JAssignableExpr
      Parameters:
      e1 - the other expression
      Returns:
      the combined expression
    • orAssign

      public JExpr orAssign(JExpr e1)
      Description copied from interface: JAssignableExpr
      Combine this expression with another using the binary |= operator.
      Specified by:
      orAssign in interface JAssignableExpr
      Parameters:
      e1 - the other expression
      Returns:
      the combined expression
    • andAssign

      public JExpr andAssign(JExpr e1)
      Description copied from interface: JAssignableExpr
      Combine this expression with another using the binary &= operator.
      Specified by:
      andAssign in interface JAssignableExpr
      Parameters:
      e1 - the other expression
      Returns:
      the combined expression
    • modAssign

      public JExpr modAssign(JExpr e1)
      Description copied from interface: JAssignableExpr
      Combine this expression with another using the binary %= operator.
      Specified by:
      modAssign in interface JAssignableExpr
      Parameters:
      e1 - the other expression
      Returns:
      the combined expression
    • divAssign

      public JExpr divAssign(JExpr e1)
      Description copied from interface: JAssignableExpr
      Combine this expression with another using the binary /= operator.
      Specified by:
      divAssign in interface JAssignableExpr
      Parameters:
      e1 - the other expression
      Returns:
      the combined expression
    • mulAssign

      public JExpr mulAssign(JExpr e1)
      Description copied from interface: JAssignableExpr
      Combine this expression with another using the binary *= operator.
      Specified by:
      mulAssign in interface JAssignableExpr
      Parameters:
      e1 - the other expression
      Returns:
      the combined expression
    • subAssign

      public JExpr subAssign(JExpr e1)
      Description copied from interface: JAssignableExpr
      Combine this expression with another using the binary -= operator.
      Specified by:
      subAssign in interface JAssignableExpr
      Parameters:
      e1 - the other expression
      Returns:
      the combined expression
    • addAssign

      public JExpr addAssign(JExpr e1)
      Description copied from interface: JAssignableExpr
      Combine this expression with another using the binary += operator.
      Specified by:
      addAssign in interface JAssignableExpr
      Parameters:
      e1 - the other expression
      Returns:
      the combined expression
    • assign

      public JExpr assign(JExpr e1)
      Description copied from interface: JAssignableExpr
      Combine this expression with another using the binary = operator.
      Specified by:
      assign in interface JAssignableExpr
      Parameters:
      e1 - the other expression
      Returns:
      the combined expression
    • commentable

      private BasicJCommentable commentable()
    • lineComment

      public JComment lineComment()
      Description copied from interface: JCommentable
      Add a line comment.
      Specified by:
      lineComment in interface JCommentable
      Returns:
      the line comment body
    • blockComment

      public JComment blockComment()
      Description copied from interface: JCommentable
      Add a block comment.
      Specified by:
      blockComment in interface JCommentable
      Returns:
      the block comment body