ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/el/lang/LambdaExpressionNestedState.java

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

      
    
Rootfs path

      
    
Size
1937 (1.9 KB)
MD5
0d9498bd6be553a2095069a752b7028f
SHA1
9e15572db39e51be57ea684c9ea85783fa692157
SHA256
da8173907f8a3bef6099056ad8f94fea83f0ae2c89dbc612d3d64aaa5cad6cdd
SHA512

      
    
SHA1_git
43e6ab449aa86bb2502b1a338f378e4fc61b39f1
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
LambdaExpressionNestedState.java | 1.9 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.el.lang; /** * Stores the state required for correct evaluation of lambda expressions. Lambda expressions may be nested. Correct * evaluation requires knowledge not just of the current lambda expression, but also of any nested and nesting * expressions. * <p> * The sets of nodes for parsed expressions are cached and, as a result, a set of nodes may be being used by multiple * concurrent threads. This means any state relating to evaluation cannot be stored in the nodes. State is therefore * stored in the {@link EvaluationContext} which is created, used for a single evaluation and then discarded. */ public final class LambdaExpressionNestedState { private int nestingCount = 0; private boolean hasFormalParameters = false; public void incrementNestingCount() { nestingCount++; } public int getNestingCount() { return nestingCount; } public void setHasFormalParameters() { hasFormalParameters = true; } public boolean getHasFormalParameters() { return hasFormalParameters; } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
49.17
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