rangefundef.java
来自「数据仓库展示程序」· Java 代码 · 共 49 行
JAVA
49 行
/*
// $Id: //open/mondrian/src/main/mondrian/olap/fun/RangeFunDef.java#6 $
// 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-2005 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.Category;
import mondrian.olap.Exp;
import mondrian.olap.ExpBase;
import mondrian.olap.Syntax;
import java.io.PrintWriter;
/**
* <code>RangeFunDef</code> implements the ':' operator.
*
* @author jhyde
* @since 3 March, 2002
* @version $Id: //open/mondrian/src/main/mondrian/olap/fun/RangeFunDef.java#6 $
**/
class RangeFunDef extends FunDefBase {
RangeFunDef() {
super(
":",
"{<Member> : <Member>}",
"Infix colon operator returns the set of members between a given pair of members.",
Syntax.Infix,
Category.Set,
new int[] {Category.Member, Category.Member});
}
public void unparse(Exp[] args, PrintWriter pw) {
ExpBase.unparseList(pw, args, "{", " : ", "}");
}
public int getReturnCategory() {
return Category.Set;
}
public int[] getParameterTypes() {
return new int[] {Category.Member, Category.Member};
}
}
// End RangeFunDef.java
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?