joinpoint

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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

func (jp *JoinPoint) AddImportSpecs(decls []ast.Spec)

AddImportSpecs adds decls at the top of the parent

func (*JoinPoint) AddStatementsAtBegin

func (jp *JoinPoint) AddStatementsAtBegin(statements []ast.Stmt)

AddStatementsAtBegin add a list of satements to the joinPoint

func (*JoinPoint) Advices

func (jp *JoinPoint) Advices() map[string]*advice.Advice

Advices returns the list of advices to be applied

func (*JoinPoint) FileDecls

func (jp *JoinPoint) FileDecls() []ast.Decl

FileDecls return the lis tof ast.decl of the file

func (*JoinPoint) GetRecv

func (jp *JoinPoint) GetRecv() *ast.FieldList

GetRecv return the fieldList

func (*JoinPoint) ImportSpecs

func (jp *JoinPoint) ImportSpecs() []*ast.ImportSpec

ImportSpecs returns the list of imports

func (*JoinPoint) Name

func (jp *JoinPoint) Name() string

Name returns the joinPoint name

func (*JoinPoint) ParamsList

func (jp *JoinPoint) ParamsList() []*ast.Field

ParamsList return the list of params that belong to the joinPoint

func (*JoinPoint) Parent

func (jp *JoinPoint) Parent() *ast.File

Parent return the parent node

func (*JoinPoint) Path

func (jp *JoinPoint) Path() string

Path return the expression path

func (*JoinPoint) Pkg

func (jp *JoinPoint) Pkg() string

Pkg returns the package name

func (*JoinPoint) PkgPath

func (jp *JoinPoint) PkgPath() string

PkgPath return the pakcage path

func (*JoinPoint) RenameToInternal

func (jp *JoinPoint) RenameToInternal()

RenameToInternal update the joinPoint name

func (*JoinPoint) ResultsList

func (jp *JoinPoint) ResultsList() []*ast.Field

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL