Interface Parameter
-
- All Superinterfaces:
AnyParameter,Tree
- All Known Implementing Classes:
ParameterImpl
public interface Parameter extends AnyParameter
or (star parameter)name()typeAnnotation()=defaultValue()*
or
See https://docs.python.org/3/reference/compound_stmts.html#grammar-token-parameterstarToken()name()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExpressiondefaultValue()TokenequalToken()Namename()TokenstarToken()Represents both '*' and '**'TypeAnnotationtypeAnnotation()
-
-
-
Method Detail
-
starToken
@CheckForNull Token starToken()
Represents both '*' and '**'
-
name
@CheckForNull Name name()
- Returns:
- null only in case of star parameter
-
typeAnnotation
@CheckForNull TypeAnnotation typeAnnotation()
-
equalToken
@CheckForNull Token equalToken()
-
defaultValue
@CheckForNull Expression defaultValue()
-
-