relations

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Class2ClassRelation

type Class2ClassRelation struct {
	TargetClass  *symbols.Class
	RelatedClass *symbols.Class

	UsedRelatedMethods   *symbols.Functions
	UsedRelatedFields    *symbols.Fields
	UsedRelatedConstants *symbols.Constants

	WhereRelatedUsedMethods   map[*symbols.Function]*symbols.Function
	WhereRelatedUsedFields    map[*symbols.Field]*symbols.Function
	WhereRelatedUsedConstants map[*symbols.Constant]*symbols.Function

	UsedTargetMethods   *symbols.Functions
	UsedTargetFields    *symbols.Fields
	UsedTargetConstants *symbols.Constants

	WhereTargetUsedMethods   map[*symbols.Function]*symbols.Function
	WhereTargetUsedFields    map[*symbols.Field]*symbols.Function
	WhereTargetUsedConstants map[*symbols.Constant]*symbols.Function

	IsTargetImplements bool
	IsTargetExtends    bool

	IsRelatedImplements bool
	IsRelatedExtends    bool
}

func GetClass2ClassRelation

func GetClass2ClassRelation(targetClass, relatedClass *symbols.Class) *Class2ClassRelation

func NewClass2ClassRelation

func NewClass2ClassRelation() *Class2ClassRelation

func (*Class2ClassRelation) String

func (r *Class2ClassRelation) String() string

type Class2FuncRelation

type Class2FuncRelation struct {
	TargetClass     *symbols.Class
	RelatedFunction *symbols.Function

	BelongsToClass      bool
	ClassUsedInFunction bool

	FunctionUsedInClass bool
	MethodsWhereUsed    *symbols.Functions

	UsedMethods   *symbols.Functions
	UsedFields    *symbols.Fields
	UsedConstants *symbols.Constants
}

func GetClass2FuncRelation

func GetClass2FuncRelation(targetClass *symbols.Class, relatedFunction *symbols.Function) *Class2FuncRelation

relation classes --target TargetClass --related RelatedClass

func NewClass2FuncRelation

func NewClass2FuncRelation() *Class2FuncRelation

func (*Class2FuncRelation) String

func (r *Class2FuncRelation) String() string

type Func2FuncRelation

type Func2FuncRelation struct {
	TargetFunction  *symbols.Function
	RelatedFunction *symbols.Function

	BelongsToSameClass bool
	BelongClass        *symbols.Class

	TargetUsedInRelated bool
	RelatedUsedInTarget bool

	TargetReachableFromRelated      bool
	TargetReachableFromRelatedPaths [][]*symbols.Function

	RelatedReachableFromTarget      bool
	RelatedReachableFromTargetPaths [][]*symbols.Function
}

func GetFunc2FuncRelation

func GetFunc2FuncRelation(targetFunction *symbols.Function, relatedFunction *symbols.Function) *Func2FuncRelation

func NewFunc2FuncRelation

func NewFunc2FuncRelation() *Func2FuncRelation

func (*Func2FuncRelation) String

func (r *Func2FuncRelation) String() string

type ReachabilityExcludedMap added in v1.0.0

type ReachabilityExcludedMap map[*symbols.Function]*symbols.Function

type ReachabilityFunctionJsonResult added in v1.0.0

type ReachabilityFunctionJsonResult struct {
	ParentFunction    string     `json:"parentFunctions"`
	ChildFunction     string     `json:"childFunctions"`
	ExcludedFunctions []string   `json:"excluded"`
	Count             int64      `json:"count"`
	Offset            int64      `json:"offset"`
	Paths             [][]string `json:"paths"`
}

type ReachabilityFunctionResult added in v1.0.0

type ReachabilityFunctionResult struct {
	ParentFunction *symbols.Function
	ChildFunction  *symbols.Function
	Reachable      bool

	Paths             [][]*symbols.Function
	ExcludedFunctions ReachabilityExcludedMap

	PrintPaths  bool
	PrintCount  int64
	PrintOffset int64
}

func GetReachabilityFunction added in v1.0.0

func GetReachabilityFunction(parentFunction *symbols.Function, childFunction *symbols.Function, excludedFunctions ReachabilityExcludedMap, maxDepth int64) *ReachabilityFunctionResult

func NewReachabilityFunctionResult added in v1.0.0

func NewReachabilityFunctionResult() *ReachabilityFunctionResult

func (*ReachabilityFunctionResult) Json added in v1.0.0

func (r *ReachabilityFunctionResult) Json() ([]byte, error)

func (*ReachabilityFunctionResult) String added in v1.0.0

func (r *ReachabilityFunctionResult) String() string

Jump to

Keyboard shortcuts

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