Class BoxMethodInvocation

java.lang.Object
ortus.boxlang.compiler.ast.BoxNode
ortus.boxlang.compiler.ast.BoxExpression
ortus.boxlang.compiler.ast.expression.BoxMethodInvocation
All Implemented Interfaces:
BoxVisitable

public class BoxMethodInvocation extends BoxExpression
AST Node representing a method invocation like: object.method(1,"a")
  • Constructor Details

    • BoxMethodInvocation

      public BoxMethodInvocation(BoxExpression name, BoxExpression obj, List<BoxArgument> arguments, Boolean safe, Boolean usedDotAccess, Position position, String sourceText)
      Creates the AST node
      Parameters:
      name - name of the method
      obj - object
      arguments - list of BoxArgument representing the arguments
      safe - true if the method is safe
      usedDotAccess - true if the method was accessed using the dot operator
      position - position of the statement in the source code
      sourceText - source code that originated the Node
      See Also:
    • BoxMethodInvocation

      public BoxMethodInvocation(BoxIdentifier name, BoxExpression obj, List<BoxArgument> arguments, Position position, String sourceText)
  • Method Details

    • getName

      public BoxExpression getName()
    • getObj

      public BoxExpression getObj()
    • isSafe

      public Boolean isSafe()
    • getUsedDotAccess

      public Boolean getUsedDotAccess()
    • getArguments

      public List<BoxArgument> getArguments()
    • setName

      public void setName(BoxExpression name)
    • setObj

      public void setObj(BoxExpression obj)
    • setArguments

      public void setArguments(List<BoxArgument> arguments)
    • setSafe

      public void setSafe(Boolean safe)
    • setUsedDotAccess

      public void setUsedDotAccess(Boolean usedDotAccess)
    • toMap

      public Map<String,Object> toMap()
      Overrides:
      toMap in class BoxNode
    • accept

      public void accept(VoidBoxVisitor v)
      Description copied from interface: BoxVisitable
      Accept method for visitor support.
      Parameters:
      v - the visitor implementation
    • accept

      public BoxNode accept(ReplacingBoxVisitor v)
      Description copied from interface: BoxVisitable
      Accept method for replacing visitor support. Each accept returns the node, or a replacement node.
      Parameters:
      v - the visitor implementation