Class ClassDef

  • All Implemented Interfaces:
    AST

    public class ClassDef
    extends Statement
    • Constructor Detail

      • ClassDef

        public ClassDef​(java.lang.String name)
      • ClassDef

        public ClassDef​(java.lang.String name,
                        Expression arguments)
      • ClassDef

        public ClassDef​(java.lang.String name,
                        Statement body)
      • ClassDef

        public ClassDef​(java.lang.String name,
                        Statement body,
                        java.util.List<Decorator> decoratorList)
    • Method Detail

      • setName

        public void setName​(Identifier name)
      • getArguments

        public java.util.Optional<Expression> getArguments()
      • setArguments

        public void setArguments​(java.util.Optional<Expression> arguments)
      • setBody

        public void setBody​(Statement body)
      • getDecoratorList

        public java.util.List<Decorator> getDecoratorList()
      • setDecoratorList

        public void setDecoratorList​(java.util.List<Decorator> decoratorList)
      • getClassDefs

        public java.util.List<ClassDef> getClassDefs()
      • getFunctionDefs

        public java.util.List<FunctionDef> getFunctionDefs()
      • getDecorators

        public java.util.List<Decorator> getDecorators()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object