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
public class ParameterImpl extends PyTree implements Parameter
-
-
Constructor Summary
Constructors Constructor Description ParameterImpl(com.sonar.sslr.api.AstNode node, Token starToken, Name name, TypeAnnotation annotation, Token equalToken, Expression defaultValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(TreeVisitor visitor)List<Tree>children()ExpressiondefaultValue()TokenequalToken()Tree.KindgetKind()Namename()TokenstarToken()TypeAnnotationtypeAnnotation()-
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.Tree
ancestors, astNode, descendants, descendants, firstToken, is, lastToken, parent
-
-
-
-
Constructor Detail
-
ParameterImpl
public ParameterImpl(com.sonar.sslr.api.AstNode node, @Nullable Token starToken, Name name, @Nullable TypeAnnotation annotation, @Nullable Token equalToken, @Nullable Expression defaultValue)
-
-
Method Detail
-
starToken
@CheckForNull public Token starToken()
-
typeAnnotation
@CheckForNull public TypeAnnotation typeAnnotation()
- Specified by:
typeAnnotationin interfaceParameter
-
equalToken
@CheckForNull public Token equalToken()
- Specified by:
equalTokenin interfaceParameter
-
defaultValue
@CheckForNull public Expression defaultValue()
- Specified by:
defaultValuein interfaceParameter
-
accept
public void accept(TreeVisitor visitor)
-
-