Interface TermCompound
- All Known Subinterfaces:
Atom, ComputedAtom, CSVCopyable, DatalogDelegable, EvaluableFunction, FactBase, FOFormula, FOFormulaConjunction, FOFormulaDisjunction, FOFormulaNegation, LogicalFunctionalTerm, MaterializedData, MaterializedDataCollection<T>, MaterializedWritableDataCollection<Q,W>, SpecializableLogicalFunctionalTerm, TermSequenceCompound
- All Known Implementing Classes:
AbstractLogicalFunctionalTermImpl, AtomImpl, CompoundFOFormula, ComputedAtomImpl, DefaultInMemoryAtomSet, EvaluableFunctionImpl, FactBaseDelAtomsWrapper, FederatedFactBase, FOConjunctionFactBaseWrapper, FOConjunctionImpl, FODisjunctionImpl, FONegationImpl, GroundFunctionalTermImpl, LightInMemoryGraphStore, RDBMSStore, SimpleInMemoryGraphStore, SpecializableLogicalFunctionalTermImpl, TripleStoreStore
public interface TermCompound
Represents an object composed of a terms' sequence
This is useful for defining the common behavior of objects that contain a sequence of terms (like atom or functional
terms)
- Author:
- Guillaume Pérution-Kihli
-
Method Summary
Modifier and TypeMethodDescriptionStreams all nested terms contained in this object.Recursively list all constantsRecursively list all literalsgetNestedTerms(Class<T> classType) Returns all nested terms filtered by the supplied type.getTerms()Streams the first-level terms contained in this object.Recursively list all variables
-
Method Details
-
getTerms
-
getVariables
-
getLiterals
-
getConstants
-
getAllNestedTerms
-
getNestedTerms
Returns all nested terms filtered by the supplied type. Recursively enumerate all terms- Type Parameters:
T- the nested term subtype to extract- Parameters:
classType- class type filters the terms by type- Returns:
- the set of variables included in this term
-