Package org.faktorips.fl.functions
Class AbstractBaseFlFunction<T extends org.faktorips.codegen.CodeFragment>
java.lang.Object
org.faktorips.fl.FunctionSignatureImpl
org.faktorips.fl.functions.AbstractBaseFlFunction<T>
- Type Parameters:
T- aCodeFragmentimplementation for a specific target language
- All Implemented Interfaces:
FlFunction<T>,FunctionSignature
- Direct Known Subclasses:
AbstractBaseVarArgFunction,AbstractFlFunction
public abstract class AbstractBaseFlFunction<T extends org.faktorips.codegen.CodeFragment>
extends FunctionSignatureImpl
implements FlFunction<T>
Abstract default implementation of
FlFunction.-
Constructor Summary
ConstructorsConstructorDescriptionAbstractBaseFlFunction(String name, String description, org.faktorips.datatype.Datatype type, org.faktorips.datatype.Datatype argType) Creates a new function signature with a variable argument list.AbstractBaseFlFunction(String name, String description, org.faktorips.datatype.Datatype type, org.faktorips.datatype.Datatype[] argTypes) Creates a new function with a defined argument list.AbstractBaseFlFunction(String name, String description, FunctionSignatures signature) Creates a new function with a defined argument list. -
Method Summary
Modifier and TypeMethodDescriptionOverridden Method.Overridden Method.voidsetCompiler(ExprCompiler<T> compiler) Sets the compiler in which the function is used.voidsetDescription(String description) Overridden Method.Methods inherited from class org.faktorips.fl.FunctionSignatureImpl
getArgTypes, getName, getType, hasVarArgs, isSame, match, matchUsingConversion, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.faktorips.fl.FlFunction
compileMethods inherited from interface org.faktorips.fl.FunctionSignature
getArgTypes, getName, getType, hasVarArgs, isSame, match, matchUsingConversion
-
Constructor Details
-
AbstractBaseFlFunction
Creates a new function with a defined argument list. -
AbstractBaseFlFunction
public AbstractBaseFlFunction(String name, String description, org.faktorips.datatype.Datatype type, org.faktorips.datatype.Datatype[] argTypes) Creates a new function with a defined argument list. -
AbstractBaseFlFunction
public AbstractBaseFlFunction(String name, String description, org.faktorips.datatype.Datatype type, org.faktorips.datatype.Datatype argType) Creates a new function signature with a variable argument list.- Parameters:
name- the name of this functiondescription- a description of this functiontype- the return type of this functionargType- defines the Datatype of the arguments in the variable argument list
-
-
Method Details
-
setCompiler
Description copied from interface:FlFunctionSets the compiler in which the function is used.- Specified by:
setCompilerin interfaceFlFunction<T extends org.faktorips.codegen.CodeFragment>
-
getCompiler
Overridden Method.- Specified by:
getCompilerin interfaceFlFunction<T extends org.faktorips.codegen.CodeFragment>- See Also:
-
getDescription
Overridden Method.- Specified by:
getDescriptionin interfaceFlFunction<T extends org.faktorips.codegen.CodeFragment>- See Also:
-
setDescription
Overridden Method.- Specified by:
setDescriptionin interfaceFlFunction<T extends org.faktorips.codegen.CodeFragment>- See Also:
-