Class implementation capabilities overview
mainThe swc4j class implementation supports a wide range of TypeScript-to-JVM features:
- Inheritance: Supports
extends(superclass resolution,super.method()calls, and constructor chaining) andimplements(multiple interface implementation). - Abstract Classes: Supports the
ACC_ABSTRACTflag and abstract method declarations. - Access Modifiers: Supports
public,private(TypeScript keyword),protected, and ES2022 private fields/methods (#field,#method). - Constructors: Supports parameter handling, field initialization, overloading, and constructor chaining (
this()andsuper()). - Members: Supports instance fields, static fields, static methods, and explicit static blocks.
- Generics: Implements type erasure to
Objector constraint types.
Note: Decorators are currently NOT supported as the compiler targets a subset of TypeScript without decorator metaprogramming.