Class SMTExpr.Decimal

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

public static class SMTExpr.Decimal extends SMTExpr.Literal<BigDecimal> implements IExpr.IDecimal
This class represents an SMT Decimal literal expression or syntax token
  • Constructor Details

    • Decimal

      public Decimal(BigDecimal v)
      Creates a Decimal literal with the given value.
  • Method Details

    • equals

      public boolean equals(Object o)
      Equal to any IDecimal with the same BigDecimal 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