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
-
-
Constructor Summary
Constructors Constructor Description CallExpressionImpl(com.sonar.sslr.api.AstNode astNode, Expression callee, ArgList argumentList, Token leftPar, Token rightPar)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>children()Tree.KindgetKind()TokenleftPar()TokenrightPar()-
Methods inherited from class org.sonar.python.tree.PyTree
astNode, 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.python.api.tree.CallExpression
calleeSymbol
-
Methods inherited from interface org.sonar.python.api.tree.Tree
ancestors, astNode, descendants, descendants, firstToken, is, lastToken, parent
-
-
-
-
Constructor Detail
-
CallExpressionImpl
public CallExpressionImpl(com.sonar.sslr.api.AstNode astNode, Expression callee, @Nullable ArgList argumentList, Token leftPar, Token rightPar)
-
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)
-
-