Class PrologNumeric

    • Constructor Detail

      • PrologNumeric

        public PrologNumeric()
      • PrologNumeric

        public PrologNumeric​(int line,
                             int pos)
    • Method Detail

      • getNumber

        public abstract java.lang.Number getNumber()
        Get numeric representation of the saved number.
        Returns:
        the saved number
      • getType

        public final TermType getType()
        Description copied from class: PrologTerm
        Get term type.
        Specified by:
        getType in class PrologTerm
        Returns:
        term type, must not be null
      • getText

        public java.lang.String getText()
        Description copied from class: PrologTerm
        Get the term text.
        Overrides:
        getText in class PrologTerm
        Returns:
        the term text, must not be null
      • isNegative

        public abstract boolean isNegative()
        Check that the number is negative one
        Returns:
        true if the number is negative one, false otherwise
      • makeNeg

        public abstract PrologNumeric makeNeg()
        Make negative representation of the numeric term
        Returns:
        the negative variant of the numeric