Home
last modified time | relevance | path

Searched refs:methodOrConstructor (Results 1 – 2 of 2) sorted by relevance

/external/guice/core/src/com/google/inject/
DTypeLiteral.java280 public List<TypeLiteral<?>> getParameterTypes(Member methodOrConstructor) { in getParameterTypes() argument
283 if (methodOrConstructor instanceof Method) { in getParameterTypes()
284 Method method = (Method) methodOrConstructor; in getParameterTypes()
289 } else if (methodOrConstructor instanceof Constructor) { in getParameterTypes()
290 Constructor<?> constructor = (Constructor<?>) methodOrConstructor; in getParameterTypes()
296 throw new IllegalArgumentException("Not a method or a constructor: " + methodOrConstructor); in getParameterTypes()
308 public List<TypeLiteral<?>> getExceptionTypes(Member methodOrConstructor) { in getExceptionTypes() argument
311 if (methodOrConstructor instanceof Method) { in getExceptionTypes()
312 Method method = (Method) methodOrConstructor; in getExceptionTypes()
317 } else if (methodOrConstructor instanceof Constructor) { in getExceptionTypes()
[all …]
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/
DDependencyRequestFormatter.java95 ExecutableElement methodOrConstructor = in format() local
98 types.asMemberOf(request.enclosingType(), methodOrConstructor)); in format()
99 appendEnclosingTypeAndMemberName(methodOrConstructor, builder).append('('); in format()
100 List<? extends VariableElement> parameters = methodOrConstructor.getParameters(); in format()