ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/jakarta/el/ELResolver.java

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

      
    
Rootfs path

      
    
Size
6671 (6.5 KB)
MD5
d8d21d4d5240314bf01c0b3bb7d34743
SHA1
51fa579ac33d461674f449d8f1862b099d2082c7
SHA256
5b0251e3edf4fa17fcc33ff04543456839ec57b17f614b9735c75bdfd41d1bbf
SHA512

      
    
SHA1_git
d40ae69856bc74d974f67ec3abaff8e50c866ba1
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
ELResolver.java | 6.5 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 jakarta.el; public abstract class ELResolver { /** * Obtain the value of the given property on the given object using the given context. * * @param context The EL context for this evaluation * @param base The base object on which the property is to be found * @param property The property whose value is to be returned * * @return the value of the provided property * * @throws NullPointerException If the supplied context is <code>null</code> * @throws PropertyNotFoundException If the base/property combination provided to the resolver is one that the * resolver can handle but no match was found or a match was found but was not * readable * @throws ELException Wraps any exception throw whilst resolving the property */ public abstract Object getValue(ELContext context, Object base, Object property); /** * Invokes a method on the given object. * * @param context The EL context for this evaluation * @param base The base object on which the method is to be found * @param method The method to invoke * @param paramTypes The types of the parameters of the method to invoke * @param params The parameters with which to invoke the method * * @return This default implementation always returns <code>null</code> * * @since EL 2.2 */ public Object invoke(ELContext context, Object base, Object method, Class<?>[] paramTypes, Object[] params) { return null; } /** * Obtain the most generally acceptable type that may be used to set the given property on the given object using * the given context. * * @param context The EL context for this evaluation * @param base The base object on which the property is to be found * @param property The property whose type is to be returned * * @return the most general type that maybe used to set the provided property or {@code null} if the resolver is * read-only. * * @throws NullPointerException If the supplied context is <code>null</code> * @throws PropertyNotFoundException If the base/property combination provided to the resolver is one that the * resolver can handle but no match was found or a match was found but was not * readable * @throws ELException Wraps any exception throw whilst resolving the property */ public abstract Class<?> getType(ELContext context, Object base, Object property); /** * Set the value of the given property on the given object using the given context. * * @param context The EL context for this evaluation * @param base The base object on which the property is to be found * @param property The property whose value is to be set * @param value The value to set the property to * * @throws NullPointerException If the supplied context is <code>null</code> * @throws PropertyNotFoundException If the base/property combination provided to the resolver is one that the * resolver can handle but no match was found * @throws PropertyNotWritableException If the base/property combination provided to the resolver is one that the * resolver can handle but the property was not writable * @throws ELException Wraps any exception throw whilst resolving the property */ public abstract void setValue(ELContext context, Object base, Object property, Object value); /** * Determine if the given property on the given object is read-only using the given context. * * @param context The EL context for this evaluation * @param base The base object on which the property is to be found * @param property The property to be checked for read only status * * @return <code>true</code> if the identified property is read only, otherwise <code>false</code> * * @throws NullPointerException If the supplied context is <code>null</code> * @throws PropertyNotFoundException If the base/property combination provided to the resolver is one that the * resolver can handle but no match was found * @throws ELException Wraps any exception throw whilst resolving the property */ public abstract boolean isReadOnly(ELContext context, Object base, Object property); /** * Obtain the most common type that is acceptable for the given base object. * * @param context The context in which the examination takes place * @param base The object to examine * * @return {code null} if the most common type cannot be determined, otherwise the most common type */ public abstract Class<?> getCommonPropertyType(ELContext context, Object base); /** * Converts the given object to the given type. * * @param <T> The type to which the object should be converted * @param context The EL context for this evaluation * @param obj The object to convert * @param type The type to which the object should be converted * * @return This default implementation always returns <code>null</code> * * @since EL 3.0 */ public <T> T convertToType(ELContext context, Object obj, Class<T> type) { context.setPropertyResolved(false); return null; } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
14.32
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