Class PrologVar

java.lang.Object
com.igormaznitsa.prologparser.terms.PrologTerm
com.igormaznitsa.prologparser.terms.PrologVar
All Implemented Interfaces:
Serializable, Comparable<PrologTerm>

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

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • anonymous

      private final boolean anonymous
  • Constructor Details

    • PrologVar

      public PrologVar()
      Constructor of anonymous variable.
    • PrologVar

      public PrologVar(int line, int pos)
    • PrologVar

      public PrologVar(String text)
    • PrologVar

      public PrologVar(String text, int line, int pos)
  • Method Details

    • 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