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

Method castTo

java/dagger/internal/codegen/Expression.java:61–63  ·  view source on GitHub ↗
(TypeMirror newType)

Source from the content-addressed store, hash-verified

59 // TODO(ronshapiro): consider overloads that take a Types and Elements and only cast if necessary,
60 // or just embedding a Types/Elements instance in an Expression.
61 Expression castTo(TypeMirror newType) {
62 return create(newType, "($T) $L", newType, codeBlock);
63 }
64
65 /** The {@link TypeMirror type} to which the expression evaluates. */
66 TypeMirror type() {

Callers 4

castToMethod · 0.95

Calls 1

createMethod · 0.95

Tested by 1

castToMethod · 0.76