Class PyTree

    • Field Detail

      • firstToken

        protected Token firstToken
      • lastToken

        protected Token lastToken
    • Constructor Detail

      • PyTree

        protected PyTree()
    • Method Detail

      • is

        public boolean is​(Tree.Kind... kinds)
        Specified by:
        is in interface Tree
      • lastToken

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

        public Tree parent()
        Specified by:
        parent in interface Tree
      • setParent

        protected void setParent​(Tree parent)