/* // $Id: //guest/paul_dymecki/mondrian/src/main/mondrian/olap/fun/ResolverBase.java#1 $ // (C) Copyright 2002 Kana Software, Inc. // This software is subject to the terms of the Common Public License // Agreement, available at the following URL: // http://www.opensource.org/licenses/cpl.html. // (C) Copyright 2002 Kana Software, Inc. and others. // All Rights Reserved. // You must accept the terms of that agreement to use this software. // // jhyde, 3 March, 2002 */ package mondrian.olap.fun; import mondrian.olap.Exp; import mondrian.olap.FunDef; /** * <code>ResolverBase</code> provides a skeleton implementation of * <code>interface {@link Resolver}</code> * * @author jhyde * @since 3 March, 2002 * @version $Id: //guest/paul_dymecki/mondrian/src/main/mondrian/olap/fun/ResolverBase.java#1 $ **/ abstract class ResolverBase extends FunUtil implements Resolver { String name; String description; int syntacticType; ResolverBase( String name, String signature, String description, int syntacticType) { this.name = name; this.description = description; this.syntacticType = syntacticType; } public String getName() { return name; } public FunDef resolve( int syntacticType, Exp[] args, int[] conversionCount) { if (syntacticType == this.syntacticType) { return resolve(args, conversionCount); } else { return null; } } protected abstract FunDef resolve(Exp[] args, int[] conversionCount); } // End ResolverBase.java
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 1820 | Paul Robert Dymecki | mondrian: Integrate latest from //guest/julian_hyde | ||
//guest/julian_hyde/mondrian/src/main/mondrian/olap/fun/ResolverBase.java | |||||
#2 | 1603 | Julian Hyde |
mondrian: Add Andreas' taglib; Rename 'mondrian.rolap.Util.assert' to 'assertTrue', because 'assert' is a keyword in jdk 1.4; Fix 'NON EMPTY'; JUnit framework for tests; Add Oracle dataset. |
||
#1 | 1499 | Julian Hyde |
Mondrian: Re-organize functions and type-checking Add mondrian.olap.fun package |