Class SimpleStatement

java.lang.Object
org.sonar.python.tree.PyTree
org.sonar.python.tree.SimpleStatement
All Implemented Interfaces:
Tree
Direct Known Subclasses:
AnnotatedAssignmentImpl, AssertStatementImpl, AssignmentStatementImpl, BreakStatementImpl, CompoundAssignmentStatementImpl, ContinueStatementImpl, DecoratorImpl, DelStatementImpl, ExecStatementImpl, ExpressionStatementImpl, GlobalStatementImpl, ImportFromImpl, ImportNameImpl, NonlocalStatementImpl, PassStatementImpl, PrintStatementImpl, RaiseStatementImpl, ReturnStatementImpl, TypeAliasStatementImpl, YieldStatementImpl

public abstract class SimpleStatement extends PyTree
  • Constructor Details

    • SimpleStatement

      public SimpleStatement()
  • Method Details

    • lastToken

      public Token lastToken()
      Specified by:
      lastToken in interface Tree
      Overrides:
      lastToken in class PyTree
      Returns:
      the last meaningful token of the Tree. Separators of simple statements (semicolon and/or newline) are not be returned by this method.