Package org.apache.jasper.compiler
Class StringInterpreterFactory.DefaultStringInterpreter
- java.lang.Object
-
- org.apache.jasper.compiler.StringInterpreterFactory.DefaultStringInterpreter
-
- All Implemented Interfaces:
StringInterpreter
- Direct Known Subclasses:
StringInterpreterEnum
- Enclosing class:
- StringInterpreterFactory
public static class StringInterpreterFactory.DefaultStringInterpreter extends java.lang.Object implements StringInterpreter
-
-
Constructor Summary
Constructors Constructor Description DefaultStringInterpreter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringcoerceToOtherType(java.lang.Class<?> c, java.lang.String s, boolean isNamedAttribute)Intended to be used by sub-classes that don't need/want to re-implement the logic inconvertString(Class, String, String, Class, boolean).java.lang.StringconvertString(java.lang.Class<?> c, java.lang.String s, java.lang.String attrName, java.lang.Class<?> propEditorClass, boolean isNamedAttribute)Generates the source code that represents the conversion of the string value to the appropriate type.
-
-
-
Method Detail
-
convertString
public java.lang.String convertString(java.lang.Class<?> c, java.lang.String s, java.lang.String attrName, java.lang.Class<?> propEditorClass, boolean isNamedAttribute)Description copied from interface:StringInterpreterGenerates the source code that represents the conversion of the string value to the appropriate type.- Specified by:
convertStringin interfaceStringInterpreter- Parameters:
c- The target class to which to coerce the given strings- The string valueattrName- The name of the attribute whose value is being suppliedpropEditorClass- The property editor for the given attributeisNamedAttribute- true if the given attribute is a named attribute (that is, specified using the jsp:attribute standard action), and false otherwise- Returns:
- the string representing the code that will be inserted into the source code for the Servlet generated for the JSP.
-
coerceToOtherType
protected java.lang.String coerceToOtherType(java.lang.Class<?> c, java.lang.String s, boolean isNamedAttribute)Intended to be used by sub-classes that don't need/want to re-implement the logic inconvertString(Class, String, String, Class, boolean).- Parameters:
c- unuseds- unusedisNamedAttribute- unused- Returns:
- Always
null
-
-