类com.google.inject.ImplementedBy源码实例Demo

下面列出了怎么用com.google.inject.ImplementedBy的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: ProjectAres   文件: ReflectiveParserManifest.java
@Override
protected void configure() {
    final ImplementedBy implementedBy = type.getRawType().getAnnotation(ImplementedBy.class);

    bind(parserKey).toInstance(new ReflectiveParserImpl(
        implementedBy != null ? implementedBy.value() : this.baseClass,
        Members.annotations(Parseable.Property.class, Methods.declaredMethodsInAncestors(type.getRawType()))
               .merge(this::createProperty)
               .collect(Collectors.toImmutableList())
    ));
}
 
源代码2 项目: xtext-xtend   文件: AnnotationsCompilerTest.java
@Test public void testParameterizedAnnotationOnType_01() throws Exception {
	final String text = "@com.google.inject.ImplementedBy(typeof(String)) class Foo {}";
	ImplementedBy implementedBy = getAnnotationOnClass(text, ImplementedBy.class);
	assertTrue(implementedBy.value() == String.class);
}
 
源代码3 项目: xtext-xtend   文件: AnnotationsCompilerTest.java
@Test public void testParameterizedAnnotationOnType_02() throws Exception {
	final String text = "@com.google.inject.ImplementedBy(String) class Foo {}";
	ImplementedBy implementedBy = getAnnotationOnClass(text, ImplementedBy.class);
	assertTrue(implementedBy.value() == String.class);
}
 
源代码4 项目: xtext-xtend   文件: AnnotationsCompilerTest.java
@Test public void testParameterizedAnnotationOnType_03() throws Exception {
	final String text = "@com.google.inject.ImplementedBy(java.lang.String) class Foo {}";
	ImplementedBy implementedBy = getAnnotationOnClass(text, ImplementedBy.class);
	assertTrue(implementedBy.value() == String.class);
}
 
源代码5 项目: xtext-xtend   文件: AnnotationsCompilerTest.java
@Test public void testParameterizedAnnotationOnType_04() throws Exception {
	final String text = "@com.google.inject.ImplementedBy(java.util.Map.Entry) class Foo {}";
	ImplementedBy implementedBy = getAnnotationOnClass(text, ImplementedBy.class);
	assertTrue(implementedBy.value() == Map.Entry.class);
}
 
源代码6 项目: xtext-xtend   文件: AnnotationsCompilerTest.java
@Test public void testParameterizedAnnotationOnType_05() throws Exception {
	final String text = "@com.google.inject.ImplementedBy(java.util.Map$Entry) class Foo {}";
	ImplementedBy implementedBy = getAnnotationOnClass(text, ImplementedBy.class);
	assertTrue(implementedBy.value() == Map.Entry.class);
}
 
源代码7 项目: xtext-xtend   文件: AnnotationsCompilerTest.java
@Test public void testKeyValueParameterizedAnnotationOnType_01() throws Exception {
	final String text = "@com.google.inject.ImplementedBy( value = typeof(String)) class Foo {}";
	ImplementedBy implementedBy = getAnnotationOnClass(text, ImplementedBy.class);
	assertTrue(implementedBy.value() == String.class);
}
 
源代码8 项目: xtext-xtend   文件: AnnotationsCompilerTest.java
@Test public void testKeyValueParameterizedAnnotationOnType_02() throws Exception {
	final String text = "@com.google.inject.ImplementedBy( value = String) class Foo {}";
	ImplementedBy implementedBy = getAnnotationOnClass(text, ImplementedBy.class);
	assertTrue(implementedBy.value() == String.class);
}
 
源代码9 项目: xtext-xtend   文件: AnnotationsCompilerTest.java
@Test public void testKeyValueParameterizedAnnotationOnType_03() throws Exception {
	final String text = "@com.google.inject.ImplementedBy( value = java.lang.String) class Foo {}";
	ImplementedBy implementedBy = getAnnotationOnClass(text, ImplementedBy.class);
	assertTrue(implementedBy.value() == String.class);
}
 
源代码10 项目: xtext-xtend   文件: AnnotationsCompilerTest.java
@Test public void testKeyValueParameterizedAnnotationOnType_04() throws Exception {
	final String text = "@com.google.inject.ImplementedBy( value = java.util.Map.Entry) class Foo {}";
	ImplementedBy implementedBy = getAnnotationOnClass(text, ImplementedBy.class);
	assertTrue(implementedBy.value() == Map.Entry.class);
}
 
源代码11 项目: xtext-xtend   文件: AnnotationsCompilerTest.java
@Test public void testKeyValueParameterizedAnnotationOnType_05() throws Exception {
	final String text = "@com.google.inject.ImplementedBy( value = java.util.Map$Entry) class Foo {}";
	ImplementedBy implementedBy = getAnnotationOnClass(text, ImplementedBy.class);
	assertTrue(implementedBy.value() == Map.Entry.class);
}
 
 类所在包
 类方法
 同包方法