C# Class Unicoen.Apps.RefactoringDSL.Util.FindUtil

Exibir arquivo Open project: UnicoenProject/RefactoringDSL

Public Methods

Method Description
FindArrayField ( UnifiedElement element ) : IEnumerable

指定されたノード以下の,配列フィールドの定義を検索し,取得します

FindClassByClassName ( UnifiedProgram program, string className ) : IEnumerable

指定されたクラス名を持つクラスを,プログラム中から検索して取得します

FindGenericsField ( UnifiedElement element, string containerType, string type = "*" ) : IEnumerable

指定されたトップノード以下で,指定されたジェネリクスを持つフィールドを検索し,取得します

GetTypeParameterAsType ( UnifiedGenericType genericType ) : UnifiedType

ジェネリックタイプから,型引数([]の中身)をUnifiedTypeオブジェクトにして取得する (e.g. List[T] なる UnifiedGenericType オブジェクトから,T (UnifiedType オブジェクト) を生成して返却)

Method Details

FindArrayField() public static method

指定されたノード以下の,配列フィールドの定義を検索し,取得します
public static FindArrayField ( UnifiedElement element ) : IEnumerable
element Unicoen.Model.UnifiedElement 検索するトップノード
return IEnumerable

FindClassByClassName() public static method

指定されたクラス名を持つクラスを,プログラム中から検索して取得します
public static FindClassByClassName ( UnifiedProgram program, string className ) : IEnumerable
program UnifiedProgram (トップノードの)プログラムオブジェクト
className string 検索するクラス名
return IEnumerable

FindGenericsField() public static method

指定されたトップノード以下で,指定されたジェネリクスを持つフィールドを検索し,取得します
public static FindGenericsField ( UnifiedElement element, string containerType, string type = "*" ) : IEnumerable
element Unicoen.Model.UnifiedElement 検索するトップノード
containerType string コンテナの型名(e.g. List[T] の List)
type string 型引数の型名(e.g. List[T] の T,'*'はワイルドカード)
return IEnumerable

GetTypeParameterAsType() public static method

ジェネリックタイプから,型引数([]の中身)をUnifiedTypeオブジェクトにして取得する (e.g. List[T] なる UnifiedGenericType オブジェクトから,T (UnifiedType オブジェクト) を生成して返却)
public static GetTypeParameterAsType ( UnifiedGenericType genericType ) : UnifiedType
genericType UnifiedGenericType
return Unicoen.Model.UnifiedType