Package org.sonar.python.tree
Class PyCallExpressionTreeImpl
- java.lang.Object
-
- org.sonar.python.tree.PyTree
-
- org.sonar.python.tree.PyCallExpressionTreeImpl
-
- All Implemented Interfaces:
PyCallExpressionTree,PyExpressionTree,Tree
public class PyCallExpressionTreeImpl extends PyTree implements PyCallExpressionTree
-
-
Constructor Summary
Constructors Constructor Description PyCallExpressionTreeImpl(com.sonar.sslr.api.AstNode astNode, PyExpressionTree callee, PyArgListTree argumentList, com.sonar.sslr.api.AstNode leftPar, com.sonar.sslr.api.AstNode rightPar)PyCallExpressionTreeImpl(PyExpressionTree callee, PyArgListTree argumentList, com.sonar.sslr.api.AstNode leftPar, com.sonar.sslr.api.AstNode rightPar)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(PyTreeVisitor visitor)PyArgListTreeargumentList()List<PyArgumentTree>arguments()Utility method to returnargumentList().arguments()or an empty list when argumentList is null.PyExpressionTreecallee()List<Tree>children()Tree.KindgetKind()com.sonar.sslr.api.TokenleftPar()com.sonar.sslr.api.TokenrightPar()-
Methods inherited from class org.sonar.python.tree.PyTree
astNode, firstToken, is, lastToken, parent, setParent
-
-
-
-
Constructor Detail
-
PyCallExpressionTreeImpl
public PyCallExpressionTreeImpl(com.sonar.sslr.api.AstNode astNode, PyExpressionTree callee, @Nullable PyArgListTree argumentList, com.sonar.sslr.api.AstNode leftPar, com.sonar.sslr.api.AstNode rightPar)
-
PyCallExpressionTreeImpl
public PyCallExpressionTreeImpl(PyExpressionTree callee, @Nullable PyArgListTree argumentList, com.sonar.sslr.api.AstNode leftPar, com.sonar.sslr.api.AstNode rightPar)
-
-
Method Detail
-
callee
public PyExpressionTree callee()
- Specified by:
calleein interfacePyCallExpressionTree
-
argumentList
public PyArgListTree argumentList()
- Specified by:
argumentListin interfacePyCallExpressionTree
-
arguments
public List<PyArgumentTree> arguments()
Description copied from interface:PyCallExpressionTreeUtility method to returnargumentList().arguments()or an empty list when argumentList is null.- Specified by:
argumentsin interfacePyCallExpressionTree
-
leftPar
public com.sonar.sslr.api.Token leftPar()
- Specified by:
leftParin interfacePyCallExpressionTree
-
rightPar
public com.sonar.sslr.api.Token rightPar()
- Specified by:
rightParin interfacePyCallExpressionTree
-
accept
public void accept(PyTreeVisitor visitor)
-
-