Class FuzzyFieldContract
java.lang.Object
com.comphenix.protocol.reflect.fuzzy.AbstractFuzzyMember<Field>
com.comphenix.protocol.reflect.fuzzy.FuzzyFieldContract
- All Implemented Interfaces:
AbstractFuzzyMatcher<Field>
Represents a field matcher.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents a builder for a field matcher. -
Field Summary
Fields inherited from class com.comphenix.protocol.reflect.fuzzy.AbstractFuzzyMember
declaringMatcher, modifiersBanned, modifiersRequired, nameRegex, sealed -
Method Summary
Modifier and TypeMethodDescriptionGenerate a view of this matcher as a key-value map.Retrieve the class matcher that matches the type of a field.booleanDetermine if the given value is a match.static FuzzyFieldContractmatchType(AbstractFuzzyMatcher<Class<?>> matcher) Match a field by its type.static FuzzyFieldContract.BuilderReturn a new fuzzy field contract builder.Methods inherited from class com.comphenix.protocol.reflect.fuzzy.AbstractFuzzyMember
equals, getDeclaringMatcher, getModifiersBanned, getModifiersRequired, getNameRegex, hashCode, prepareBuild, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.comphenix.protocol.reflect.fuzzy.AbstractFuzzyMatcher
and, inverted, or
-
Method Details
-
matchType
Match a field by its type.- Parameters:
matcher- - the type to match.- Returns:
- The field contract.
-
newBuilder
Return a new fuzzy field contract builder.- Returns:
- New fuzzy field contract builder.
-
getTypeMatcher
Retrieve the class matcher that matches the type of a field.- Returns:
- The class matcher.
-
isMatch
Description copied from interface:AbstractFuzzyMatcherDetermine if the given value is a match.- Specified by:
isMatchin interfaceAbstractFuzzyMatcher<Field>- Overrides:
isMatchin classAbstractFuzzyMember<Field>- Parameters:
value- - the value to match.parent- - the parent container, or NULL if this value is the root.- Returns:
- TRUE if it is a match, FALSE otherwise.
-
getKeyValueView
Description copied from class:AbstractFuzzyMemberGenerate a view of this matcher as a key-value map.Used by
AbstractFuzzyMember.toString()to print a representation of this object.- Overrides:
getKeyValueViewin classAbstractFuzzyMember<Field>- Returns:
- A modifiable key-value view.
-