ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/el/parser/AstMethodParameters.java

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

      
    
Rootfs path

      
    
Size
2148 (2.1 KB)
MD5
81545746206aa31b24687a9d92a757f6
SHA1
0a24c2a1af986a356f830467336f68724672e4a8
SHA256
bd6194aa08d37c185eec8b941922385dcce70b382a816d05bad7c9d284804243
SHA512

      
    
SHA1_git
251ae295d2e3be04aa6b4ed4d61be20da4da9d40
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
AstMethodParameters.java | 2.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. */ /* Generated By:JJTree: Do not edit this line. AstDotSuffix.java */ package org.apache.el.parser; import org.apache.el.lang.EvaluationContext; public final class AstMethodParameters extends SimpleNode { private static final Object[] EMPTY_OBJECT_ARRAY = new Object[0]; public AstMethodParameters(int id) { super(id); } public Object[] getParameters(EvaluationContext ctx) { int numChildren = this.jjtGetNumChildren(); // Optimise simple case if (numChildren == 0) { return EMPTY_OBJECT_ARRAY; } Object[] params = new Object[numChildren]; for (int i = 0; i < numChildren; i++) { params[i] = this.jjtGetChild(i).getValue(ctx); } return params; } @Override public String toString() { // Purely for debug purposes. May not be complete or correct. Certainly // is not efficient. Be sure not to call this from 'real' code. StringBuilder result = new StringBuilder(); result.append('('); if (children != null) { for (Node n : children) { result.append(n.toString()); result.append(','); } } result.append(')'); return result.toString(); } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
47.22
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