com.ibm.wala.logic
Class BooleanConstantFormula
java.lang.Object
com.ibm.wala.logic.BooleanConstantFormula
- All Implemented Interfaces:
- ICNFFormula, IFormula, IMaxTerm
public class BooleanConstantFormula
- extends java.lang.Object
- implements IMaxTerm
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
TRUE
public static final BooleanConstantFormula TRUE
FALSE
public static final BooleanConstantFormula FALSE
getFreeVariables
public java.util.Collection<AbstractVariable> getFreeVariables()
- Specified by:
getFreeVariables in interface IFormula
- Returns:
- the free variables in this formula
getConstants
public java.util.Collection<? extends IConstant> getConstants()
- Specified by:
getConstants in interface IFormula
- Returns:
- the constants that appear in this formula
getTerms
public java.util.Collection<? extends ITerm> getTerms()
getKind
public IFormula.Kind getKind()
- Specified by:
getKind in interface IFormula
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
prettyPrint
public java.lang.String prettyPrint(ILogicDecorator d)
throws java.lang.IllegalArgumentException
- Specified by:
prettyPrint in interface IFormula
- Throws:
java.lang.IllegalArgumentException
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
getAllTerms
public java.util.Collection<? extends ITerm> getAllTerms()
- Specified by:
getAllTerms in interface IFormula
- Returns:
- all terms that appear in this formula, including recursive descent on on-atomic terms
getMaxTerms
public java.util.Collection<? extends IMaxTerm> getMaxTerms()
- Specified by:
getMaxTerms in interface ICNFFormula