Class TokenImpl

    • Constructor Detail

      • TokenImpl

        public TokenImpl​(com.sonar.sslr.api.Token token)
    • Method Detail

      • line

        public int line()
        Specified by:
        line in interface Token
      • column

        public int column()
        Specified by:
        column in interface Token
      • type

        public com.sonar.sslr.api.TokenType type()
        Specified by:
        type in interface Token
      • computeChildren

        public List<Tree> computeChildren()
      • 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.