Package org.sonar.python.tree
Class CallExpressionImpl
- java.lang.Object
-
- org.sonar.python.tree.PyTree
-
- org.sonar.python.tree.CallExpressionImpl
-
- All Implemented Interfaces:
CallExpression,Expression,Tree
public class CallExpressionImpl extends PyTree implements CallExpression
-
-
Field Summary
-
Fields inherited from class org.sonar.python.tree.PyTree
firstToken, lastToken
-
-
Constructor Summary
Constructors Constructor Description CallExpressionImpl(Expression callee, ArgList argumentList, Token leftPar, Token rightPar)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(TreeVisitor visitor)ArgListargumentList()List<Argument>arguments()Utility method to returnargumentList().arguments()or an empty list when argumentList is null.Expressioncallee()List<Tree>computeChildren()Tree.KindgetKind()TokenleftPar()TokenrightPar()-
Methods inherited from class org.sonar.python.tree.PyTree
children, firstToken, is, lastToken, parent, setParent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.sonar.plugins.python.api.tree.CallExpression
calleeSymbol
-
-
-
-
Constructor Detail
-
CallExpressionImpl
public CallExpressionImpl(Expression callee, @Nullable ArgList argumentList, Token leftPar, Token rightPar)
-
-
Method Detail
-
callee
public Expression callee()
- Specified by:
calleein interfaceCallExpression
-
argumentList
public ArgList argumentList()
- Specified by:
argumentListin interfaceCallExpression
-
arguments
public List<Argument> arguments()
Description copied from interface:CallExpressionUtility method to returnargumentList().arguments()or an empty list when argumentList is null.- Specified by:
argumentsin interfaceCallExpression
-
leftPar
public Token leftPar()
- Specified by:
leftParin interfaceCallExpression
-
rightPar
public Token rightPar()
- Specified by:
rightParin interfaceCallExpression
-
accept
public void accept(TreeVisitor visitor)
-
-