- java.lang.Object
-
- com.igormaznitsa.prologparser.terms.PrologTerm
-
- com.igormaznitsa.prologparser.terms.PrologCompound
-
- All Implemented Interfaces:
Serializable,Comparable<PrologTerm>
- Direct Known Subclasses:
InternalSpecialCompoundTerm,PrologStruct
public abstract class PrologCompound extends PrologTerm
Abstract class for all compound prolog terms.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.igormaznitsa.prologparser.terms.PrologTerm
quotation, text
-
-
Constructor Summary
Constructors Constructor Description PrologCompound(String text)
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract PrologTermgetTermAt(int position)Get element for its position-
Methods inherited from class com.igormaznitsa.prologparser.terms.PrologTerm
assertNonEmptyString, compareTo, findQuotation, flatComma, getArity, getFunctor, getLine, getPos, getPrecedence, getQuotation, getText, getType, isAnyBlock, isBlock, isCurlyBlock, setLine, setPos, stream, toString
-
-
-
-
Constructor Detail
-
PrologCompound
public PrologCompound(String text)
-
-
Method Detail
-
getTermAt
public abstract PrologTerm getTermAt(int position)
Get element for its position- Parameters:
position- zero-based element position- Returns:
- element in position
-
-