Class CrossJoinTest.NullFunDef

  • All Implemented Interfaces:
    FunDef
    Enclosing class:
    CrossJoinTest

    public static class CrossJoinTest.NullFunDef
    extends java.lang.Object
    implements FunDef
    • Constructor Summary

      Constructors 
      Constructor Description
      NullFunDef()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Calc compileCall​(ResolvedFunCall call, ExpCompiler compiler)
      Converts a call to this function into executable objects.
      Exp createCall​(Validator validator, Exp[] args)
      Creates an expression which represents a call to this function with a given set of arguments.
      java.lang.String getDescription()
      Returns the description of this function.
      java.lang.String getName()
      Returns the name of this function.
      int[] getParameterCategories()
      Returns the types of the arguments of this function.
      int getReturnCategory()
      Returns the Category code of the value returned by this function.
      java.lang.String getSignature()
      Returns an English description of the signature of the function, for example "<Numeric Expression> / <Numeric Expression>".
      Syntax getSyntax()
      Returns the syntactic type of the function.
      void unparse​(Exp[] args, java.io.PrintWriter pw)
      Converts a function call into MDX source code.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NullFunDef

        NullFunDef()
    • Method Detail

      • getSyntax

        public Syntax getSyntax()
        Description copied from interface: FunDef
        Returns the syntactic type of the function.
        Specified by:
        getSyntax in interface FunDef
      • getName

        public java.lang.String getName()
        Description copied from interface: FunDef
        Returns the name of this function.
        Specified by:
        getName in interface FunDef
      • getDescription

        public java.lang.String getDescription()
        Description copied from interface: FunDef
        Returns the description of this function.
        Specified by:
        getDescription in interface FunDef
      • getReturnCategory

        public int getReturnCategory()
        Description copied from interface: FunDef
        Returns the Category code of the value returned by this function.
        Specified by:
        getReturnCategory in interface FunDef
      • getParameterCategories

        public int[] getParameterCategories()
        Description copied from interface: FunDef
        Returns the types of the arguments of this function. Values are the same as those returned by Exp.getCategory(). The 0th argument of methods and properties are the object they are applied to. Infix operators have two arguments, and prefix operators have one argument.
        Specified by:
        getParameterCategories in interface FunDef
      • createCall

        public Exp createCall​(Validator validator,
                              Exp[] args)
        Description copied from interface: FunDef
        Creates an expression which represents a call to this function with a given set of arguments. The result is usually a ResolvedFunCall but not always.
        Specified by:
        createCall in interface FunDef
      • getSignature

        public java.lang.String getSignature()
        Description copied from interface: FunDef
        Returns an English description of the signature of the function, for example "<Numeric Expression> / <Numeric Expression>".
        Specified by:
        getSignature in interface FunDef
      • unparse

        public void unparse​(Exp[] args,
                            java.io.PrintWriter pw)
        Description copied from interface: FunDef
        Converts a function call into MDX source code.
        Specified by:
        unparse in interface FunDef
      • compileCall

        public Calc compileCall​(ResolvedFunCall call,
                                ExpCompiler compiler)
        Description copied from interface: FunDef
        Converts a call to this function into executable objects.

        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.

        Specified by:
        compileCall in interface FunDef