Package org.sonar.python.tree
Class PyParameterTreeImpl
- java.lang.Object
-
- org.sonar.python.tree.PyTree
-
- org.sonar.python.tree.PyParameterTreeImpl
-
- All Implemented Interfaces:
PyAnyParameterTree,PyParameterTree,Tree
public class PyParameterTreeImpl extends PyTree implements PyParameterTree
-
-
Constructor Summary
Constructors Constructor Description PyParameterTreeImpl(com.sonar.sslr.api.AstNode node, com.sonar.sslr.api.Token starToken, PyNameTree name, PyTypeAnnotationTree annotation, com.sonar.sslr.api.Token equalToken, PyExpressionTree defaultValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(PyTreeVisitor visitor)List<Tree>children()PyExpressionTreedefaultValue()com.sonar.sslr.api.TokenequalToken()Tree.KindgetKind()PyNameTreename()com.sonar.sslr.api.TokenstarToken()PyTypeAnnotationTreetypeAnnotation()-
Methods inherited from class org.sonar.python.tree.PyTree
astNode, firstToken, is, lastToken, parent, setParent
-
-
-
-
Constructor Detail
-
PyParameterTreeImpl
public PyParameterTreeImpl(com.sonar.sslr.api.AstNode node, @Nullable com.sonar.sslr.api.Token starToken, PyNameTree name, @Nullable PyTypeAnnotationTree annotation, @Nullable com.sonar.sslr.api.Token equalToken, @Nullable PyExpressionTree defaultValue)
-
-
Method Detail
-
starToken
@CheckForNull public com.sonar.sslr.api.Token starToken()
- Specified by:
starTokenin interfacePyParameterTree
-
name
public PyNameTree name()
- Specified by:
namein interfacePyParameterTree
-
typeAnnotation
@CheckForNull public PyTypeAnnotationTree typeAnnotation()
- Specified by:
typeAnnotationin interfacePyParameterTree
-
equalToken
@CheckForNull public com.sonar.sslr.api.Token equalToken()
- Specified by:
equalTokenin interfacePyParameterTree
-
defaultValue
@CheckForNull public PyExpressionTree defaultValue()
- Specified by:
defaultValuein interfacePyParameterTree
-
accept
public void accept(PyTreeVisitor visitor)
-
-