|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eigenbase.xom.XMLUtil
org.eigenbase.xom.XOMUtil
mondrian.olap.Util
mondrian.olap.fun.FunUtil
mondrian.olap.fun.FunDefBase
mondrian.olap.fun.ParameterFunDef
public class ParameterFunDef
A ParameterFunDef is a pseudo-function describing calls to
Parameter and ParamRef functions. It exists only
fleetingly, and is then converted into a Parameter.
For internal use only.
| Nested Class Summary | |
|---|---|
static class |
ParameterFunDef.ParameterResolver
Resolves calls to the Parameter MDX function. |
static class |
ParameterFunDef.ParamRefResolver
Resolves calls to the ParamRef MDX function. |
| Nested classes/interfaces inherited from class mondrian.olap.fun.FunUtil |
|---|
FunUtil.DescendingValueComparator, FunUtil.Flag, FunUtil.ObjIntPair<T>, FunUtil.OrderKey, FunUtil.Quicksorter<T>, FunUtil.SetWrapper, FunUtil.SortKeySpec, FunUtil.TupleExpMemoComparator |
| Nested classes/interfaces inherited from class mondrian.olap.Util |
|---|
Util.AbstractFlatList<T>, Util.ErrorCellValue, Util.Flat2List<T>, Util.Flat3List<T>, Util.Functor1<RT,PT>, Util.GcIterator<T>, Util.MemoryInfo, Util.PropertyList, Util.SqlNullSafeComparator |
| Field Summary | |
|---|---|
Exp |
exp
|
String |
parameterDescription
|
String |
parameterName
|
| Fields inherited from class mondrian.olap.fun.FunDefBase |
|---|
flags, parameterCategories, returnCategory, signature |
| Fields inherited from class mondrian.olap.fun.FunUtil |
|---|
BooleanNull, DoubleEmpty, DoubleNull, emptyStringArray, IntegerNull, NullMember |
| Fields inherited from class mondrian.olap.Util |
|---|
DEBUG, EmptyValue, IBM_JVM, JdbcVersion, nl, nullValue, PreJdk15, PreJdk16, Retrowoven |
| Constructor Summary | |
|---|---|
ParameterFunDef(FunDef funDef,
String parameterName,
Type type,
int returnCategory,
Exp exp,
String description)
|
|
| Method Summary | |
|---|---|
Exp |
createCall(Validator validator,
Exp[] args)
Creates an expression which represents a call to this function with a given set of arguments. |
static String |
getParameterName(Exp[] args)
|
static Type |
getParameterType(Exp[] args)
Returns an approximate type for a parameter, based upon the 1'th argument. |
Type |
getResultType(Validator validator,
Exp[] args)
Returns the type of a call to this function with a given set of arguments. The default implementation makes the coarse assumption that the return type is in some way related to the type of the first argument. |
| Methods inherited from class mondrian.olap.fun.FunDefBase |
|---|
castType, compileCall, getDescription, getName, getParameterCategories, getReturnCategory, getSignature, getSyntax, unparse, validateArg |
| Methods inherited from class org.eigenbase.xom.XOMUtil |
|---|
addChild, addChild, addChildren, addElement, concatenate, createDefaultParser, discard, discard, discard, discard, discard, discard, discard, discard, discard, getFirstInstance, wrapperToXml |
| Methods inherited from class org.eigenbase.xom.XMLUtil |
|---|
getFirstTagName, printAtt, printAtt, printAtt, printAtt, printPCDATA, printPCDATA, printPCDATA, quoteAtt, quoteAtt, quoteAtt, quoteAtt, quotePCDATA, stringEncodeXML, stringHasXMLSpecials |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final String parameterName
public final Exp exp
public final String parameterDescription
| Constructor Detail |
|---|
ParameterFunDef(FunDef funDef,
String parameterName,
Type type,
int returnCategory,
Exp exp,
String description)
| Method Detail |
|---|
public Exp createCall(Validator validator,
Exp[] args)
FunDefResolvedFunCall but
not always.
createCall in interface FunDefcreateCall in class FunDefBase
public Type getResultType(Validator validator,
Exp[] args)
FunDefBase
getResultType in class FunDefBasevalidator - Validatorargs - Arguments to the call to this operator
public static String getParameterName(Exp[] args)
public static Type getParameterType(Exp[] args)
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||