001 /* 002 * Licensed to the Apache Software Foundation (ASF) under one 003 * or more contributor license agreements. See the NOTICE file 004 * distributed with this work for additional information 005 * regarding copyright ownership. The ASF licenses this file 006 * to you under the Apache License, Version 2.0 (the 007 * "License"); you may not use this file except in compliance 008 * with the License. You may obtain a copy of the License at 009 * 010 * http://www.apache.org/licenses/LICENSE-2.0 011 * 012 * Unless required by applicable law or agreed to in writing, 013 * software distributed under the License is distributed on an 014 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 015 * KIND, either express or implied. See the License for the 016 * specific language governing permissions and limitations 017 * under the License. 018 */ 019 020 // 021 // This source code implements specifications defined by the Java 022 // Community Process. In order to remain compliant with the specification 023 // DO NOT add / change / or delete method signatures! 024 // 025 026 package javax.servlet.jsp.tagext; 027 028 /** 029 * Information for a function in a Tag Library. 030 * This class is instantiated from the Tag Library Descriptor file (TLD) 031 * and is available only at translation time. 032 * 033 * @since 2.0 034 */ 035 public class FunctionInfo { 036 037 /** 038 * Constructor for FunctionInfo. 039 * 040 * @param name The name of the function 041 * @param klass The class of the function 042 * @param signature The signature of the function 043 */ 044 045 public FunctionInfo(String name, String klass, String signature) { 046 047 this.name = name; 048 this.functionClass = klass; 049 this.functionSignature = signature; 050 } 051 052 /** 053 * The name of the function. 054 * 055 * @return The name of the function 056 */ 057 058 public String getName() { 059 return name; 060 } 061 062 /** 063 * The class of the function. 064 * 065 * @return The class of the function 066 */ 067 068 public String getFunctionClass() { 069 return functionClass; 070 } 071 072 /** 073 * The signature of the function. 074 * 075 * @return The signature of the function 076 */ 077 078 public String getFunctionSignature() { 079 return functionSignature; 080 } 081 082 /* 083 * fields 084 */ 085 086 private String name; 087 private String functionClass; 088 private String functionSignature; 089 }