MCPcopy Index your code
hub / github.com/google/dagger / matchesKind

Method matchesKind

java/dagger/internal/codegen/RequestKinds.java:115–121  ·  view source on GitHub ↗

Returns true if type is a parameterized type of kind's #frameworkClass(RequestKind) framework class.

(RequestKind kind, TypeMirror type)

Source from the content-addressed store, hash-verified

113 * #frameworkClass(RequestKind) framework class}.
114 */
115 private static boolean matchesKind(RequestKind kind, TypeMirror type) {
116 Optional<Class<?>> frameworkClass = frameworkClass(kind);
117 return frameworkClass.isPresent()
118 && isType(type)
119 && isTypeOf(frameworkClass.get(), type)
120 && !asDeclared(type).getTypeArguments().isEmpty();
121 }
122
123 /**
124 * Unwraps the framework class(es) of {@code requestKind} from {@code type}. If {@code

Callers 1

getRequestKindMethod · 0.95

Calls 3

frameworkClassMethod · 0.95
isEmptyMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected