protected ObjectPattern(final Class<T> aClass) { final Condition<Object> checker = InstanceofCheckerGenerator.getInstance().getInstanceofChecker(aClass); myCondition = new ElementPatternCondition<T>(new InitialPatternCondition<T>(aClass) { public boolean accepts(@Nullable final Object o, final ProcessingContext context) { return checker.value(o); } }); }
private ClassConditionKey(Class<T> aClass) { myCondition = InstanceofCheckerGenerator.getInstance().getInstanceofChecker(aClass); myConditionClass = aClass; }