Class InlineFunctionExpression

java.lang.Object
org.rumbledb.expressions.Node
org.rumbledb.expressions.Expression
org.rumbledb.expressions.primary.InlineFunctionExpression

public class InlineFunctionExpression extends Expression
  • Constructor Details

  • Method Details

    • getName

      public Name getName()
    • getFunctionIdentifier

      public FunctionIdentifier getFunctionIdentifier()
    • getParams

      public Map<Name,SequenceType> getParams()
    • getReturnType

      public SequenceType getReturnType()
    • getActualReturnType

      public SequenceType getActualReturnType()
    • getBody

      public StatementsAndOptionalExpr getBody()
    • getAnnotations

      @Nullable public List<Annotation> getAnnotations()
    • isUpdating

      public boolean isUpdating()
      Description copied from class: Expression
      Tells whether this node is an updating expression or not.
      Overrides:
      isUpdating in class Expression
      Returns:
      true if yes, false otherwise.
    • isExternal

      public boolean isExternal()
    • getChildren

      public List<Node> 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 class Node
      Returns:
      the children nodes as a list.
    • registerUserDefinedFunctionExecutionMode

      public void registerUserDefinedFunctionExecutionMode(VisitorConfig visitorConfig)
    • accept

      public <T> T accept(AbstractNodeVisitor<T> visitor, T argument)
      Description copied from class: Node
      Accept method for the visitor pattern.
      Specified by:
      accept in class Node
      Type Parameters:
      T - the type of the objects returned by the visitor.
      Parameters:
      visitor - the visitor.
      argument - the input from the visitor.
      Returns:
      the object returned by this visitor
    • print

      public void print(StringBuffer buffer, int indent)
      Description copied from class: Node
      Prints the node tree to a string buffer.
      Overrides:
      print in class Expression
      Parameters:
      buffer - a string buffer to write to
      indent - the current level of indentation
    • serializeToJSONiq

      public void serializeToJSONiq(StringBuffer sb, int indent)
      Specified by:
      serializeToJSONiq in class Node
    • hasSequentialPropertyAnnotation

      public boolean hasSequentialPropertyAnnotation()
    • setHasExitStatement

      public void setHasExitStatement(boolean hasExitStatement)
    • hasExitStatement

      public boolean hasExitStatement()