Package org.sonar.python.tree
Class DecoratorImpl
- java.lang.Object
-
- org.sonar.python.tree.PyTree
-
- org.sonar.python.tree.SimpleStatement
-
- org.sonar.python.tree.DecoratorImpl
-
public class DecoratorImpl extends SimpleStatement implements Decorator
Even if decorator is not a statement, it extendsSimpleStatementin order to properly resolve its last token as it's a newline token
-
-
Field Summary
-
Fields inherited from class org.sonar.python.tree.PyTree
firstToken, lastToken
-
-
Constructor Summary
Constructors Constructor Description DecoratorImpl(Token atToken, DottedName dottedName, Token lPar, ArgList argListTree, Token rPar, Token newLineToken)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(TreeVisitor visitor)ArgListarguments()TokenatToken()List<Tree>computeChildren()Tree.KindgetKind()TokenleftPar()DottedNamename()TokenrightPar()-
Methods inherited from class org.sonar.python.tree.SimpleStatement
lastToken
-
Methods inherited from class org.sonar.python.tree.PyTree
children, firstToken, is, parent, setParent
-
-
-
-
Method Detail
-
name
public DottedName name()
-
leftPar
@CheckForNull public Token leftPar()
-
arguments
@CheckForNull public ArgList arguments()
-
rightPar
@CheckForNull public Token rightPar()
-
accept
public void accept(TreeVisitor visitor)
-
-