diff --git a/docs/classes/abstractjoinpointcontext.html b/docs/classes/abstractjoinpointcontext.html index 1d78a5d..1b3e804 100644 --- a/docs/classes/abstractjoinpointcontext.html +++ b/docs/classes/abstractjoinpointcontext.html @@ -141,7 +141,7 @@
class Aspect { @After(ExampleClass, 'exampleMethod') advice(jp : JoinpointContext) {} -} -
class Aspect { @AfterStatic(ExampleClass, 'exampleMethod') advice(jp : JoinpointContext) {} -} -
class Aspect { @Before(ExampleClass, 'exampleMethod') advice(jp : JoinpointContext) {} -} -
class Aspect { @BeforeStatic(ExampleClass, 'exampleMethod') advice(jp : JoinpointContext) {} -} -
yarn add @neoskop/phantom -
yarn add @neoskop/phantom
import { AopManager, Before, After, JoinpointContext } from '@neoskop/phantom'; + import { AopManager, Before, After, JoinpointContext } from '@neoskop/phantom'; class TestClass { foo(arg : string) { @@ -114,14 +113,11 @@ Usage console.log(instance.bar('Bar')); // > TestClass bar [ 'Bar' ] // < TestClass bar bar - // bar - + // bar
import { AopManager, Before, After, JoinpointContext } from '@neoskop/phantom'; class TestClass { foo(arg : string) { @@ -114,14 +113,11 @@ Usage console.log(instance.bar('Bar')); // > TestClass bar [ 'Bar' ] // < TestClass bar bar - // bar -
yarn test -
yarn test
yarn run build -
yarn run build
MIT License
Copyright (c) 2018 Neoskop GmbH
getPointcut
getProperty
Returns string Getter +
+ REFLECTION_PROPERTY_BLACKLIST
+
Setter
diff --git a/docs/classes/aopmanager.html b/docs/classes/aopmanager.html
index 399dd0e..3dc543d 100644
--- a/docs/classes/aopmanager.html
+++ b/docs/classes/aopmanager.html
@@ -103,7 +103,7 @@
@@ -131,7 +131,7 @@
install
Protected installMethod<
Parameters
@@ -160,7 +160,7 @@Protected installPropert
Type parameters
@@ -195,7 +195,7 @@Protected installStatic<
Parameters
@@ -224,7 +224,7 @@Protected installStatic<
+
+ REFLECTION_PROPERTY_BLACKLIST
+
Setter
diff --git a/docs/classes/getterjoinpointcontext.html b/docs/classes/getterjoinpointcontext.html
index d448470..0f9d838 100644
--- a/docs/classes/getterjoinpointcontext.html
+++ b/docs/classes/getterjoinpointcontext.html
@@ -144,7 +144,7 @@ getter: Function
@@ -197,7 +197,7 @@
@@ -249,7 +249,7 @@
@@ -275,7 +275,7 @@
@@ -297,7 +297,7 @@
@@ -438,6 +438,9 @@
Getter
+
+ REFLECTION_PROPERTY_BLACKLIST
+
Setter
diff --git a/docs/classes/instancemethodpointcut.html b/docs/classes/instancemethodpointcut.html
index eae6458..4de1053 100644
--- a/docs/classes/instancemethodpointcut.html
+++ b/docs/classes/instancemethodpointcut.html
@@ -110,7 +110,7 @@
Getter
+
+ REFLECTION_PROPERTY_BLACKLIST
+
Setter
diff --git a/docs/classes/instancepropertypointcut.html b/docs/classes/instancepropertypointcut.html
index e4c6bb4..2c87ae0 100644
--- a/docs/classes/instancepropertypointcut.html
+++ b/docs/classes/instancepropertypointcut.html
@@ -110,7 +110,7 @@
Getter
+
+ REFLECTION_PROPERTY_BLACKLIST
+
Setter
diff --git a/docs/classes/joinpointcontext.html b/docs/classes/joinpointcontext.html
index 930b812..3fdf36e 100644
--- a/docs/classes/joinpointcontext.html
+++ b/docs/classes/joinpointcontext.html
@@ -154,7 +154,7 @@ args: ARGS
@@ -199,7 +199,7 @@
@@ -241,7 +241,7 @@
@@ -269,7 +269,7 @@
@@ -291,7 +291,7 @@
Type parameters
@@ -366,6 +366,9 @@Returns void Getter
constructor
Parameters
@@ -176,7 +176,7 @@Protected context
@@ -186,7 +186,7 @@Protected getter
Protected pointcut
@@ -208,7 +208,7 @@Protected property
@@ -226,7 +226,7 @@getContext
getPointcut
getProperty
getValue
Returns T<
Abstract cls
@@ -121,7 +121,7 @@Abstract property
@@ -233,6 +233,9 @@Abstract property
Abstract cls
@@ -121,7 +121,7 @@Abstract property
@@ -233,6 +233,9 @@Abstract property
constructor
Parameters
@@ -188,7 +188,7 @@Protected args
Protected context
@@ -210,7 +210,7 @@Protected pointcut
@@ -221,7 +221,7 @@Protected property
@@ -231,7 +231,7 @@Protected result: RESULT
Protected target: Function
getArgument
Returns ARGS[0]
Parameters
@@ -308,7 +308,7 @@Returns ARGS[1]
Parameters
@@ -325,7 +325,7 @@Returns ARGS[2]
Parameters
@@ -342,7 +342,7 @@Returns ARGS[3]
Parameters
@@ -359,7 +359,7 @@Returns ARGS[4]
Parameters
@@ -376,7 +376,7 @@Returns ARGS[5]
Parameters
@@ -393,7 +393,7 @@Returns ARGS[6]
Parameters
@@ -410,7 +410,7 @@Returns ARGS[7]
Parameters
@@ -427,7 +427,7 @@Returns ARGS[8]
Parameters
@@ -444,7 +444,7 @@Returns ARGS[9]
@@ -516,7 +516,7 @@
@@ -539,7 +539,7 @@
@@ -565,7 +565,7 @@
@@ -587,7 +587,7 @@
@@ -612,7 +612,7 @@
@@ -634,7 +634,7 @@
@@ -671,7 +671,7 @@
@@ -839,6 +839,9 @@
Parameters
@@ -461,7 +461,7 @@Returns any
Type parameters
@@ -493,7 +493,7 @@getArguments
getContext
getPointcut
getProperty
getResult
proceed
setArgument
setResult
Returns this Getter +
+ REFLECTION_PROPERTY_BLACKLIST
+
Setter
diff --git a/docs/classes/pointcut.html b/docs/classes/pointcut.html
index 8c495f3..6390caa 100644
--- a/docs/classes/pointcut.html
+++ b/docs/classes/pointcut.html
@@ -118,7 +118,7 @@ cls: Cls<T> | T
@@ -128,7 +128,7 @@ property: Property<T> | MethodProperty<T>
@@ -240,6 +240,9 @@
Getter
+
+ REFLECTION_PROPERTY_BLACKLIST
+
Setter
diff --git a/docs/classes/propertyjoinpointcontext.html b/docs/classes/propertyjoinpointcontext.html
index 09eb5db..28c9f17 100644
--- a/docs/classes/propertyjoinpointcontext.html
+++ b/docs/classes/propertyjoinpointcontext.html
@@ -137,7 +137,7 @@
@@ -229,7 +229,7 @@
@@ -255,7 +255,7 @@
@@ -390,6 +390,9 @@
Abstract cls
Abstract property
Abstract property
constructor
Parameters
@@ -166,7 +166,7 @@Protected context
@@ -177,7 +177,7 @@Protected pointcut
@@ -188,7 +188,7 @@Protected property
@@ -206,7 +206,7 @@getContext
getPointcut
getProperty
Returns string Getter +
+ REFLECTION_PROPERTY_BLACKLIST
+
Setter
diff --git a/docs/classes/setterjoinpointcontext.html b/docs/classes/setterjoinpointcontext.html
index 08ca621..0591bcc 100644
--- a/docs/classes/setterjoinpointcontext.html
+++ b/docs/classes/setterjoinpointcontext.html
@@ -147,7 +147,7 @@ argument: T
@@ -192,7 +192,7 @@ setter: Function
@@ -241,7 +241,7 @@
@@ -264,7 +264,7 @@
@@ -287,7 +287,7 @@
@@ -313,7 +313,7 @@
@@ -335,7 +335,7 @@
@@ -357,7 +357,7 @@
@@ -513,6 +513,9 @@
constructor
Parameters
@@ -181,7 +181,7 @@Protected argument
Protected context
@@ -203,7 +203,7 @@Protected pointcut
@@ -214,7 +214,7 @@Protected property
@@ -224,7 +224,7 @@Protected setter
getArgument
getContext
getPointcut
getProperty
proceed
setValue
Returns void Getter +
+ REFLECTION_PROPERTY_BLACKLIST
+
Setter
diff --git a/docs/classes/staticmethodpointcut.html b/docs/classes/staticmethodpointcut.html
index c89ab1c..f8a06b7 100644
--- a/docs/classes/staticmethodpointcut.html
+++ b/docs/classes/staticmethodpointcut.html
@@ -110,7 +110,7 @@
Getter
+
+ REFLECTION_PROPERTY_BLACKLIST
+
Setter
diff --git a/docs/classes/staticpropertypointcut.html b/docs/classes/staticpropertypointcut.html
index e161a9d..6cf88cb 100644
--- a/docs/classes/staticpropertypointcut.html
+++ b/docs/classes/staticpropertypointcut.html
@@ -110,7 +110,7 @@
Getter
+
+ REFLECTION_PROPERTY_BLACKLIST
+
Setter
diff --git a/docs/globals.html b/docs/globals.html
index 386984a..872685c 100644
--- a/docs/globals.html
+++ b/docs/globals.html
@@ -113,6 +113,7 @@ Before
BeforeStatic
Getter
+ REFLECTION_PROPERTY_BLACKLIST
Setter
StaticGetter
StaticSetter
@@ -136,7 +137,7 @@ ArgumentTypes: ArgumentTypes<T>
@@ -151,7 +152,7 @@ Cls: object
@@ -169,7 +170,7 @@
MethodProperty: string | string[] | keyof T | keyof T[] | RegExp
@@ -200,7 +201,7 @@ Property: string | string[] | keyof T | keyof T[]
@@ -210,7 +211,7 @@ ReturnType: ReturnType<T>
@@ -228,7 +229,7 @@ After: InstanceMethodPointcutDecorator = Annotator.makePropDecorator('After', propsFactory, InstanceMethodPointcut)
@@ -240,8 +241,7 @@
+}
@@ -251,7 +251,7 @@ AfterStatic: StaticMethodPointcutDecorator = Annotator.makePropDecorator('AfterStatic', propsFactory, StaticMethodPointcut)
@@ -263,8 +263,7 @@
+}
@@ -274,7 +273,7 @@ Around: InstanceMethodPointcutDecorator = Annotator.makePropDecorator('Around', propsFactory, InstanceMethodPointcut)
@@ -288,8 +287,7 @@
@@ -299,7 +297,7 @@ AroundStatic: StaticMethodPointcutDecorator = Annotator.makePropDecorator('AroundStatic', propsFactory, StaticMethodPointcut)
@@ -313,8 +311,7 @@
@@ -324,7 +321,7 @@ Before: InstanceMethodPointcutDecorator = Annotator.makePropDecorator('Before', propsFactory, InstanceMethodPointcut)
@@ -336,8 +333,7 @@
+}
@@ -347,7 +343,7 @@ BeforeStatic: StaticMethodPointcutDecorator = Annotator.makePropDecorator('BeforeStatic', propsFactory, StaticMethodPointcut)
@@ -359,8 +355,7 @@
+}
@@ -370,7 +365,7 @@ Getter: InstancePropertyPointcutDecorator = Annotator.makePropDecorator('Getter', propsFactory, InstancePropertyPointcut)
@@ -384,18 +379,27 @@
+
+
+ REFLECTION_PROPERTY_BLACKLIST: Set<string> = new Set(['__defineGetter__','__defineSetter__','hasOwnProperty','__lookupGetter__','__lookupSetter__','isPrototypeOf','propertyIsEnumerable','__proto__','toLocaleString'])
+
+
Setter: InstancePropertyPointcutDecorator = Annotator.makePropDecorator('Setter', propsFactory, InstancePropertyPointcut)
@@ -409,8 +413,7 @@
@@ -420,7 +423,7 @@ StaticGetter: StaticPropertyPointcutDecorator = Annotator.makePropDecorator('GetterStatic', propsFactory, StaticPropertyPointcut)
@@ -434,8 +437,7 @@
@@ -445,7 +447,7 @@ StaticSetter: StaticPropertyPointcutDecorator = Annotator.makePropDecorator('SetterStatic', propsFactory, StaticPropertyPointcut)
@@ -459,8 +461,7 @@
@@ -477,7 +478,7 @@
@@ -663,6 +664,9 @@
Abstract cls
@@ -121,7 +121,7 @@Abstract property
@@ -233,6 +233,9 @@Abstract property
Abstract cls
@@ -121,7 +121,7 @@Abstract property
@@ -233,6 +233,9 @@Abstract property
Variables
ArgumentTypes
Cls
new: function
Parameters
@@ -190,7 +191,7 @@MethodProperty
Property
ReturnType
Const After
Const After
class Aspect { @After(ExampleClass, 'exampleMethod') advice(jp : JoinpointContext) {} -} -
Const AfterStatic
Const AfterStatic
class Aspect { @AfterStatic(ExampleClass, 'exampleMethod') advice(jp : JoinpointContext) {} -} -
Const Around
Const Around
advice(jp : JoinpointContext) { return jp.proceed() } -} - +}Const AroundStatic
Const AroundStatic
advice(jp : JoinpointContext) { return jp.proceed() } -} - +}Const Before
Const Before
class Aspect { @Before(ExampleClass, 'exampleMethod') advice(jp : JoinpointContext) {} -} -
Const BeforeStatic
Const BeforeStatic
class Aspect { @BeforeStatic(ExampleClass, 'exampleMethod') advice(jp : JoinpointContext) {} -} -
Const Getter
Const Getter
advice(jp : GetterJoinpointContext) { return jp.getValue() } -} - +}Const REFLECTION_PROPERTY_BLACKLIST
+Const Setter
Const Setter
advice(jp : SetterJoinpointContext) { jp.proceed() } -} - +}Const StaticGetter
Const StaticGetter
advice(jp : GetterJoinpointContext) { return jp.getValue() } -} - +}Const StaticSetter
Const StaticSetter
advice(jp : SetterJoinpointContext) { jp.proceed() } -} - +}Const propsFactory
Parameters
@@ -506,7 +507,7 @@new: function
Parameters
@@ -537,7 +538,7 @@unique
Returns boolean
Getter
+
+ REFLECTION_PROPERTY_BLACKLIST
+
Setter
diff --git a/docs/index.html b/docs/index.html
index 9e2e65a..30edcfb 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -77,10 +77,9 @@
Getter
+
+ REFLECTION_PROPERTY_BLACKLIST
+
Setter
diff --git a/docs/interfaces/instancemethodpointcutdecorator.html b/docs/interfaces/instancemethodpointcutdecorator.html
index 8c5ab66..8c20633 100644
--- a/docs/interfaces/instancemethodpointcutdecorator.html
+++ b/docs/interfaces/instancemethodpointcutdecorator.html
@@ -83,7 +83,7 @@
+
+ REFLECTION_PROPERTY_BLACKLIST
+
Setter
diff --git a/docs/interfaces/instancepropertypointcutdecorator.html b/docs/interfaces/instancepropertypointcutdecorator.html
index 717c91d..dc73765 100644
--- a/docs/interfaces/instancepropertypointcutdecorator.html
+++ b/docs/interfaces/instancepropertypointcutdecorator.html
@@ -83,7 +83,7 @@
+
+ REFLECTION_PROPERTY_BLACKLIST
+
Setter
diff --git a/docs/interfaces/joinpoint.html b/docs/interfaces/joinpoint.html
index ee27320..497be7f 100644
--- a/docs/interfaces/joinpoint.html
+++ b/docs/interfaces/joinpoint.html
@@ -95,7 +95,7 @@
@@ -383,7 +383,7 @@
+
+ REFLECTION_PROPERTY_BLACKLIST
+
Setter
diff --git a/docs/interfaces/staticmethodpointcutdecorator.html b/docs/interfaces/staticmethodpointcutdecorator.html
index 13a394d..861d7f3 100644
--- a/docs/interfaces/staticmethodpointcutdecorator.html
+++ b/docs/interfaces/staticmethodpointcutdecorator.html
@@ -83,7 +83,7 @@
+
+ REFLECTION_PROPERTY_BLACKLIST
+
Setter
diff --git a/docs/interfaces/staticpropertypointcutdecorator.html b/docs/interfaces/staticpropertypointcutdecorator.html
index 2e0a0dd..91fc4c2 100644
--- a/docs/interfaces/staticpropertypointcutdecorator.html
+++ b/docs/interfaces/staticpropertypointcutdecorator.html
@@ -83,7 +83,7 @@
+
+ REFLECTION_PROPERTY_BLACKLIST
+
Setter
diff --git a/package.json b/package.json
index 8e6a223..f883a35 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@neoskop/phantom",
- "version": "1.2.0-rc.1",
+ "version": "1.2.0-rc.2",
"description": "An AOP (aspect oriented programming) framework",
"main": "bundle/phantom.bundle.js",
"module": "dist/public_api.js",
@@ -92,4 +92,4 @@
"@neoskop/annotation-factory"
]
}
-}
+}
\ No newline at end of file
@neoskop/phantom
Installation
- +Usage
-import { AopManager, Before, After, JoinpointContext } from '@neoskop/phantom'; + + // bar
Testing
-
+yarn test -
yarn test
Building
- +License
MIT License
Copyright (c) 2018 Neoskop GmbH
@@ -238,6 +234,9 @@Sponsor
Callable
Type parameters
@@ -130,7 +130,7 @@constructor
Type parameters
@@ -257,6 +257,9 @@Returns Getter
Callable
Type parameters
@@ -130,7 +130,7 @@constructor
Type parameters
@@ -257,6 +257,9 @@Returns Getter
Callable
restore
Returns void
@@ -551,6 +551,9 @@Returns string Getter
Callable
Type parameters
@@ -130,7 +130,7 @@constructor
Type parameters
@@ -257,6 +257,9 @@Returns Getter
Callable
Type parameters
@@ -130,7 +130,7 @@constructor
Type parameters
@@ -257,6 +257,9 @@Returns Getter