Packagejp.nium.utils
Classpublic final class ClassUtil

ClassUtil クラスは、クラス操作のためのユーティリティクラスです。 The ClassUtil class is an utility class for class operation.



Public Methods
 MethodDefined 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
  
isExtended(target:*, cls:Class):Boolean
[static] 対象のインスタンスが指定されたクラスを継承しているかどうかを返します。
ClassUtil
  
isFinal(target:*):Boolean
[static] 対象のクラスに final 属性が設定されているかどうかを返します。 Returns if the final attribute is set to the class object.
ClassUtil
Method detail
getClassName()method
public static function getClassName(target:*):String

対象のクラス名を返します。 Returns the class name of the object.

Parameters
target:*クラス名を取得する対象です。 The object to get the class name.

Returns
Stringクラス名です。 The class name.

Example
   

getClassPath()method 
public static function getClassPath(target:*):String

対象のクラスパスを返します。 Returns the class path of the object.

Parameters
target:*クラスパスを取得する対象です。 The class path of the object.

Returns
Stringクラスパスです。 The class path.

Example
   

getPackage()method 
public static function getPackage(target:*):String

対象のパッケージを返します。 Returns the package of the object.

Parameters
target:*パッケージを取得する対象です。 The object to get the package.

Returns
Stringパッケージです。 The package.

Example
   

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.

Returns
Booleandynamic 属性があれば true を、違っていれば false を返します。 Returns true if dynamic attribute is set, otherwise return false.

Example
   

isExtended()method 
public static function isExtended(target:*, cls:Class):Boolean

対象のインスタンスが指定されたクラスを継承しているかどうかを返します。

Parameters
target:*継承関係を調査したいインスタンスです。
 
cls:Class継承関係を調査委したいクラスです。

Returns
Boolean継承されていれば true を、それ以外の場合には false を返します。

Example
   

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.

Returns
Booleanfinal 属性があれば true を、違っていれば false を返します。 Returns true if final attribute is set, otherwise return false.

Example