Package org.drools.compiler.lang.descr
Class FunctionDescr
- java.lang.Object
-
- org.drools.compiler.lang.descr.BaseDescr
-
- org.drools.compiler.lang.descr.FunctionDescr
-
- All Implemented Interfaces:
Externalizable,Serializable,org.drools.core.rule.Dialectable,org.drools.core.rule.Namespaceable
public class FunctionDescr extends BaseDescr implements org.drools.core.rule.Dialectable, org.drools.core.rule.Namespaceable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FunctionDescr()FunctionDescr(String name, String returnType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddParameter(String type, String name)StringgetBody()StringgetClassName()StringgetDialect()StringgetName()intgetOffset()List<String>getParameterNames()List<String>getParameterTypes()StringgetReturnType()voidsetBody(String body)voidsetClassName(String className)voidsetDialect(String dialect)voidsetName(String name)voidsetOffset(int offset)voidsetReturnType(String type)StringtoString()-
Methods inherited from class org.drools.compiler.lang.descr.BaseDescr
accept, copyLocation, getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getNamespace, getResource, getStartCharacter, getText, isNegated, negate, positionAsString, readExternal, replaceVariable, setEndCharacter, setEndLocation, setLocation, setNamespace, setResource, setStartCharacter, setText, writeExternal
-
-
-
-
Method Detail
-
getName
public String getName()
-
setName
public void setName(String name)
-
setDialect
public void setDialect(String dialect)
-
getDialect
public String getDialect()
- Specified by:
getDialectin interfaceorg.drools.core.rule.Dialectable
-
getClassName
public String getClassName()
-
setClassName
public void setClassName(String className)
-
getReturnType
public String getReturnType()
-
setReturnType
public void setReturnType(String type)
-
setBody
public void setBody(String body)
-
getBody
public String getBody()
-
getOffset
public int getOffset()
-
setOffset
public void setOffset(int offset)
-
-