Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
オブジェクトがインターフェースを実装しているかどうかを確認するにはどうすればよいですか?言い換えれば、オブジェクトを特定のタイプ(特定のインターフェイスなど)にキャストできるかどうかを確認する可能性が必要です。
Std.is()。または、安全なキャストを使用すると、失敗するとエラーがスローされます。
Std.is()
オブジェクトを作成して、クラスが見つからない例外をキャッチすることができます。