C# Class UniAspect.Processor.Pointcut.Execution

Inheritance: CodeProcessor
Exibir arquivo Open project: UnicoenProject/UniAspect

Public Methods

Method Description
After ( UnifiedElement model, AspectElement target, UnifiedBlock advice ) : void
Around ( UnifiedElement model ) : void
Before ( UnifiedElement model, AspectElement target, UnifiedBlock advice ) : void
InsertAtAfterExecution ( UnifiedElement root, Regex regex, UnifiedBlock advice ) : void

指定された関数ブロックの後に、指定されたコードを共通コードモデルとして挿入します。

InsertAtAfterExecution ( UnifiedElement root, Regex regex, int statementNum, UnifiedBlock advice ) : void

指定された関数ブロックの後に、指定されたコードを共通コードモデルとして挿入します。

InsertAtAfterExecutionAll ( UnifiedElement root, UnifiedBlock advice ) : void

すべての関数の後に、指定されたコードを共通コードモデルとして挿入します。

InsertAtAfterExecutionByName ( UnifiedElement root, string name, UnifiedBlock advice ) : void

名前で指定された関数の後に、指定されたコードを共通コードモデルとして挿入します。

InsertAtAfterExecutionByName ( UnifiedElement root, string name, int statementNum, UnifiedBlock advice ) : void

名前で指定された関数の後に、指定されたコードを共通コードモデルとして挿入します。

InsertAtBeforeExecution ( UnifiedElement root, Regex regex, Type element, UnifiedBlock advice ) : void

指定された関数ブロックの先頭に、指定されたコードを共通コードモデルとして挿入します。

InsertAtBeforeExecution ( UnifiedElement root, Regex regex, UnifiedBlock advice ) : void

指定された関数ブロックの先頭に、指定されたコードを共通コードモデルとして挿入します。

InsertAtBeforeExecution ( UnifiedElement root, Regex regex, int statementNum, UnifiedBlock advice ) : void

指定された関数ブロックの先頭に、指定されたコードを共通コードモデルとして挿入します。

InsertAtBeforeExecutionAll ( UnifiedElement root, UnifiedBlock advice ) : void

すべての関数ブロックの先頭に、指定されたコードを共通コードモデルとして挿入します。

InsertAtBeforeExecutionByName ( UnifiedElement root, string name, Type element, UnifiedBlock advice ) : void

名前で指定された関数ブロックの先頭に、指定されたコードを共通コードモデルとして挿入します。

InsertAtBeforeExecutionByName ( UnifiedElement root, string name, UnifiedBlock advice ) : void

名前で指定された関数ブロックの先頭に、指定されたコードを共通コードモデルとして挿入します。

InsertAtBeforeExecutionByName ( UnifiedElement root, string name, int statementNum, UnifiedBlock advice ) : void

名前で指定された関数ブロックの先頭に、指定されたコードを共通コードモデルとして挿入します。

ReplaceSpecialToken ( UnifiedBlock old, string functionName ) : UnifiedBlock

指定されたアドバイスに含まれる特殊文字を指定された関数名に置き換えます

Method Details

After() public method

public After ( UnifiedElement model, AspectElement target, UnifiedBlock advice ) : void
model Unicoen.Model.UnifiedElement
target AspectElement
advice UnifiedBlock
return void

Around() public method

public Around ( UnifiedElement model ) : void
model Unicoen.Model.UnifiedElement
return void

Before() public method

public Before ( UnifiedElement model, AspectElement target, UnifiedBlock advice ) : void
model Unicoen.Model.UnifiedElement
target AspectElement
advice UnifiedBlock
return void

InsertAtAfterExecution() public static method

指定された関数ブロックの後に、指定されたコードを共通コードモデルとして挿入します。
public static InsertAtAfterExecution ( UnifiedElement root, Regex regex, UnifiedBlock advice ) : void
root Unicoen.Model.UnifiedElement コードを追加するモデルのルートノード
regex System.Text.RegularExpressions.Regex 対象関数を指定する正規表現
advice UnifiedBlock 挿入するコード断片
return void

InsertAtAfterExecution() public static method

指定された関数ブロックの後に、指定されたコードを共通コードモデルとして挿入します。
public static InsertAtAfterExecution ( UnifiedElement root, Regex regex, int statementNum, UnifiedBlock advice ) : void
root Unicoen.Model.UnifiedElement コードを追加するモデルのルートノード
regex System.Text.RegularExpressions.Regex 対象関数を指定する正規表現
statementNum int 対象関数に含まれるstatement数の下限を指定する閾値
advice UnifiedBlock 挿入するコード断片
return void

InsertAtAfterExecutionAll() public static method

すべての関数の後に、指定されたコードを共通コードモデルとして挿入します。
public static InsertAtAfterExecutionAll ( UnifiedElement root, UnifiedBlock advice ) : void
root Unicoen.Model.UnifiedElement コードを追加するモデルのルートノード
advice UnifiedBlock 挿入するコード断片
return void

InsertAtAfterExecutionByName() public static method

名前で指定された関数の後に、指定されたコードを共通コードモデルとして挿入します。
public static InsertAtAfterExecutionByName ( UnifiedElement root, string name, UnifiedBlock advice ) : void
root Unicoen.Model.UnifiedElement コードを追加するモデルのルートノード
name string 対象関数の名前
advice UnifiedBlock 挿入するコード断片
return void

InsertAtAfterExecutionByName() public static method

名前で指定された関数の後に、指定されたコードを共通コードモデルとして挿入します。
public static InsertAtAfterExecutionByName ( UnifiedElement root, string name, int statementNum, UnifiedBlock advice ) : void
root Unicoen.Model.UnifiedElement コードを追加するモデルのルートノード
name string 対象関数の名前
statementNum int 対象関数に含まれるstatement数の下限を指定する閾値
advice UnifiedBlock 挿入するコード断片
return void

InsertAtBeforeExecution() public static method

指定された関数ブロックの先頭に、指定されたコードを共通コードモデルとして挿入します。
public static InsertAtBeforeExecution ( UnifiedElement root, Regex regex, Type element, UnifiedBlock advice ) : void
root Unicoen.Model.UnifiedElement コードを追加するモデルのルートノード
regex System.Text.RegularExpressions.Regex 対象関数を指定する正規表現
element System.Type
advice UnifiedBlock 挿入するコード断片
return void

InsertAtBeforeExecution() public static method

指定された関数ブロックの先頭に、指定されたコードを共通コードモデルとして挿入します。
public static InsertAtBeforeExecution ( UnifiedElement root, Regex regex, UnifiedBlock advice ) : void
root Unicoen.Model.UnifiedElement コードを追加するモデルのルートノード
regex System.Text.RegularExpressions.Regex 対象関数を指定する正規表現
advice UnifiedBlock 挿入するコード断片
return void

InsertAtBeforeExecution() public static method

指定された関数ブロックの先頭に、指定されたコードを共通コードモデルとして挿入します。
public static InsertAtBeforeExecution ( UnifiedElement root, Regex regex, int statementNum, UnifiedBlock advice ) : void
root Unicoen.Model.UnifiedElement コードを追加するモデルのルートノード
regex System.Text.RegularExpressions.Regex 対象関数を指定する正規表現
statementNum int 対象関数に含まれるstatement数の下限を指定する閾値
advice UnifiedBlock 挿入するコード断片
return void

InsertAtBeforeExecutionAll() public static method

すべての関数ブロックの先頭に、指定されたコードを共通コードモデルとして挿入します。
public static InsertAtBeforeExecutionAll ( UnifiedElement root, UnifiedBlock advice ) : void
root Unicoen.Model.UnifiedElement コードを追加するモデルのルートノード
advice UnifiedBlock 挿入するコード断片
return void

InsertAtBeforeExecutionByName() public static method

名前で指定された関数ブロックの先頭に、指定されたコードを共通コードモデルとして挿入します。
public static InsertAtBeforeExecutionByName ( UnifiedElement root, string name, Type element, UnifiedBlock advice ) : void
root Unicoen.Model.UnifiedElement コードを追加するモデルのルートノード
name string 対象関数の名前
element System.Type
advice UnifiedBlock 挿入するコード断片
return void

InsertAtBeforeExecutionByName() public static method

名前で指定された関数ブロックの先頭に、指定されたコードを共通コードモデルとして挿入します。
public static InsertAtBeforeExecutionByName ( UnifiedElement root, string name, UnifiedBlock advice ) : void
root Unicoen.Model.UnifiedElement コードを追加するモデルのルートノード
name string 対象関数の名前
advice UnifiedBlock 挿入するコード断片
return void

InsertAtBeforeExecutionByName() public static method

名前で指定された関数ブロックの先頭に、指定されたコードを共通コードモデルとして挿入します。
public static InsertAtBeforeExecutionByName ( UnifiedElement root, string name, int statementNum, UnifiedBlock advice ) : void
root Unicoen.Model.UnifiedElement コードを追加するモデルのルートノード
name string 対象関数の名前
statementNum int 対象関数に含まれるstatement数の下限を指定する閾値
advice UnifiedBlock 挿入するコード断片
return void

ReplaceSpecialToken() public static method

指定されたアドバイスに含まれる特殊文字を指定された関数名に置き換えます
public static ReplaceSpecialToken ( UnifiedBlock old, string functionName ) : UnifiedBlock
old UnifiedBlock
functionName string
return UnifiedBlock