ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/jasper/compiler/StringInterpreter.java

Path
ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/jasper/compiler/StringInterpreter.java
Status
scanned
Type
file
Name
StringInterpreter.java
Extension
.java
Programming language
Java
Mime type
text/plain
File type
ASCII text, with CRLF line terminators
Tag

      
    
Rootfs path

      
    
Size
2065 (2.0 KB)
MD5
00fb3f7e6117fbb436f295fa48596d94
SHA1
5a4409ee6f8970ad37abeb71d2416eb2a53aa4f4
SHA256
69fd76f9bc6297c688614159421d43062238a8fccb9d48f172da52412e2bd374
SHA512

      
    
SHA1_git
c2fe78d644ee74861c5f92715b88e4f6d1bdf962
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
StringInterpreter.java | 2.0 KB |

/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.jasper.compiler; /** * Defines the interface for the String interpreter. This allows users to provide custom String interpreter * implementations that can optimise String processing for an application by performing code generation for a sub-set of * Strings. */ public interface StringInterpreter { /** * Generates the source code that represents the conversion of the string value to the appropriate type. * * @param c The target class to which to coerce the given string * @param s The string value * @param attrName The name of the attribute whose value is being supplied * @param propEditorClass The property editor for the given attribute * @param isNamedAttribute true if the given attribute is a named attribute (that is, specified using the * jsp:attribute standard action), and false otherwise * * @return the string representing the code that will be inserted into the source code for the Servlet generated for * the JSP. */ String convertString(Class<?> c, String s, String attrName, Class<?> propEditorClass, boolean isNamedAttribute); }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
44.74
Copyrights

      
    
Holders

      
    
Authors

      
    
License detections License expression License expression SPDX
apache_2_0-4bde3f57-78aa-4201-96bf-531cba09e7de apache-2.0 Apache-2.0
URL Start line End line
http://www.apache.org/licenses/LICENSE-2.0 9 9