Class FuzzyClassContract
java.lang.Object
com.comphenix.protocol.reflect.fuzzy.FuzzyClassContract
- All Implemented Interfaces:
AbstractFuzzyMatcher<Class<?>>
Determine if a given class implements a given fuzzy (duck typed) contract.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRepresents a class contract builder. -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.collect.ImmutableList<AbstractFuzzyMatcher<Class<?>>> Retrieve an immutable list of every baseclass contract.com.google.common.collect.ImmutableList<AbstractFuzzyMatcher<MethodInfo>> Retrieve an immutable list of every constructor contract.com.google.common.collect.ImmutableList<AbstractFuzzyMatcher<Field>> Retrieve an immutable list of every field contract.com.google.common.collect.ImmutableList<AbstractFuzzyMatcher<Class<?>>> Retrieve an immutable list of every interface contract.com.google.common.collect.ImmutableList<AbstractFuzzyMatcher<MethodInfo>> Retrieve an immutable list of every method contract.booleanDetermine if the given value is a match.static FuzzyClassContract.BuilderConstruct a new fuzzy class contract builder.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.comphenix.protocol.reflect.fuzzy.AbstractFuzzyMatcher
and, inverted, or
-
Method Details
-
newBuilder
Construct a new fuzzy class contract builder.- Returns:
- A new builder.
-
getFieldContracts
Retrieve an immutable list of every field contract.This list is ordered in descending order of priority.
- Returns:
- List of every field contract.
-
getMethodContracts
public com.google.common.collect.ImmutableList<AbstractFuzzyMatcher<MethodInfo>> getMethodContracts()Retrieve an immutable list of every method contract.This list is ordered in descending order of priority.
- Returns:
- List of every method contract.
-
getConstructorContracts
public com.google.common.collect.ImmutableList<AbstractFuzzyMatcher<MethodInfo>> getConstructorContracts()Retrieve an immutable list of every constructor contract.This list is ordered in descending order of priority.
- Returns:
- List of every constructor contract.
-
getBaseclassContracts
public com.google.common.collect.ImmutableList<AbstractFuzzyMatcher<Class<?>>> getBaseclassContracts()Retrieve an immutable list of every baseclass contract.This list is ordered in descending order of priority.
- Returns:
- List of every baseclass contract.
-
getInterfaceContracts
public com.google.common.collect.ImmutableList<AbstractFuzzyMatcher<Class<?>>> getInterfaceContracts()Retrieve an immutable list of every interface contract.This list is ordered in descending order of priority.
- Returns:
- List of every interface contract.
-
isMatch
Description copied from interface:AbstractFuzzyMatcherDetermine if the given value is a match.- Specified by:
isMatchin interfaceAbstractFuzzyMatcher<Class<?>>- 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.
-
toString
-