| Package | jp.nium.utils |
| Class | public final class ClassUtil |
| Inheritance | ClassUtil Object |
| Method | Defined By | ||
|---|---|---|---|
getClassName(target:*):String [static]
対象のクラス名を返します。
Returns the class name of the object.
| ClassUtil | ||
getClassPath(target:*):String [static]
対象のクラスパスを返します。
Returns the class path of the object.
| ClassUtil | ||
getPackage(target:*):String [static]
対象のパッケージを返します。
Returns the package of the object.
| ClassUtil | ||
isDynamic(target:*):Boolean [static]
対象のクラスに dynamic 属性が設定されているかどうかを返します。
Returns if the dynamic attribute is set to the class object.
| ClassUtil | ||
isFinal(target:*):Boolean [static]
対象のクラスに final 属性が設定されているかどうかを返します。
Returns if the final attribute is set to the class object.
| ClassUtil | ||
| getClassName | () | method |
public static function getClassName(target:*):String対象のクラス名を返します。 Returns the class name of the object.
Parameters
target:* — クラス名を取得する対象です。
The object to get the class name.
|
String —
クラス名です。
The class name.
|
trace( ClassUtil.getClassName( MovieClip ) ); // MovieClip
trace( ClassUtil.getClassName( new MovieClip() ) ); // MovieClip
| getClassPath | () | method |
public static function getClassPath(target:*):String対象のクラスパスを返します。 Returns the class path of the object.
Parameters
target:* — クラスパスを取得する対象です。
The class path of the object.
|
String —
クラスパスです。
The class path.
|
trace( ClassUtil.getClassPath( MovieClip ) ); // flash.display.MovieClip
trace( ClassUtil.getClassPath( new MovieClip() ) ); // flash.display.MovieClip
| getPackage | () | method |
public static function getPackage(target:*):String対象のパッケージを返します。 Returns the package of the object.
Parameters
target:* — パッケージを取得する対象です。
The object to get the package.
|
String —
パッケージです。
The package.
|
trace( ClassUtil.getPackage( MovieClip ) ); // flash.display
trace( ClassUtil.getPackage( new MovieClip() ) ); // flash.display
| isDynamic | () | method |
public static function isDynamic(target:*):Boolean対象のクラスに dynamic 属性が設定されているかどうかを返します。 Returns if the dynamic attribute is set to the class object.
Parameters
target:* — dynamic 属性の有無を調べる対象です。
The object to check if the dynamic attribute is set or not.
|
Boolean —
dynamic 属性があれば true を、違っていれば false を返します。
Returns true if dynamic attribute is set, otherwise return false.
|
trace( ClassUtil.isDynamic( new Sprite() ) ); // false
trace( ClassUtil.isDynamic( new MovieClip() ) ); // true
| isFinal | () | method |
public static function isFinal(target:*):Boolean対象のクラスに final 属性が設定されているかどうかを返します。 Returns if the final attribute is set to the class object.
Parameters
target:* — final 属性の有無を調べる対象です。
The object to check if the final attribute is set or not.
|
Boolean —
final 属性があれば true を、違っていれば false を返します。
Returns true if final attribute is set, otherwise return false.
|
trace( ClassUtil.isFinal( new MovieClip() ) ); // false
trace( ClassUtil.isFinal( new String() ) ); // true