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

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

      
    
Rootfs path

      
    
Size
4232 (4.1 KB)
MD5
065aadb8fe298fc53007218484fb42b5
SHA1
27b391c02845bcd07f518529c11bd5b6b5e54395
SHA256
444a60955f5d1049389d4a22193fee5ec6c668730a6f9e5c7ebae5a69c6fc7ca
SHA512

      
    
SHA1_git
208175291baf3efcbc0472f77d441c50f05ae883
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
ValueExpression.java | 4.1 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; import java.io.Serial; public abstract class ValueExpression extends Expression { @Serial private static final long serialVersionUID = 8577809572381654673L; /** * @param <T> The expected type for the result of evaluating this value expression * @param context The EL context for this evaluation * * @return The result of evaluating this value expression * * @throws NullPointerException If the supplied context is <code>null</code> * @throws PropertyNotFoundException If a property/variable resolution failed because no match was found or a match * was found but was not readable * @throws ELException Wraps any exception throw whilst resolving a property or variable */ public abstract <T> T getValue(ELContext context); /** * @param context The EL context for this evaluation * @param value The value to set the property to which this value expression refers * * @throws NullPointerException If the supplied context is <code>null</code> * @throws PropertyNotFoundException If a property/variable resolution failed because no match was found * @throws PropertyNotWritableException If a property/variable resolution failed because a match was found but was * not writable * @throws ELException Wraps any exception throw whilst resolving a property or variable */ public abstract void setValue(ELContext context, Object value); /** * @param context The EL context for this evaluation * * @return <code>true</code> if this expression is read only otherwise <code>false</code> * * @throws NullPointerException If the supplied context is <code>null</code> * @throws PropertyNotFoundException If a property/variable resolution failed because no match was found or a match * was found but was not readable * @throws ELException Wraps any exception throw whilst resolving a property or variable */ public abstract boolean isReadOnly(ELContext context); /** * @param context The EL context for this evaluation * * @return The type of the result of this value expression * * @throws NullPointerException If the supplied context is <code>null</code> * @throws PropertyNotFoundException If a property/variable resolution failed because no match was found or a match * was found but was not readable * @throws ELException Wraps any exception throw whilst resolving a property or variable */ public abstract Class<?> getType(ELContext context); public abstract Class<?> getExpectedType(); /** * @param context The EL context for this evaluation * * @return This default implementation always returns <code>null</code> * * @since EL 2.2 */ public ValueReference getValueReference(ELContext context) { // Expected to be over-ridden by implementation context.notifyBeforeEvaluation(getExpressionString()); context.notifyAfterEvaluation(getExpressionString()); return null; } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
25.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