java.lang.Object
de.fraunhofer.aisec.cpg.graph.Node
All Implemented Interfaces:
DeclarationHolder, HasType, HasType.TypeListener, Persistable, IVisitable<de.fraunhofer.aisec.cpg.graph.Node>

public class UnaryOperator
extends Expression
implements HasType.TypeListener
A unary operator expression, involving one expression and an operator, such as a++.
  • Field Details

    • OPERATOR_POSTFIX_INCREMENT

      public static final java.lang.String OPERATOR_POSTFIX_INCREMENT
      See Also:
      Constant Field Values
    • OPERATOR_POSTFIX_DECREMENT

      public static final java.lang.String OPERATOR_POSTFIX_DECREMENT
      See Also:
      Constant Field Values
  • Constructor Details

    • UnaryOperator

      public UnaryOperator()
  • Method Details

    • getInput

      public Expression getInput()
    • setInput

      public void setInput​(Expression input)
    • getOperatorCode

      public java.lang.String getOperatorCode()
    • setOperatorCode

      public void setOperatorCode​(java.lang.String operatorCode)
    • isPostfix

      public boolean isPostfix()
    • setPostfix

      public void setPostfix​(boolean postfix)
    • isPrefix

      public boolean isPrefix()
    • setPrefix

      public void setPrefix​(boolean prefix)
    • typeChanged

      public void typeChanged​(HasType src, java.util.Collection<HasType> root, Type oldType)
      Specified by:
      typeChanged in interface HasType.TypeListener
    • possibleSubTypesChanged

      public void possibleSubTypesChanged​(HasType src, java.util.Collection<HasType> root, java.util.Set<Type> oldSubTypes)
      Specified by:
      possibleSubTypesChanged in interface HasType.TypeListener
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class Expression
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class Expression
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Expression