Class CompareMethodBasedLogicalBinaryExpression

java.lang.Object
com.strobel.expressions.Expression
com.strobel.expressions.BinaryExpression
com.strobel.expressions.CompareMethodBasedLogicalBinaryExpression

final class CompareMethodBasedLogicalBinaryExpression extends BinaryExpression
  • Field Details

  • Constructor Details

  • Method Details

    • getType

      public final Type<?> getType()
      Description copied from class: Expression
      Gets the static type of the expression that this Expression represents.
      Overrides:
      getType in class Expression
      Returns:
      the Type that represents the static type of the expression.
    • getNodeType

      public final ExpressionType getNodeType()
      Description copied from class: Expression
      Returns the node type of this Expression.
      Overrides:
      getNodeType in class Expression
      Returns:
      the ExpressionType that represents this expression.
    • getMethod

      public final MethodInfo getMethod()
      Overrides:
      getMethod in class BinaryExpression
    • reduce

      public final Expression reduce()
      Description copied from class: Expression
      Reduces this node to a simpler expression. If canReduce() returns true, this should return a valid expression. This method is allowed to return another node which itself must be reduced.
      Overrides:
      reduce in class BinaryExpression
      Returns:
      the reduced expression.
    • canReduce

      public final boolean canReduce()
      Description copied from class: Expression
      Indicates that the node can be reduced to a simpler node. If this returns true, reduce() can be called to produce the reduced form.
      Overrides:
      canReduce in class BinaryExpression
      Returns:
      true if the node can be reduced; otherwise, false.