soot.jimple.spark.ondemand.genericutil
Class Predicate<T>

java.lang.Object
  extended by soot.jimple.spark.ondemand.genericutil.Predicate<T>

public abstract class Predicate<T>
extends Object

Interface for defining an arbitrary predicate on Objects.


Field Summary
static Predicate FALSE
           
static Predicate TRUE
           
 
Constructor Summary
Predicate()
           
 
Method Summary
 Predicate<T> and(Predicate<T> conjunct_)
          Return a predicate that is a conjunction of this predicate and another predicate
static
<T> Predicate<T>
falsePred()
           
 Predicate<T> not()
          Return a predicate that is a negation of this predicate
 Predicate<T> or(Predicate<T> disjunct_)
          Return a predicate that is a conjunction of this predicate and another predicate
abstract  boolean test(T obj_)
          Test whether an Object satisfies this Predicate
static
<T> Predicate<T>
truePred()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FALSE

public static final Predicate FALSE

TRUE

public static final Predicate TRUE
Constructor Detail

Predicate

public Predicate()
Method Detail

truePred

public static <T> Predicate<T> truePred()

falsePred

public static <T> Predicate<T> falsePred()

test

public abstract boolean test(T obj_)
Test whether an Object satisfies this Predicate


not

public Predicate<T> not()
Return a predicate that is a negation of this predicate


and

public Predicate<T> and(Predicate<T> conjunct_)
Return a predicate that is a conjunction of this predicate and another predicate


or

public Predicate<T> or(Predicate<T> disjunct_)
Return a predicate that is a conjunction of this predicate and another predicate