Class PrologVar
java.lang.Object
com.igormaznitsa.prologparser.terms.PrologTerm
com.igormaznitsa.prologparser.terms.PrologVar
- All Implemented Interfaces:
Serializable,Comparable<PrologTerm>
Representation of prolog variable.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate static final longFields inherited from class com.igormaznitsa.prologparser.terms.PrologTerm
quotation, text -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetType()Get term type.booleanCheck that the variable anonymous one.Methods inherited from class com.igormaznitsa.prologparser.terms.PrologTerm
assertNonEmptyString, compareTo, findQuotation, flatComma, getArity, getFunctor, getLine, getPos, getPrecedence, getQuotation, getText, isAnyBlock, isBlock, isCurlyBlock, setLine, setPos, stream, toString
-
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
-
PrologVar
-
-
Method Details
-
isAnonymous
public boolean isAnonymous()Check that the variable anonymous one.- Returns:
- true if the variable is anonymous one, false otherwise
-
getType
Description copied from class:PrologTermGet term type.- Specified by:
getTypein classPrologTerm- Returns:
- term type, must not be null
-