當前位置: 首頁>>代碼示例>>Java>>正文


Java TreeLogger.NULL屬性代碼示例

本文整理匯總了Java中com.google.gwt.core.ext.TreeLogger.NULL屬性的典型用法代碼示例。如果您正苦於以下問題:Java TreeLogger.NULL屬性的具體用法?Java TreeLogger.NULL怎麽用?Java TreeLogger.NULL使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在com.google.gwt.core.ext.TreeLogger的用法示例。


在下文中一共展示了TreeLogger.NULL屬性的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: createInjectableCollector

private MemberCollector createInjectableCollector() {
  MemberCollector collector = new MemberCollector(TreeLogger.NULL);
  collector.setMethodFilter(
      new MemberCollector.MethodFilter() {
        public boolean accept(MethodLiteral<?, Method> method) {
          return method.isAnnotationPresent(Inject.class) && !method.isStatic();
        }
      });

  collector.setFieldFilter(
      new MemberCollector.FieldFilter() {
        public boolean accept(FieldLiteral<?> field) {
          return field.isAnnotationPresent(Inject.class) && !field.isStatic();
        }
      });
  return collector;
}
 
開發者ID:google-code-export,項目名稱:google-gin,代碼行數:17,代碼來源:FactoryBindingTest.java

示例2: createAllCollector

private static MemberCollector createAllCollector() {
  MemberCollector collector = new MemberCollector(TreeLogger.NULL);

  collector.setMethodFilter(new MemberCollector.MethodFilter() {
    public boolean accept(MethodLiteral<?, Method> method) {
      return isObject(method);
    }
  });

  collector.setFieldFilter(new MemberCollector.FieldFilter() {
    public boolean accept(FieldLiteral<?> field) {
      return isObject(field);
    }
  });

  return collector;
}
 
開發者ID:google-code-export,項目名稱:google-gin,代碼行數:17,代碼來源:MemberCollectorTest.java

示例3: createInjectableCollector

protected MemberCollector createInjectableCollector() {
  MemberCollector collector = new MemberCollector(TreeLogger.NULL);
  collector.setMethodFilter(
      new MemberCollector.MethodFilter() {
        public boolean accept(MethodLiteral<?, Method> method) {
          // TODO(schmitt): Do injectable methods require at least one parameter?
          return method.isAnnotationPresent(Inject.class) && !method.isStatic();
        }
      });

  collector.setFieldFilter(
      new MemberCollector.FieldFilter() {
        public boolean accept(FieldLiteral<?> field) {
          return field.isAnnotationPresent(Inject.class) && !field.isStatic();
        }
      });
  return collector;
}
 
開發者ID:google-code-export,項目名稱:google-gin,代碼行數:18,代碼來源:SourceWriteUtilTest.java

示例4: createInjectableCollector

private MemberCollector createInjectableCollector() {
  MemberCollector collector = new MemberCollector(TreeLogger.NULL);
  collector.setMethodFilter(
      new MemberCollector.MethodFilter() {
        public boolean accept(MethodLiteral<?, Method> method) {
          // TODO(schmitt): Do injectable methods require at least one parameter?
          return method.isAnnotationPresent(Inject.class) && !method.isStatic();
        }
      });

  collector.setFieldFilter(
      new MemberCollector.FieldFilter() {
        public boolean accept(FieldLiteral<?> field) {
          return field.isAnnotationPresent(Inject.class) && !field.isStatic();
        }
      });
  return collector;
}
 
開發者ID:google-code-export,項目名稱:google-gin,代碼行數:18,代碼來源:GuiceUtilTest.java

示例5: createMethodCollector

private static MemberCollector createMethodCollector() {
  MemberCollector collector = new MemberCollector(TreeLogger.NULL);

  collector.setMethodFilter(new MemberCollector.MethodFilter() {
    public boolean accept(MethodLiteral<?, Method> method) {
      return isObject(method);
    }
  });
  return collector;
}
 
開發者ID:google-code-export,項目名稱:google-gin,代碼行數:10,代碼來源:MemberCollectorTest.java

示例6: setUp

@Override
public void setUp() {
  errorManager = new ErrorManager(TreeLogger.NULL);
}
 
開發者ID:google-code-export,項目名稱:google-gin,代碼行數:4,代碼來源:ProviderMethodBindingTest.java


注:本文中的com.google.gwt.core.ext.TreeLogger.NULL屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。