Class UnaryOperation

java.lang.Object
org.checkerframework.dataflow.expression.JavaExpression
org.checkerframework.dataflow.expression.UnaryOperation

public class UnaryOperation extends JavaExpression
JavaExpression for unary operations.
  • Field Details

    • operationKind

      protected final Tree.Kind operationKind
      The unary operation kind.
    • operand

      protected final JavaExpression operand
      The operand.
  • Constructor Details

    • UnaryOperation

      public UnaryOperation(TypeMirror type, Tree.Kind operationKind, JavaExpression operand)
      Create a unary operation.
      Parameters:
      type - the type of the result
      operationKind - the operator
      operand - the operand
    • UnaryOperation

      public UnaryOperation(UnaryOperationNode node, JavaExpression operand)
      Create a unary operation.
      Parameters:
      node - the unary operation node
      operand - the operand
  • Method Details