|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.ipojo.manipulator.spi.helper.Predicates
public class Predicates
Ready-to-use Predicate
implementations.
Nested Class Summary | |
---|---|
static class |
Predicates.Matcher
|
static class |
Predicates.Node
|
static class |
Predicates.Reference
|
Constructor Summary | |
---|---|
Predicates()
|
Method Summary | |
---|---|
static Predicate |
alwaysTrue()
Always return true. |
static Predicate |
and(Predicate... predicates)
Successful if all given predicates are satisfied. |
static Predicates.Node |
node()
|
static Predicate |
on(java.lang.annotation.ElementType type)
Restrict to the given ElementType . |
static Predicate |
onlySupportedElements(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Restrict to the supported ElementType (s) of the annotation (use the @Target, if provided). |
static Predicate |
or(java.util.Collection<Predicate> predicates)
Successful if at least one of the given predicates is satisfied. |
static Predicate |
or(Predicate... predicates)
Successful if at least one of the given predicates is satisfied. |
static Predicates.Matcher |
pattern(java.lang.String regex)
|
static Predicates.Reference |
reference(java.lang.String refId)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Predicates()
Method Detail |
---|
public static Predicates.Node node()
public static Predicates.Reference reference(java.lang.String refId)
public static Predicates.Matcher pattern(java.lang.String regex)
public static Predicate on(java.lang.annotation.ElementType type)
ElementType
.
type
- expected ElementType
public static Predicate alwaysTrue()
public static Predicate and(Predicate... predicates)
predicates
- predicates to be satisfiedpublic static Predicate or(java.util.Collection<Predicate> predicates)
predicates
- predicates to be satisfied (at least one)public static Predicate or(Predicate... predicates)
predicates
- predicates to be satisfied (at least one)public static Predicate onlySupportedElements(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
ElementType
(s) of the annotation (use the @Target, if provided).
annotationType
- annotation to explore
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |