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
AST Node representing a method invocation like:
object.method(1,"a")
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionBoxMethodInvocation
(BoxExpression name, BoxExpression obj, List<BoxArgument> arguments, Boolean safe, Boolean usedDotAccess, Position position, String sourceText) Creates the AST nodeBoxMethodInvocation
(BoxIdentifier name, BoxExpression obj, List<BoxArgument> arguments, Position position, String sourceText) -
Method Summary
Modifier and TypeMethodDescriptionAccept method for replacing visitor support.void
Accept method for visitor support.getName()
getObj()
isSafe()
void
setArguments
(List<BoxArgument> arguments) void
setName
(BoxExpression name) void
setObj
(BoxExpression obj) void
void
setUsedDotAccess
(Boolean usedDotAccess) toMap()
Methods inherited from class ortus.boxlang.compiler.ast.BoxExpression
isLiteral
Methods inherited from class ortus.boxlang.compiler.ast.BoxNode
addComment, associateComments, endsOnSameLineAs, enumToMap, getAncestors, getChildren, getComments, getDescendants, getDescendantsOfType, getDocComment, getFirstAncestorOfType, getFirstAncestorOfType, getFirstNodeOfType, getFirstNodeOfType, getFirstNodeOfTypes, getParent, getPosition, getSourceText, isAfter, isBefore, isInside, replaceChildren, replaceChildren, setComments, setParent, setPosition, setSourceText, startsOnEndLineOf, toJSON, toString
-
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 methodobj
- objectarguments
- list of BoxArgument representing the argumentssafe
- true if the method is safeusedDotAccess
- true if the method was accessed using the dot operatorposition
- position of the statement in the source codesourceText
- 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
-
getObj
-
isSafe
-
getUsedDotAccess
-
getArguments
-
setName
-
setObj
-
setArguments
-
setSafe
-
setUsedDotAccess
-
toMap
-
accept
Description copied from interface:BoxVisitable
Accept method for visitor support.- Parameters:
v
- the visitor implementation
-
accept
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
-