Package org.sonar.python.tree
Class TypeAnnotationImpl
- java.lang.Object
-
- org.sonar.python.tree.PyTree
-
- org.sonar.python.tree.TypeAnnotationImpl
-
- All Implemented Interfaces:
Tree,TypeAnnotation
public class TypeAnnotationImpl extends PyTree implements TypeAnnotation
-
-
Constructor Summary
Constructors Constructor Description TypeAnnotationImpl(Token colonToken, Expression expression)TypeAnnotationImpl(Token dash, Token gt, Expression expression)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(TreeVisitor visitor)List<Tree>children()TokencolonToken()Tokendash()Expressionexpression()Tree.KindgetKind()Tokengt()-
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
-
TypeAnnotationImpl
public TypeAnnotationImpl(Token colonToken, Expression expression)
-
TypeAnnotationImpl
public TypeAnnotationImpl(Token dash, Token gt, Expression expression)
-
-
Method Detail
-
colonToken
@CheckForNull public Token colonToken()
- Specified by:
colonTokenin interfaceTypeAnnotation
-
dash
@CheckForNull public Token dash()
- Specified by:
dashin interfaceTypeAnnotation
-
gt
@CheckForNull public Token gt()
- Specified by:
gtin interfaceTypeAnnotation
-
expression
public Expression expression()
- Specified by:
expressionin interfaceTypeAnnotation
-
accept
public void accept(TreeVisitor visitor)
-
-