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