Interface Term
- All Superinterfaces:
Comparable<Term>, Serializable
- All Known Implementing Classes:
AbstractTerm
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionA unique identifier of this term.getLabel()Return a label that represents this term.getType()Deprecated.booleanReturns true iff this term is a Constant.booleanReturns true if this term is a literal, in this caseisConstant()must also return true.booleanReturns true if this term is a Variable.Methods inherited from interface Comparable
compareTo
-
Method Details
-
isConstant
boolean isConstant()Returns true iff this term is a Constant. The returned value ofisConstant()must be equals to !isVariable().- Returns:
- true if this term is a constant, false otherwise.
-
isVariable
boolean isVariable()Returns true if this term is a Variable. The returned value ofisVariable()must be equals to !isConstant().- Returns:
- true if this term is a variable, false otherwise.
-
isLiteral
boolean isLiteral()Returns true if this term is a literal, in this caseisConstant()must also return true.- Returns:
- true if this term is a literal, false otherwise.
-
getLabel
String getLabel()Return a label that represents this term. There is no guarantee that two terms with the same label represent the same term (seegetIdentifier()).- Returns:
- a label that represents this term.
-
getIdentifier
Object getIdentifier()A unique identifier of this term. The following constraint must be fulfil:
this.getIdentifier().equals(o.getIdentifier())must be equivalent tothis.equals(o).- Returns:
- a unique identifier of this term.
-
getType
Deprecated.- Returns:
- the
Term.Typeof this term.
-