Class UnaryOperationNode

java.lang.Object
org.checkerframework.dataflow.cfg.node.Node
org.checkerframework.dataflow.cfg.node.UnaryOperationNode
All Implemented Interfaces:
org.plumelib.util.UniqueId
Direct Known Subclasses:
BitwiseComplementNode, ConditionalNotNode, NumericalMinusNode, NumericalPlusNode

public abstract class UnaryOperationNode extends Node
A node for a postfix or an unary expression.

For example:

   operator expressionNode

   expressionNode operator
 
  • Field Details

    • tree

      protected final UnaryTree tree
    • operand

      protected final Node operand
  • Constructor Details

    • UnaryOperationNode

      protected UnaryOperationNode(UnaryTree tree, Node operand)
  • Method Details

    • getOperand

      public Node getOperand()
    • getTree

      public UnaryTree getTree()
      Description copied from class: Node
      Returns the Tree in the abstract syntax tree, or null if no corresponding tree exists. For instance, this is the case for an ImplicitThisNode.
      Specified by:
      getTree in class Node
      Returns:
      the corresponding Tree or null
    • getOperands

      @SideEffectFree public Collection<Node> getOperands()
      Description copied from class: Node
      Returns a collection containing all of the operand Nodes of this Node.
      Specified by:
      getOperands in class Node
      Returns:
      a collection containing all of the operand Nodes of this Node