cdqa.function

Class UnaryPredicate

Known Direct Subclasses:
UnaryPredicateOr

public abstract class UnaryPredicate
extends UnaryFunction

Field Summary

(package private) static UnaryPredicate
ISTRUE
static UnaryPredicate
TRUE

Fields inherited from class cdqa.function.Function

NULL, repository

Method Summary

boolean
apply(XObject o)
static UnaryPredicate
isTrue()
abstract boolean
onApply(XObject o)
XObject
onExecute(XObject o)
static UnaryPredicate
or(UnaryPredicate p1, UnaryPredicate p2)
static UnaryPredicate
pathToParentMatch(String regex)

Methods inherited from class cdqa.function.UnaryFunction

createIteratorInstance, execute, onExecute

Methods inherited from class cdqa.function.Function

createIteratorInstance, createIteratorInstance, createIteratorInstance, forName, getRepository

Field Details

ISTRUE

(package private) static UnaryPredicate ISTRUE

TRUE

public static UnaryPredicate TRUE

Method Details

apply

public final boolean apply(XObject o)

isTrue

public static UnaryPredicate isTrue()

onApply

public abstract boolean onApply(XObject o)

onExecute

public final XObject onExecute(XObject o)
Overrides:
onExecute in interface UnaryFunction

or

public static UnaryPredicate or(UnaryPredicate p1,
                                UnaryPredicate p2)

pathToParentMatch

public static UnaryPredicate pathToParentMatch(String regex)