Class SMTExpr.Numeral

All Implemented Interfaces:
IAttributeValue, IExpr, IExpr.IIndex, IExpr.ILiteral, IExpr.INumeral, INode, IPos.IPosable, IResponse
Enclosing class:
SMTExpr

public static class SMTExpr.Numeral extends SMTExpr.Literal<BigInteger> implements IExpr.INumeral
This class represents an SMT Numeral expression or syntax token
  • Field Details

    • number

      protected int number
      A value equivalent to the BigInteger, when it is in range.
  • Constructor Details

    • Numeral

      public Numeral(BigInteger i)
      Constructs a Numeral with the given value.
    • Numeral

      public Numeral(int i)
      Constructs a Numeral with the given value.
  • Method Details

    • intValue

      public int intValue()
      Specified by:
      intValue in interface IExpr.INumeral
    • equals

      public boolean equals(Object o)
      Equal to any INumeral with the same numeric value
      Overrides:
      equals in class Pos.Posable
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Pos.Posable
    • accept

      public <T> T accept(IVisitor<T> v) throws IVisitor.VisitorException
      Description copied from interface: INode
      The accept method corresponding to IVisitor, to be implemented in each subclass as { return v.visit(this); }
      Specified by:
      accept in interface INode
      Type Parameters:
      T - the return type desired from the visit methods
      Parameters:
      v - the visitor class
      Returns:
      the value returned by the visit method
      Throws:
      IVisitor.VisitorException