StringInterpreterEnum (Apache Tomcat 9.0.111 API Documentation)
Description: declaration: package: org.apache.jasper.optimizations, class: StringInterpreterEnum

# Class StringInterpreterEnum

java.lang.Object
org.apache.jasper.compiler.StringInterpreterFactory.DefaultStringInterpreter
org.apache.jasper.optimizations.StringInterpreterEnum

All Implemented Interfaces:
  `StringInterpreter`

public class StringInterpreterEnum extends StringInterpreterFactory.DefaultStringInterpreter
Provides an optimised conversion of string values to Enums. It bypasses the check for registered PropertyEditor.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `StringInterpreterEnum()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `protected String`
  `coerceToOtherType(Class<?> c, String s, boolean isNamedAttribute)`
  Intended to be used by subclasses that don't need/want to re-implement the logic in `StringInterpreterFactory.DefaultStringInterpreter.convertString(Class, String, String, Class, boolean)`.

  ### Methods inherited from class StringInterpreterFactory.DefaultStringInterpreter

  `convertString`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### StringInterpreterEnum

    public StringInterpreterEnum()

- ## Method Details

  - ### coerceToOtherType

    protected String coerceToOtherType(Class<?> c, String s, boolean isNamedAttribute)
    Description copied from class: `StringInterpreterFactory.DefaultStringInterpreter`
    Intended to be used by subclasses that don't need/want to re-implement the logic in `StringInterpreterFactory.DefaultStringInterpreter.convertString(Class, String, String, Class, boolean)`.
    Overrides:
      `coerceToOtherType` in class `StringInterpreterFactory.DefaultStringInterpreter`
    Parameters:
      `c` - unused
      `s` - unused
      `isNamedAttribute` - unused
    Returns:
      Always `null`