Package org.rumbledb.expressions.primary
Class InlineFunctionExpression
java.lang.Object
org.rumbledb.expressions.Node
org.rumbledb.expressions.Expression
org.rumbledb.expressions.primary.InlineFunctionExpression
-
Field Summary
Fields inherited from class org.rumbledb.expressions.Expression
expressionClassification, isSequential, staticContext, staticSequenceType
Fields inherited from class org.rumbledb.expressions.Node
highestExecutionMode
-
Constructor Summary
ConstructorsConstructorDescriptionInlineFunctionExpression
(List<Annotation> annotations, Name name, Map<Name, SequenceType> params, SequenceType returnType, StatementsAndOptionalExpr body, boolean isExternal, ExceptionMetadata metadata) InlineFunctionExpression
(List<Annotation> annotations, Name name, Map<Name, SequenceType> params, SequenceType returnType, StatementsAndOptionalExpr body, ExceptionMetadata metadata) -
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(AbstractNodeVisitor<T> visitor, T argument) Accept method for the visitor pattern.getBody()
Returns all children nodes as a list.getName()
boolean
boolean
boolean
boolean
Tells whether this node is an updating expression or not.void
print
(StringBuffer buffer, int indent) Prints the node tree to a string buffer.void
registerUserDefinedFunctionExecutionMode
(VisitorConfig visitorConfig) void
serializeToJSONiq
(StringBuffer sb, int indent) void
setHasExitStatement
(boolean hasExitStatement) Methods inherited from class org.rumbledb.expressions.Expression
alwaysReturnsAtMostOneItem, getExpressionClassification, getStaticContext, getStaticContextForRuntime, getStaticSequenceType, isSequential, isUnset, isUpdatingNonSequential, setExpressionClassification, setSequential, setStaticContext, setStaticSequenceType
Methods inherited from class org.rumbledb.expressions.Node
getDescendants, getDescendantsMatching, getHighestExecutionMode, getHighestExecutionMode, getMetadata, indentIt, isContextDependent, numberOfUnsetExecutionModes, setHighestExecutionMode, toString
-
Constructor Details
-
InlineFunctionExpression
public InlineFunctionExpression(List<Annotation> annotations, Name name, Map<Name, SequenceType> params, SequenceType returnType, StatementsAndOptionalExpr body, boolean isExternal, ExceptionMetadata metadata) -
InlineFunctionExpression
public InlineFunctionExpression(List<Annotation> annotations, Name name, Map<Name, SequenceType> params, SequenceType returnType, StatementsAndOptionalExpr body, ExceptionMetadata metadata)
-
-
Method Details
-
getName
-
getFunctionIdentifier
-
getParams
-
getReturnType
-
getActualReturnType
-
getBody
-
getAnnotations
-
isUpdating
public boolean isUpdating()Description copied from class:Expression
Tells whether this node is an updating expression or not.- Overrides:
isUpdating
in classExpression
- Returns:
- true if yes, false otherwise.
-
isExternal
public boolean isExternal() -
getChildren
Description copied from class:Node
Returns all children nodes as a list. The list is new and can be modified at will by the caller.- Specified by:
getChildren
in classNode
- Returns:
- the children nodes as a list.
-
registerUserDefinedFunctionExecutionMode
-
accept
Description copied from class:Node
Accept method for the visitor pattern. -
print
Description copied from class:Node
Prints the node tree to a string buffer.- Overrides:
print
in classExpression
- Parameters:
buffer
- a string buffer to write toindent
- the current level of indentation
-
serializeToJSONiq
- Specified by:
serializeToJSONiq
in classNode
-
hasSequentialPropertyAnnotation
public boolean hasSequentialPropertyAnnotation() -
setHasExitStatement
public void setHasExitStatement(boolean hasExitStatement) -
hasExitStatement
public boolean hasExitStatement()
-