Interface Decorator

  • All Superinterfaces:
    Tree
    All Known Implementing Classes:
    DecoratorImpl

    public interface Decorator
    extends Tree
       @name() ( arguments() )
     
    Example:
    @foo.bar()
    See https://docs.python.org/3/reference/compound_stmts.html#grammar-token-decorators
    • Method Detail

      • atToken

        Token atToken()
      • name

        @Deprecated
        DottedName name()
        Deprecated.
        Might return a DottedName containing an empty list of names when the expression is more complex than a qualified name or a call expression (possible since Python 3.9)
      • arguments

        @CheckForNull
        ArgList arguments()