PointCut class

Object carrying callsite information and methods which can enable you to call the original implementation.

Constructors

PointCut(Map? sourceInfos, Object? target, String? function, String? stubKey, List? positionalParams, Map? namedParams, Map? members, Map? annotations)
PointCut default constructor.

Properties

annotations Map?
Class's annotations. In Call mode, it's caller class's annotations. In execute mode, it's execution class's annotations.
final
function String?
Function name for a call, like foo for x.foo().
final
hashCode int
The hash code for this object.
no setterinherited
members Map?
Class's members. In Call mode, it's caller class's members. In execute mode, it's execution class's members.
final
namedParams Map?
Named parameters for a call.
final
positionalParams List?
Positional parameters for a call.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sourceInfos Map?
Source infomation like file, linenum, etc for a call.
final
stubKey String?
Unique key which can help the proceed function to distinguish a mocked call.
final
target Object?
Target where a call is operating on, like x for x.foo().
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
proceed() Object?
Unified entrypoint to call a original method, the method body is generated dynamically when being transformed in compile time.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

pointCut() PointCut