MCPcopy Index your code
hub / github.com/apache/tomcat / coerceToType

Method coerceToType

java/jakarta/el/ExpressionFactory.java:223–223  ·  view source on GitHub ↗

Coerce the supplied object to the requested type. @param The type to which the object should be coerced @param obj The object to be coerced @param expectedType The type to which the object should be coerced @return An instance of the requested type. @throws ELException If th

(Object obj, Class<T> expectedType)

Source from the content-addressed store, hash-verified

221 * @throws ELException If the conversion fails
222 */
223 public abstract <T> T coerceToType(Object obj, Class<T> expectedType);
224
225 /**
226 * Returns an {@link ELResolver} capable of resolving properties on {@link java.io.InputStream}

Callers 4

invokeMethod · 0.95
convertToTypeMethod · 0.45

Calls

no outgoing calls