Package org.drools.compiler.lang.api
Interface FunctionDescrBuilder
-
- All Superinterfaces:
DescrBuilder<PackageDescrBuilder,FunctionDescr>,ParameterSupportBuilder<FunctionDescrBuilder>
- All Known Implementing Classes:
FunctionDescrBuilderImpl
public interface FunctionDescrBuilder extends DescrBuilder<PackageDescrBuilder,FunctionDescr>, ParameterSupportBuilder<FunctionDescrBuilder>
A descriptor builder for functions
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FunctionDescrBuilderbody(String body)Sets the function bodyFunctionDescrBuilderdialect(String dialect)Sets the function dialect.FunctionDescrBuildername(String name)Sets function nameFunctionDescrBuildernamespace(String namespace)Sets an alternate namespace for the functionFunctionDescrBuilderreturnType(String type)Sets function return type-
Methods inherited from interface org.drools.compiler.lang.api.DescrBuilder
end, endCharacter, endLocation, getDescr, startCharacter, startLocation
-
Methods inherited from interface org.drools.compiler.lang.api.ParameterSupportBuilder
parameter
-
-
-
-
Method Detail
-
namespace
FunctionDescrBuilder namespace(String namespace)
Sets an alternate namespace for the function- Parameters:
namespace-- Returns:
- itself
-
name
FunctionDescrBuilder name(String name)
Sets function name- Parameters:
name-- Returns:
- itself
-
returnType
FunctionDescrBuilder returnType(String type)
Sets function return type- Parameters:
type-- Returns:
- itself
-
body
FunctionDescrBuilder body(String body)
Sets the function body- Parameters:
body-- Returns:
- itself
-
dialect
FunctionDescrBuilder dialect(String dialect)
Sets the function dialect. Default is java.- Parameters:
dialect-- Returns:
- itself
-
-