Module igormaznitsa.prolog.parser
Class InternalSpecialCompoundTerm
- java.lang.Object
-
- com.igormaznitsa.prologparser.terms.PrologTerm
-
- com.igormaznitsa.prologparser.terms.PrologCompound
-
- com.igormaznitsa.prologparser.terms.InternalSpecialCompoundTerm
-
- All Implemented Interfaces:
Serializable,Comparable<PrologTerm>
- Direct Known Subclasses:
OpContainer,TermWrapper
public abstract class InternalSpecialCompoundTerm extends PrologCompound
Base class for special service terms for use on level of parser.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.igormaznitsa.prologparser.terms.PrologTerm
quotation, text
-
-
Constructor Summary
Constructors Constructor Description InternalSpecialCompoundTerm(String text)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(PrologTerm that)PrologTermgetTermAt(int position)Get element for its positionStream<PrologTerm>stream()-
Methods inherited from class com.igormaznitsa.prologparser.terms.PrologTerm
assertNonEmptyString, findQuotation, flatComma, getArity, getFunctor, getLine, getPos, getPrecedence, getQuotation, getText, getType, isAnyBlock, isBlock, isCurlyBlock, setLine, setPos, toString
-
-
-
-
Constructor Detail
-
InternalSpecialCompoundTerm
public InternalSpecialCompoundTerm(String text)
-
-
Method Detail
-
getTermAt
public PrologTerm getTermAt(int position)
Description copied from class:PrologCompoundGet element for its position- Specified by:
getTermAtin classPrologCompound- Parameters:
position- zero-based element position- Returns:
- element in position
-
stream
public final Stream<PrologTerm> stream()
- Overrides:
streamin classPrologTerm
-
compareTo
public final int compareTo(PrologTerm that)
- Specified by:
compareToin interfaceComparable<PrologTerm>- Overrides:
compareToin classPrologTerm
-
-