public class Negation extends AbstractTerm implements Term
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
boolean |
equals(java.lang.Object otherTerm)
Equal method which returns true if the terms are logically equal.
|
int |
hashCode() |
Term |
lightestRewrite()
Applying a rewrite rule to the term should not change the logical expression of the term.
|
boolean |
matches(SolrDocument doc)
check if the key/value pair of this literal occurs in the SolrDocument
|
java.lang.String |
toString()
create a Solr query string from this literal
|
int |
weight()
the length attribute of a term shows if rewritten terms
(using rules of replacement as allowed for propositional logic)
are shorter and therefore more efficient.
|
apply
private Term term
public Negation(Term term)
public java.lang.Object clone()
clone
in class java.lang.Object
public boolean equals(java.lang.Object otherTerm)
Term
public int hashCode()
hashCode
in class java.lang.Object
public int weight()
public java.lang.String toString()
public boolean matches(SolrDocument doc)
public Term lightestRewrite()
Term
lightestRewrite
in interface Term