Class Term.ConstI

  • Enclosing class:
    Term

    public static final class Term.ConstI
    extends Term.Const
    An integer constant, e.g. 6325 or 054 (octal) or 0x49AF (hex).
    • Constructor Detail

      • ConstI

        public ConstI​(int value)
    • Method Detail

      • lookup

        public static Term.ConstI lookup​(int value)
      • getValue

        public int getValue()
      • getRetType

        public int getRetType()
        Description copied from class: Term
        Gets the term's "natural" return type.
        Specified by:
        getRetType in class Term
        Returns:
        the type, should always be one of the TYPE_X constants defined in this class.
      • toB

        protected boolean toB()
        Specified by:
        toB in class Term.Const
      • toI

        protected int toI()
        Specified by:
        toI in class Term.Const
      • toD

        protected double toD()
        Specified by:
        toD in class Term.Const
      • toString

        public String toString()
        Description copied from class: Term
        Returns a string representation of this term which can be used for debugging.
        Specified by:
        toString in class Term
      • accept

        public <T> T accept​(TermVisitor<T> visitor)
        Description copied from class: Term
        Visitor support.
        Specified by:
        accept in class Term
        Parameters:
        visitor - A visitor.