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

Method parentComponent

java/dagger/model/ComponentPath.java:61–64  ·  view source on GitHub ↗

Returns the parent of the plain #currentComponent() current component}. @throws IllegalStateException if the current graph is the plain #atRoot() root component

()

Source from the content-addressed store, hash-verified

59 * @throws IllegalStateException if the current graph is the {@linkplain #atRoot() root component}
60 */
61 public final TypeElement parentComponent() {
62 checkState(!atRoot());
63 return components().reverse().get(1);
64 }
65
66 /**
67 * Returns {@code true} if the {@linkplain #currentComponent()} current component} is the

Callers

nothing calls this directly

Calls 3

atRootMethod · 0.95
componentsMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected