Package org.kie.dmn.feel.lang.ast
Class FunctionDefNode
- java.lang.Object
-
- org.kie.dmn.feel.lang.ast.BaseNode
-
- org.kie.dmn.feel.lang.ast.FunctionDefNode
-
-
Field Summary
-
Fields inherited from class org.kie.dmn.feel.lang.ast.BaseNode
EMPTY_CHILDREN
-
-
Constructor Summary
Constructors Constructor Description FunctionDefNode(org.antlr.v4.runtime.ParserRuleContext ctx, ListNode formalParameters, boolean external, BaseNode body)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Taccept(Visitor<T> v)java.lang.Objectevaluate(EvaluationContext ctx)BaseNodegetBody()ASTNode[]getChildrenNode()java.util.List<FormalParameterNode>getFormalParameters()TypegetResultType()static java.lang.Class<?>getType(java.lang.String typeName, java.lang.ClassLoader classLoader)booleanisExternal()static java.lang.String[]parseMethod(java.lang.String signature)static java.lang.String[]parseParams(java.lang.String params)voidsetBody(BaseNode body)voidsetExternal(boolean external)voidsetFormalParameters(java.util.List<FormalParameterNode> formalParameters)-
Methods inherited from class org.kie.dmn.feel.lang.ast.BaseNode
astEvent, astEvent, copyLocationAttributesFrom, getEndChar, getEndColumn, getEndLine, getStartChar, getStartColumn, getStartLine, getText, setEndChar, setEndColumn, setEndLine, setStartChar, setStartColumn, setStartLine, setText, toString
-
-
-
-
Method Detail
-
getFormalParameters
public java.util.List<FormalParameterNode> getFormalParameters()
-
setFormalParameters
public void setFormalParameters(java.util.List<FormalParameterNode> formalParameters)
-
isExternal
public boolean isExternal()
-
setExternal
public void setExternal(boolean external)
-
getBody
public BaseNode getBody()
-
setBody
public void setBody(BaseNode body)
-
evaluate
public java.lang.Object evaluate(EvaluationContext ctx)
-
getType
public static java.lang.Class<?> getType(java.lang.String typeName, java.lang.ClassLoader classLoader) throws java.lang.ClassNotFoundException- Throws:
java.lang.ClassNotFoundException
-
parseMethod
public static java.lang.String[] parseMethod(java.lang.String signature)
-
parseParams
public static java.lang.String[] parseParams(java.lang.String params)
-
getResultType
public Type getResultType()
- Specified by:
getResultTypein interfaceASTNode- Overrides:
getResultTypein classBaseNode
-
getChildrenNode
public ASTNode[] getChildrenNode()
- Specified by:
getChildrenNodein interfaceASTNode- Overrides:
getChildrenNodein classBaseNode
-
-