|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eigenbase.xom.XMLUtil org.eigenbase.xom.XOMUtil mondrian.olap.Util mondrian.olap.fun.FunUtil mondrian.olap.fun.FunDefBase mondrian.olap.fun.JavaFunDef
public class JavaFunDef
MDX function which is implemented by a Java method. When the function is executed, the method is invoked via reflection.
Nested Class Summary | |
---|---|
static interface |
JavaFunDef.Description
Annotation which allows you to tag a Java method with the description of the MDX function it implements. |
static interface |
JavaFunDef.FunctionName
Annotation which allows you to tag a Java method with the name of the MDX function it implements. |
static interface |
JavaFunDef.Signature
Annotation which allows you to tag a Java method with the signature of the MDX function it implements. |
static interface |
JavaFunDef.SyntaxDef
Annotation which allows you to tag a Java method with the syntax of the MDX function it implements. |
Nested classes/interfaces inherited from class mondrian.olap.fun.FunUtil |
---|
FunUtil.SetWrapper |
Nested classes/interfaces inherited from class mondrian.olap.Util |
---|
Util.ErrorCellValue, Util.PropertyList |
Field Summary |
---|
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 |
---|
EmptyValue, JdbcVersion, nl, nullValue, PreJdk15, Retrowoven |
Constructor Summary | |
---|---|
JavaFunDef(String name,
String desc,
Syntax syntax,
int returnCategory,
int[] paramCategories,
Method method)
Creates a JavaFunDef. |
Method Summary | |
---|---|
Calc |
compileCall(ResolvedFunCall call,
ExpCompiler compiler)
Converts a call to this function into executable objects. |
static List<FunDef> |
scan(Class clazz)
Scans a java class and returns a list of function definitions, one for each static method which is suitable to become an MDX function. |
Methods inherited from class mondrian.olap.fun.FunDefBase |
---|
castType, createCall, getDescription, getName, getParameterCategories, getResultType, getReturnCategory, getSignature, getSyntax, unparse, validateArg |
Methods inherited from class org.eigenbase.xom.XOMUtil |
---|
addAll, addAll, addChild, addChild, addChildren, addElement, concatenate, createDefaultParser, discard, discard, discard, discard, discard, discard, discard, discard, discard, getFirstInstance, toList, toVector, 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 |
Constructor Detail |
---|
public JavaFunDef(String name, String desc, Syntax syntax, int returnCategory, int[] paramCategories, Method method)
name
- Namedesc
- Descriptionsyntax
- SyntaxreturnCategory
- Return typeparamCategories
- Parameter typesmethod
- Java method which implements this functionMethod Detail |
---|
public Calc compileCall(ResolvedFunCall call, ExpCompiler compiler)
FunDef
The result must implement the appropriate interface for the result
type. For example, a function which returns an integer must return
an object which implements IntegerCalc
.
compileCall
in interface FunDef
compileCall
in class FunDefBase
public static List<FunDef> scan(Class clazz)
clazz
- Class
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |