Documentation ¶
Index ¶
- func ArgsToFunctionArgs(argType string, name string, fields []*FieldDef) []ast.Stmt
- func AssignAspect(name, pkg, function string) *ast.AssignStmt
- func AssignBeyondContext(imports map[string]string) *ast.AssignStmt
- func CallAspectBefore(name string) *ast.CallExpr
- func CallAspectReturning(name string) *ast.CallExpr
- func CallCreateAspect(pkg, name string) ast.Expr
- func CallCreateBeyondContext(imports map[string]string) *ast.CallExpr
- func CallFunction(currentPkg, pkg, name string, fields []*FieldDef) *ast.CallExpr
- func CallFunctionAndAssign(currentPkg, pkg, name string, params, results []*FieldDef) ast.Stmt
- func CallMethod(objName string, currentPkg, pkg, name string, fields []*FieldDef) ast.Expr
- func CallMethodAndAssign(recv *ast.FieldList, currentPkg, pkg, name string, params, results []*FieldDef) ast.Stmt
- func FuncDecl(name string, params, results []*ast.Field, stmts []ast.Stmt) *ast.FuncDecl
- func GetImports(file *ast.File) map[string]string
- func IfAdviceIsCompleted(results []*FieldDef) ast.Stmt
- func NewIdent(name string) *ast.Ident
- func NewIdentObj(name string) *ast.Ident
- func NewIdentObjVar(name string) *ast.Ident
- func ReturnValuesStmt(fields []*FieldDef) ast.Stmt
- func SetArgValue(name string, field *FieldDef, paramName string) ast.Expr
- func SetArgs(method string, name string) ast.Stmt
- func SetUpBeyondContext(f *joinpoint.JoinPoint) []ast.Stmt
- func TakeArgs(name string, method string, declare bool) ast.Stmt
- type FieldDef
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArgsToFunctionArgs ¶
ArgsToFunctionArgs return the list of statements
func AssignAspect ¶
func AssignAspect(name, pkg, function string) *ast.AssignStmt
AssignAspect create a new assignment
func AssignBeyondContext ¶
func AssignBeyondContext(imports map[string]string) *ast.AssignStmt
AssignBeyondContext create a new assignment
func CallAspectBefore ¶
CallAspectBefore reutrn the call expression
func CallAspectReturning ¶
CallAspectReturning reutrn the call expression
func CallCreateAspect ¶
CallCreateAspect return the call expression
func CallCreateBeyondContext ¶
CallCreateBeyondContext reutrn the call expression
func CallFunction ¶
CallFunction return the call expression
func CallFunctionAndAssign ¶
CallFunctionAndAssign create a new assignment
func CallMethod ¶
CallMethod return the call expression
func CallMethodAndAssign ¶
func CallMethodAndAssign(recv *ast.FieldList, currentPkg, pkg, name string, params, results []*FieldDef) ast.Stmt
CallMethodAndAssign create a new assignment
func IfAdviceIsCompleted ¶
* var result1 error
if beyondResult1.Value()!=nil{ result1=beyondResult0.Value().(error) }
IfAdviceIsCompleted add statements if advice is completed
func ReturnValuesStmt ¶
ReturnValuesStmt return the list of statements
func SetArgValue ¶
SetArgValue set value to context
func SetUpBeyondContext ¶
SetUpBeyondContext return the list of required statements