public final class ElementPredicates
extends java.lang.Object
predicates
for
elements
.Modifier and Type | Method and Description |
---|---|
static java.util.function.Predicate<Element> |
annotated()
A predicate that returns
true if the element has annotations. |
static java.util.function.Predicate<Element> |
annotatedWith(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType) |
static java.util.function.Predicate<Element> |
assignableTo(java.lang.Class<?> type) |
static java.util.function.Predicate<Element> |
named(java.lang.String... elementNames) |
static java.util.function.Predicate<Element> |
ofType(java.lang.Class<?> type) |
static java.util.function.Predicate<Element> |
readable()
A predicate that returns
true if the element is readable. |
static java.util.function.Predicate<Element> |
specific()
A predicate that returns
true if the element is
specific . |
static java.util.function.Predicate<Element> |
writable()
A predicate that returns
true if the element is writable. |
public static java.util.function.Predicate<Element> ofType(java.lang.Class<?> type)
true
if an element is of the
given type.public static java.util.function.Predicate<Element> annotatedWith(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
public static java.util.function.Predicate<Element> annotated()
true
if the element has annotations.public static java.util.function.Predicate<Element> named(java.lang.String... elementNames)
true
if the element name
equals one of the specified names.public static final java.util.function.Predicate<Element> writable()
true
if the element is writable.public static final java.util.function.Predicate<Element> readable()
true
if the element is readable.public static java.util.function.Predicate<Element> assignableTo(java.lang.Class<?> type)
true
if the element is
assignable to the given type.