Class AbstractAtom
java.lang.Object
fr.lirmm.graphik.integraal.api.core.AbstractAtom
- All Implemented Interfaces:
Atom, Comparable<Atom>, Iterable<Term>
- Direct Known Subclasses:
DefaultAtom
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates an abstract atom base implementation. -
Method Summary
Modifier and TypeMethodDescriptionvoidAppends this atom to the providedStringBuilder.intbooleanVerifies if two atoms are equivalent or not.Get all constants that appear is this atom.Get all literals that appear is this atom.Get all variables that appear is this atom.inthashCode()iterator()Return an Iterator of Term.toString()Returns a string in the form p(t1,...,tk)Methods inherited from interface Atom
contains, getPredicate, getTerm, getTerms, getTerms, indexesOf, indexOf, setPredicate, setTermMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
AbstractAtom
protected AbstractAtom()Creates an abstract atom base implementation.
-
-
Method Details
-
getConstants
Description copied from interface:AtomGet all constants that appear is this atom.- Specified by:
getConstantsin interfaceAtom- Returns:
- all constants that appear is this atom.
-
getVariables
Description copied from interface:AtomGet all variables that appear is this atom.- Specified by:
getVariablesin interfaceAtom- Returns:
- all variables that appear is this atom.
-
getLiterals
Description copied from interface:AtomGet all literals that appear is this atom.- Specified by:
getLiteralsin interfaceAtom- Returns:
- all literals that appear is this atom.
-
hashCode
-
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<Atom>
-
toString
-
appendTo
Appends this atom to the providedStringBuilder.- Parameters:
sb- the builder that receives the atom representation
-
iterator
-