Class J.Binary

java.lang.Object
org.openrewrite.java.tree.J.Binary
All Implemented Interfaces:
Expression, J, TypedTree, org.openrewrite.Tree
Enclosing interface:
J

public static final class J.Binary extends Object implements J, Expression, TypedTree
  • Constructor Details

    • Binary

      public Binary()
  • Method Details

    • getOperator

      public J.Binary.Type getOperator()
    • withOperator

      public J.Binary withOperator(J.Binary.Type operator)
    • acceptJava

      public <P> J acceptJava(JavaVisitor<P> v, P p)
      Specified by:
      acceptJava in interface J
    • getCoordinates

      public CoordinateBuilder.Expression getCoordinates()
      Specified by:
      getCoordinates in interface Expression
    • getSideEffects

      public List<J> getSideEffects()
      Specified by:
      getSideEffects in interface Expression
      Returns:
      A list of the side effects emitted by the statement, if the statement was decomposed. So for a binary operation, there are up to two potential side effects (the left and right side) and as few as zero if both sides of the expression are something like constants or variable references.
    • getPadding

      public J.Binary.Padding getPadding()
    • toString

      public String toString()
      Overrides:
      toString in class Object