Class IntegerConstant


public class IntegerConstant extends Constant
This class encapsulates an integer as a term.
Author:
Matthias Thimm
  • Constructor Details

    • IntegerConstant

      public IntegerConstant(int i)
      Creates a new Integer.
      Parameters:
      i - an int.
  • Method Details

    • getValue

      public int getValue()
      Get the value of this integer.
      Returns:
      the value of this integer.
    • isInteger

      public boolean isInteger()
      Description copied from class: Term
      Checks whether this term represents an integer value.
      Specified by:
      isInteger in class Term
      Returns:
      "true" iff this term represents an integer value.
    • toString

      public String toString()
      Specified by:
      toString in class Term