summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorahaase2008-02-26 10:25:08 (EST)
committerahaase2008-02-26 10:25:08 (EST)
commit7aed86cf5cf7e927fd9d7251c97e16a28bf7bd03 (patch)
tree4fcd241b65008bc518cad76a61caafff764d9fbd
parent43f6f569eb50b3c4365b3a0a4f845883d6894eb1 (diff)
downloadorg.eclipse.xpand-7aed86cf5cf7e927fd9d7251c97e16a28bf7bd03.zip
org.eclipse.xpand-7aed86cf5cf7e927fd9d7251c97e16a28bf7bd03.tar.gz
org.eclipse.xpand-7aed86cf5cf7e927fd9d7251c97e16a28bf7bd03.tar.bz2
added tests for AOP
-rw-r--r--plugins/org.eclipse.xtend.backend/src/org/eclipse/xtend/backend/aop/AdviceParamType.java2
-rw-r--r--plugins/org.eclipse.xtend.backend/src/org/eclipse/xtend/backend/aop/ExecutionPointcut.java2
-rw-r--r--plugins/org.eclipse.xtend.backend/src/org/eclipse/xtend/backend/aop/internal/AdviceContextImpl.java2
3 files changed, 6 insertions, 0 deletions
diff --git a/plugins/org.eclipse.xtend.backend/src/org/eclipse/xtend/backend/aop/AdviceParamType.java b/plugins/org.eclipse.xtend.backend/src/org/eclipse/xtend/backend/aop/AdviceParamType.java
index 30c444d..ec195d2 100644
--- a/plugins/org.eclipse.xtend.backend/src/org/eclipse/xtend/backend/aop/AdviceParamType.java
+++ b/plugins/org.eclipse.xtend.backend/src/org/eclipse/xtend/backend/aop/AdviceParamType.java
@@ -26,6 +26,8 @@ public final class AdviceParamType {
_includingSubtypes = includingSubtypes;
}
+ //TODO testen!
+
public boolean matches (BackendType type) {
if (_includingSubtypes)
return _type.isAssignableFrom (type);
diff --git a/plugins/org.eclipse.xtend.backend/src/org/eclipse/xtend/backend/aop/ExecutionPointcut.java b/plugins/org.eclipse.xtend.backend/src/org/eclipse/xtend/backend/aop/ExecutionPointcut.java
index 6c0f75e..1357590 100644
--- a/plugins/org.eclipse.xtend.backend/src/org/eclipse/xtend/backend/aop/ExecutionPointcut.java
+++ b/plugins/org.eclipse.xtend.backend/src/org/eclipse/xtend/backend/aop/ExecutionPointcut.java
@@ -61,6 +61,8 @@ public final class ExecutionPointcut implements Pointcut {
_varArgsType = varArgsType;
}
+ //TODO testen!!!
+
public boolean matches (String name, Function function) {
if (! matchesName (name))
return false;
diff --git a/plugins/org.eclipse.xtend.backend/src/org/eclipse/xtend/backend/aop/internal/AdviceContextImpl.java b/plugins/org.eclipse.xtend.backend/src/org/eclipse/xtend/backend/aop/internal/AdviceContextImpl.java
index 321902c..a934bcf 100644
--- a/plugins/org.eclipse.xtend.backend/src/org/eclipse/xtend/backend/aop/internal/AdviceContextImpl.java
+++ b/plugins/org.eclipse.xtend.backend/src/org/eclipse/xtend/backend/aop/internal/AdviceContextImpl.java
@@ -96,6 +96,8 @@ public final class AdviceContextImpl implements AdviceContext {
return result;
}
+ //TODO test this (including the order in which advice is applied)!!!
+
/**
* returns the advice to be applied to this function, starting with the outermost
* advice, i.e. the advice that is to wrapped around all other advice applicable