Java 类com.intellij.util.InstanceofCheckerGenerator 实例源码

项目:intellij-ce-playground    文件:ObjectPattern.java   
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);
    }
  });
}
项目:tools-idea    文件:ObjectPattern.java   
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);
    }
  });
}
项目:consulo    文件:ObjectPattern.java   
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);
    }
  });
}
项目:intellij-ce-playground    文件:ClassConditionKey.java   
private ClassConditionKey(Class<T> aClass) {
  myCondition = InstanceofCheckerGenerator.getInstance().getInstanceofChecker(aClass);
  myConditionClass = aClass;
}
项目:tools-idea    文件:ClassConditionKey.java   
private ClassConditionKey(Class<T> aClass) {
  myCondition = InstanceofCheckerGenerator.getInstance().getInstanceofChecker(aClass);
  myConditionClass = aClass;
}
项目:consulo    文件:ClassConditionKey.java   
private ClassConditionKey(Class<T> aClass) {
  myCondition = InstanceofCheckerGenerator.getInstance().getInstanceofChecker(aClass);
  myConditionClass = aClass;
}