Class PrologVar
- java.lang.Object
-
- com.igormaznitsa.prologparser.terms.PrologTerm
-
- com.igormaznitsa.prologparser.terms.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 Summary
Fields Modifier and Type Field Description private booleananonymousprivate static longserialVersionUID-
Fields inherited from class com.igormaznitsa.prologparser.terms.PrologTerm
quotation, text
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TermTypegetType()Get term type.booleanisAnonymous()Check 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 Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
anonymous
private final boolean anonymous
-
-
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:PrologTermGet term type.- Specified by:
getTypein classPrologTerm- Returns:
- term type, must not be null
-
-