Package org.faktorips.fl
Class DefaultFunctionResolver<T extends org.faktorips.codegen.CodeFragment>
java.lang.Object
org.faktorips.fl.DefaultFunctionResolver<T>
- Type Parameters:
T- aCodeFragmentimplementation for a specific target language
- All Implemented Interfaces:
FunctionResolver<T>
- Direct Known Subclasses:
LocalizedFunctionsResolver
public class DefaultFunctionResolver<T extends org.faktorips.codegen.CodeFragment>
extends Object
implements FunctionResolver<T>
A default
FunctionResolver.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(FlFunction<T> function) Adds theFlFunction.FlFunction<T>[]Returns the functions that are supported by this resolver.voidremove(FlFunction<T> function) Removes theFlFunctionfrom the resolver.
-
Constructor Details
-
DefaultFunctionResolver
public DefaultFunctionResolver()Creates a new resolver.
-
-
Method Details
-
add
Adds theFlFunction.- Throws:
IllegalArgumentException- if function isnull.
-
remove
Removes theFlFunctionfrom the resolver. Does nothing if the function hasn't been added before.- Throws:
IllegalArgumentException- if function isnull.
-
getFunctions
Description copied from interface:FunctionResolverReturns the functions that are supported by this resolver.- Specified by:
getFunctionsin interfaceFunctionResolver<T extends org.faktorips.codegen.CodeFragment>
-