Class Term.ConstS

Enclosing class:
Term

public static class Term.ConstS extends Term.Const
  • Constructor Details

    • ConstS

      public ConstS(String value)
  • Method Details

    • getValue

      public String 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
    • toS

      protected String toS()
      Specified by:
      toS 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.