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