Class BannedGenerator
java.lang.Object
com.comphenix.protocol.reflect.instances.BannedGenerator
- All Implemented Interfaces:
InstanceProvider
Generator that ensures certain types will never be created.
-
Constructor Summary
ConstructorsConstructorDescriptionBannedGenerator(AbstractFuzzyMatcher<Class<?>> classMatcher) Construct a generator that ensures any class that matches the given matcher is never constructed.BannedGenerator(Class<?>... classes) -
Method Summary
-
Constructor Details
-
BannedGenerator
Construct a generator that ensures any class that matches the given matcher is never constructed.- Parameters:
classMatcher- - a class matcher.
-
BannedGenerator
-
-
Method Details
-
create
Description copied from interface:InstanceProviderCreate an instance given a type, if possible.- Specified by:
createin interfaceInstanceProvider- Parameters:
type- - type to create.- Returns:
- The instance, or NULL if the type cannot be created.
-