Class IrRegister

All Implemented Interfaces:
IrBoolExpr, IrExpr, IrIntExpr

public class IrRegister extends IrAbstractBool
Author:
jimmy
  • Constructor Details

  • Method Details

    • getVariable

      public IrVar getVariable()
    • isNegative

      public boolean isNegative()
      Description copied from interface: IrBoolExpr
      Is the expression in negative form. Expressions in negated form have their class names prefixed with "IrNot...", otherwise the expression is not negative.
      Returns:
      true if the expression is in negative form, false otherwise
    • negate

      public IrBoolExpr negate()
      Description copied from interface: IrBoolExpr
      The negated expression is true if and only if this expression is false.
      Returns:
      negated expression
    • accept

      public <A,B> B accept(IrBoolExprVisitor<A,B> visitor, A a)
      Description copied from interface: IrBoolExpr
      Dynamic dispatch on the visitor.
      Type Parameters:
      A - the parameter type
      B - the return type
      Parameters:
      visitor - the visitor
      a - the parameter
      Returns:
      the return value
    • accept

      public <A,B> B accept(IrIntExprVisitor<A,B> visitor, A a)
      Description copied from interface: IrIntExpr
      Dynamic dispatch on the visitor.
      Type Parameters:
      A - the parameter type
      B - the return type
      Parameters:
      visitor - the visitor
      a - the parameter
      Returns:
      the return value
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class IrAbstractBool
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class IrAbstractBool
    • toString

      public String toString()
      Overrides:
      toString in class Object