Documentation ¶
Index ¶
- type JoinPoint
- func (jp *JoinPoint) AddImportSpec(importSpec *ast.ImportSpec)
- func (jp *JoinPoint) AddImportSpecs(decls []ast.Spec)
- func (jp *JoinPoint) AddStatementsAtBegin(statements []ast.Stmt)
- func (jp *JoinPoint) Advices() map[string]*advice.Advice
- func (jp *JoinPoint) FileDecls() []ast.Decl
- func (jp *JoinPoint) GetRecv() *ast.FieldList
- func (jp *JoinPoint) ImportSpecs() []*ast.ImportSpec
- func (jp *JoinPoint) Name() string
- func (jp *JoinPoint) ParamsList() []*ast.Field
- func (jp *JoinPoint) Parent() *ast.File
- func (jp *JoinPoint) Path() string
- func (jp *JoinPoint) Pkg() string
- func (jp *JoinPoint) PkgPath() string
- func (jp *JoinPoint) RenameToInternal()
- func (jp *JoinPoint) ResultsList() []*ast.Field
- type JoinPoints
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JoinPoint ¶
type JoinPoint struct {
// contains filtered or unexported fields
}
JoinPoint struct with required info to efine a joinPoint
func (*JoinPoint) AddImportSpec ¶
func (jp *JoinPoint) AddImportSpec(importSpec *ast.ImportSpec)
AddImportSpec add imports to the file
func (*JoinPoint) AddImportSpecs ¶
AddImportSpecs adds decls at the top of the parent
func (*JoinPoint) AddStatementsAtBegin ¶
AddStatementsAtBegin add a list of satements to the joinPoint
func (*JoinPoint) ImportSpecs ¶
func (jp *JoinPoint) ImportSpecs() []*ast.ImportSpec
ImportSpecs returns the list of imports
func (*JoinPoint) ParamsList ¶
ParamsList return the list of params that belong to the joinPoint
func (*JoinPoint) RenameToInternal ¶
func (jp *JoinPoint) RenameToInternal()
RenameToInternal update the joinPoint name
func (*JoinPoint) ResultsList ¶
ResultsList return the list of params that are returned by the joinPoint
type JoinPoints ¶
type JoinPoints struct {
// contains filtered or unexported fields
}
JoinPoints struct
func GetJoinPoints ¶
func GetJoinPoints(rootPkg string, advices *advice.Advices, ignored []*regexp.Regexp, packages map[string]*parser.Package) *JoinPoints
GetJoinPoints return the functions
func (*JoinPoints) AddJoinPoint ¶
func (f *JoinPoints) AddJoinPoint(joinPoint *JoinPoint)
AddJoinPoint add a new joinPoint
func (*JoinPoints) List ¶
func (f *JoinPoints) List() []*JoinPoint
List return the list of joinPoints
Click to show internal directories.
Click to hide internal directories.