public abstract static class AbstractFuzzyMember.Builder<T extends AbstractFuzzyMember<?>>
extends java.lang.Object
Constructor and Description |
---|
AbstractFuzzyMember.Builder() |
Modifier and Type | Method and Description |
---|---|
AbstractFuzzyMember.Builder<T> |
banModifier(int modifier)
Add a given bit-field of modifers that will skip or ignore members.
|
abstract T |
build()
Build a new instance of this type.
|
AbstractFuzzyMember.Builder<T> |
declaringClassDerivedOf(java.lang.Class<?> declaringClass)
Require that a member is defined by this exact class, or any super class.
|
AbstractFuzzyMember.Builder<T> |
declaringClassExactType(java.lang.Class<?> declaringClass)
Require that a member is defined by this exact class.
|
AbstractFuzzyMember.Builder<T> |
declaringClassMatching(AbstractFuzzyMatcher<java.lang.Class<?>> classMatcher)
Require that a member is defined by a class that matches the given matcher.
|
AbstractFuzzyMember.Builder<T> |
declaringClassSuperOf(java.lang.Class<?> declaringClass)
Require that a member is defined by this exact class, or any super class.
|
protected abstract T |
initialMember()
Construct a new instance of the current type.
|
AbstractFuzzyMember.Builder<T> |
nameExact(java.lang.String name)
Set the exact name of the member we are matching.
|
AbstractFuzzyMember.Builder<T> |
nameRegex(java.util.regex.Pattern pattern)
Set the regular expression pattern that matches a members name.
|
AbstractFuzzyMember.Builder<T> |
nameRegex(java.lang.String regex)
Set the regular expresson that matches a members name.
|
AbstractFuzzyMember.Builder<T> |
requireModifier(int modifier)
Add a given bit-field of required modifiers for every matching member.
|
AbstractFuzzyMember.Builder<T> |
requirePublic()
Require that every matching member is public.
|
protected T extends AbstractFuzzyMember<?> member
public AbstractFuzzyMember.Builder<T> requireModifier(int modifier)
modifier
- - bit-field of modifiers that are required.public AbstractFuzzyMember.Builder<T> requirePublic()
public AbstractFuzzyMember.Builder<T> banModifier(int modifier)
modifier
- - bit-field of modifiers to skip or ignore.public AbstractFuzzyMember.Builder<T> nameRegex(java.lang.String regex)
regex
- - new regular expression of valid names.public AbstractFuzzyMember.Builder<T> nameRegex(java.util.regex.Pattern pattern)
pattern
- - regular expression pattern for a valid name.public AbstractFuzzyMember.Builder<T> nameExact(java.lang.String name)
name
- - exact name.public AbstractFuzzyMember.Builder<T> declaringClassExactType(java.lang.Class<?> declaringClass)
declaringClass
- - the declaring class of any matching member.public AbstractFuzzyMember.Builder<T> declaringClassSuperOf(java.lang.Class<?> declaringClass)
declaringClass
- - the declaring class.public AbstractFuzzyMember.Builder<T> declaringClassDerivedOf(java.lang.Class<?> declaringClass)
declaringClass
- - the declaring class.public AbstractFuzzyMember.Builder<T> declaringClassMatching(AbstractFuzzyMatcher<java.lang.Class<?>> classMatcher)
classMatcher
- - class matcher.@Nonnull protected abstract T initialMember()
public abstract T build()
Builders should call AbstractFuzzyMember.prepareBuild()
when constructing new objects.