Class PrologAtom
java.lang.Object
com.igormaznitsa.prologparser.terms.PrologTerm
com.igormaznitsa.prologparser.terms.PrologAtom
- All Implemented Interfaces:
Serializable, Comparable<PrologTerm>
-
Field Summary
FieldsFields inherited from class PrologTerm
quotation, text -
Constructor Summary
ConstructorsConstructorDescriptionPrologAtom(PrologTerm term) PrologAtom(String text) PrologAtom(String text, int line, int pos) PrologAtom(String text, Quotation quotingType) PrologAtom(String text, Quotation quotingType, int line, int pos) -
Method Summary
Modifier and TypeMethodDescriptionintGet precedence of the term.Get quotation for the term.getType()Get term type.Methods inherited from class PrologTerm
assertNonEmptyString, compareTo, findQuotation, flatComma, getArity, getFunctor, getLine, getPos, getText, isAnyBlock, isBlock, isCurlyBlock, setLine, setPos, stream, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
PrologAtom
-
PrologAtom
-
PrologAtom
-
PrologAtom
-
PrologAtom
-
-
Method Details
-
getQuotation
Description copied from class:PrologTermGet quotation for the term.- Overrides:
getQuotationin classPrologTerm- Returns:
- the quotation for the term, must not be null
-
getType
Description copied from class:PrologTermGet term type.- Specified by:
getTypein classPrologTerm- Returns:
- term type, must not be null
-
getPrecedence
public int getPrecedence()Description copied from class:PrologTermGet precedence of the term.- Overrides:
getPrecedencein classPrologTerm- Returns:
- precedence, must not be negative
-