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, staticSequenceTypeFields inherited from class org.rumbledb.expressions.Node
highestExecutionMode, isInSequentialBlock -
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, boolean isExternal, ExceptionMetadata metadata, ExceptionMetadata nameMetadata) InlineFunctionExpression(List<Annotation> annotations, Name name, Map<Name, SequenceType> params, SequenceType returnType, StatementsAndOptionalExpr body, ExceptionMetadata metadata) -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(AbstractNodeVisitor<T> visitor, T argument) Accept method for the visitor pattern.Returns all children nodes as a list.booleanbooleanbooleanTells whether this node is an updating expression or not.voidprint(StringBuilder buffer, int indent) Prints the node tree to a string buffer.voidregisterUserDefinedFunctionExecutionMode(VisitorConfig visitorConfig) voidserializeToJSONiq(StringBuilder sb, int indent) Methods inherited from class org.rumbledb.expressions.Expression
alwaysReturnsAtMostOneItem, getStaticContextForRuntime, isUnset, isUpdatingNonSequential, setIsInSequentialBlock, setSequentialMethods inherited from class org.rumbledb.expressions.Node
getDescendants, getDescendantsMatching, getHighestExecutionMode, indentIt, isContextDependent, numberOfUnsetExecutionModes, 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, boolean isExternal, ExceptionMetadata metadata, ExceptionMetadata nameMetadata) -
InlineFunctionExpression
public InlineFunctionExpression(List<Annotation> annotations, Name name, Map<Name, SequenceType> params, SequenceType returnType, StatementsAndOptionalExpr body, ExceptionMetadata metadata)
-
-
Method Details
-
getReturnType
-
getActualReturnType
-
getAnnotations
-
isUpdating
public boolean isUpdating()Description copied from class:ExpressionTells whether this node is an updating expression or not.- Overrides:
isUpdatingin classExpression- Returns:
- true if yes, false otherwise.
-
getChildren
Description copied from class:NodeReturns all children nodes as a list. The list is new and can be modified at will by the caller.- Specified by:
getChildrenin classNode- Returns:
- the children nodes as a list.
-
registerUserDefinedFunctionExecutionMode
-
accept
Description copied from class:NodeAccept method for the visitor pattern. -
print
Description copied from class:NodePrints the node tree to a string buffer.- Overrides:
printin classExpression- Parameters:
buffer- a string buffer to write toindent- the current level of indentation
-
serializeToJSONiq
- Specified by:
serializeToJSONiqin classNode
-
hasSequentialPropertyAnnotation
public boolean hasSequentialPropertyAnnotation() -
hasExitStatement
public boolean hasExitStatement()
-