Class PrologCompound
- java.lang.Object
-
- com.igormaznitsa.prologparser.terms.PrologTerm
-
- com.igormaznitsa.prologparser.terms.PrologCompound
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.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 Modifier and Type Field Description private static longserialVersionUID-
Fields inherited from class com.igormaznitsa.prologparser.terms.PrologTerm
quotation, text
-
-
Constructor Summary
Constructors Constructor Description PrologCompound(java.lang.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
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTermAt
public abstract PrologTerm getTermAt(int position)
Get element for its position- Parameters:
position- zero-based element position- Returns:
- element in position
-
-