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