Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Schuetz2012-06-19 01:13:59 -0400
committerThomas Schuetz2012-06-19 01:13:59 -0400
commit26da83a0bf17a9a95b945153fa8a30b9d97fbc64 (patch)
treebe456cec56208ac3c577a73ab5e1865f3cb66fe9
parentb890c411ed018ddb97cfea3961f0e763579c39d0 (diff)
parent108f1e82ae24a2e33ccb82121aafc9aea29caf4a (diff)
downloadorg.eclipse.etrice-26da83a0bf17a9a95b945153fa8a30b9d97fbc64.tar.gz
org.eclipse.etrice-26da83a0bf17a9a95b945153fa8a30b9d97fbc64.tar.xz
org.eclipse.etrice-26da83a0bf17a9a95b945153fa8a30b9d97fbc64.zip
Merge branch 'master' of ssh://tschuetz@git.eclipse.org:29418/etrice/org.eclipse.etrice.git
-rw-r--r--plugins/org.eclipse.etrice.core.room/src/org/eclipse/etrice/core/room/util/RoomHelpers.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/plugins/org.eclipse.etrice.core.room/src/org/eclipse/etrice/core/room/util/RoomHelpers.java b/plugins/org.eclipse.etrice.core.room/src/org/eclipse/etrice/core/room/util/RoomHelpers.java
index 38a4b1dc7..4ff692177 100644
--- a/plugins/org.eclipse.etrice.core.room/src/org/eclipse/etrice/core/room/util/RoomHelpers.java
+++ b/plugins/org.eclipse.etrice.core.room/src/org/eclipse/etrice/core/room/util/RoomHelpers.java
@@ -564,6 +564,10 @@ public class RoomHelpers {
return isAnnotationPresent(ac.getAnnotations(), name);
}
+ public static boolean isBehaviorAnnotationPresent(ActorClass ac, String name) {
+ return isAnnotationPresent(ac.getBehaviorAnnotations(), name);
+ }
+
public static boolean isAnnotationPresent(List<Annotation> annotations, String name) {
for (Annotation annotation : annotations) {
if (annotation.getName().equals(name))
@@ -576,6 +580,10 @@ public class RoomHelpers {
return getAttributes(ac.getAnnotations(), name);
}
+ public static List<KeyValue> getBehaviorAttributes(ActorClass ac, String name) {
+ return getAttributes(ac.getBehaviorAnnotations(), name);
+ }
+
public static List<KeyValue> getAttributes(List<Annotation> annotations, String name) {
for (Annotation annotation : annotations) {
if (annotation.getName().equals(name))
@@ -588,6 +596,10 @@ public class RoomHelpers {
return isAttributePresent(ac.getAnnotations(), name, key);
}
+ public static boolean isBehaviorAttributePresent(ActorClass ac, String name, String key) {
+ return isAttributePresent(ac.getBehaviorAnnotations(), name, key);
+ }
+
public static boolean isAttributePresent(List<Annotation> annotations, String name, String key) {
List<KeyValue> attributes = getAttributes(annotations, name);
for (KeyValue attrib : attributes) {
@@ -601,6 +613,10 @@ public class RoomHelpers {
return getAttribute(ac.getAnnotations(), name, key);
}
+ public static String getBehaviorAttribute(ActorClass ac, String name, String key) {
+ return getAttribute(ac.getBehaviorAnnotations(), name, key);
+ }
+
public static String getAttribute(List<Annotation> annotations, String name, String key) {
List<KeyValue> attributes = getAttributes(annotations, name);
for (KeyValue attrib : attributes) {

Back to the top