001    /*
002    // $Id: //open/mondrian/src/main/mondrian/olap/fun/ResolverBase.java#11 $
003    // This software is subject to the terms of the Common Public License
004    // Agreement, available at the following URL:
005    // http://www.opensource.org/licenses/cpl.html.
006    // Copyright (C) 2002-2002 Kana Software, Inc.
007    // Copyright (C) 2002-2006 Julian Hyde and others
008    // All Rights Reserved.
009    // You must accept the terms of that agreement to use this software.
010    //
011    // jhyde, 3 March, 2002
012    */
013    package mondrian.olap.fun;
014    
015    import mondrian.olap.Syntax;
016    import mondrian.olap.FunDef;
017    
018    /**
019     * <code>ResolverBase</code> provides a skeleton implementation of
020     * <code>interface {@link Resolver}</code>
021     *
022     * @author jhyde
023     * @since 3 March, 2002
024     * @version $Id: //open/mondrian/src/main/mondrian/olap/fun/ResolverBase.java#11 $
025     */
026    abstract class ResolverBase extends FunUtil implements Resolver {
027        private final String name;
028        private final String signature;
029        private final String description;
030        private final Syntax syntax;
031    
032        ResolverBase(String name,
033                     String signature,
034                     String description,
035                     Syntax syntax) {
036            this.name = name;
037            this.signature = signature;
038            this.description = description;
039            this.syntax = syntax;
040        }
041    
042        public String getName() {
043            return name;
044        }
045    
046        public String getSignature() {
047            return signature;
048        }
049    
050        public FunDef getFunDef() {
051            return null;
052        }
053    
054        public String getDescription() {
055            return description;
056        }
057    
058        public Syntax getSyntax() {
059            return syntax;
060        }
061    
062        public boolean requiresExpression(int k) {
063            return false;
064        }
065    
066        public String[] getReservedWords() {
067            return emptyStringArray;
068        }
069    }
070    
071    // End ResolverBase.java