Class J.InstanceOf

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

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

    • InstanceOf

      public InstanceOf()
  • Method Details

    • getExpression

      public Expression getExpression()
    • withExpression

      public J.InstanceOf withExpression(Expression expression)
    • acceptJava

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

      public String toString()
      Overrides:
      toString in class Object
    • 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.InstanceOf.Padding getPadding()