Package org.sonar.python.tree
Class ParameterImpl
java.lang.Object
org.sonar.python.tree.PyTree
org.sonar.python.tree.ParameterImpl
- All Implemented Interfaces:
AnyParameter,Parameter,Tree
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.sonar.python.tree.PyTree
firstToken, lastToken -
Constructor Summary
ConstructorsConstructorDescriptionParameterImpl(Token starToken) constructor for star parameter syntax.ParameterImpl(Token starToken, Name name, TypeAnnotation annotation, Token equalToken, Expression defaultValue) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(TreeVisitor visitor) getKind()name()Represents both '*' and '**'Methods inherited from class org.sonar.python.tree.PyTree
children, firstToken, is, lastToken, parent, setParent
-
Constructor Details
-
ParameterImpl
public ParameterImpl(@Nullable Token starToken, Name name, @Nullable TypeAnnotation annotation, @Nullable Token equalToken, @Nullable Expression defaultValue) -
ParameterImpl
constructor for star parameter syntax. def fun(arg1, *, arg2)
-
-
Method Details
-
starToken
Description copied from interface:ParameterRepresents both '*' and '**' -
name
-
typeAnnotation
- Specified by:
typeAnnotationin interfaceParameter
-
equalToken
- Specified by:
equalTokenin interfaceParameter
-
defaultValue
- Specified by:
defaultValuein interfaceParameter
-
getKind
-
accept
-
computeChildren
-