Package mondrian.olap.fun
Class FunTableImpl
java.lang.Object
mondrian.olap.fun.FunTableImpl
- All Implemented Interfaces:
FunTable
- Direct Known Subclasses:
BuiltinFunTable,CustomizedFunctionTable,GlobalFunTable
Abstract implementation of
FunTable.
The derived class must implement
FunTable.defineFunctions(mondrian.olap.FunTable.Builder) to define
each function which will be recognized by this table. This method is called
from the constructor, after which point, no further functions can be added.
-
Nested Class Summary
Nested classes/interfaces inherited from interface mondrian.olap.FunTable
FunTable.Builder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a list ofFunInfoobjects.Returns a list of words (String) which may not be used as identifiers.Returns a list ofResolverobjects.getResolvers(String name, Syntax syntax) Returns a list of resolvers for an operator with a given name and syntax.final voidinit()Initializes the function table.booleanisProperty(String s) Returns whether a string is a property-style (postfix) operator.booleanisReserved(String s) Returns whether a string is a reserved word.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface mondrian.olap.FunTable
defineFunctions
-
Constructor Details
-
FunTableImpl
protected FunTableImpl()Creates a FunTableImpl.
-
-
Method Details
-
init
public final void init()Initializes the function table. -
getReservedWords
Description copied from interface:FunTableReturns a list of words (String) which may not be used as identifiers.- Specified by:
getReservedWordsin interfaceFunTable
-
isReserved
Description copied from interface:FunTableReturns whether a string is a reserved word.- Specified by:
isReservedin interfaceFunTable
-
getResolvers
Description copied from interface:FunTableReturns a list ofResolverobjects.- Specified by:
getResolversin interfaceFunTable
-
isProperty
Description copied from interface:FunTableReturns whether a string is a property-style (postfix) operator. This is used during parsing to disambiguate functions from unquoted member names.- Specified by:
isPropertyin interfaceFunTable
-
getFunInfoList
Description copied from interface:FunTableReturns a list ofFunInfoobjects.- Specified by:
getFunInfoListin interfaceFunTable
-
getResolvers
Description copied from interface:FunTableReturns a list of resolvers for an operator with a given name and syntax. Never returns null; if there are no resolvers, returns the empty list.- Specified by:
getResolversin interfaceFunTable- Parameters:
name- Operator namesyntax- Operator syntax- Returns:
- List of resolvers for the operator
-