Class InternalSpecialCompoundTerm
- java.lang.Object
-
- com.igormaznitsa.prologparser.terms.PrologTerm
-
- com.igormaznitsa.prologparser.terms.PrologCompound
-
- com.igormaznitsa.prologparser.terms.InternalSpecialCompoundTerm
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.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 Modifier and Type Field Description private static longserialVersionUID-
Fields inherited from class com.igormaznitsa.prologparser.terms.PrologTerm
quotation, text
-
-
Constructor Summary
Constructors Constructor Description InternalSpecialCompoundTerm(java.lang.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 positionjava.util.stream.Stream<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
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
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 java.util.stream.Stream<PrologTerm> stream()
- Overrides:
streamin classPrologTerm
-
compareTo
public final int compareTo(PrologTerm that)
- Specified by:
compareToin interfacejava.lang.Comparable<PrologTerm>- Overrides:
compareToin classPrologTerm
-
-