Class PrologVar

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<PrologTerm>

    public final class PrologVar
    extends PrologTerm
    Representation of prolog variable.
    See Also:
    Serialized Form
    • Field Detail

      • anonymous

        private final boolean anonymous
    • Constructor Detail

      • PrologVar

        public PrologVar()
        Constructor of anonymous variable.
      • PrologVar

        public PrologVar​(int line,
                         int pos)
      • PrologVar

        public PrologVar​(java.lang.String text)
      • PrologVar

        public PrologVar​(java.lang.String text,
                         int line,
                         int pos)
    • Method Detail

      • isAnonymous

        public boolean isAnonymous()
        Check that the variable anonymous one.
        Returns:
        true if the variable is anonymous one, false otherwise
      • getType

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