Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.etrice.generator.java/src/org/eclipse/etrice/generator/java/JavaGenerator.java')
-rw-r--r--plugins/org.eclipse.etrice.generator.java/src/org/eclipse/etrice/generator/java/JavaGenerator.java47
1 files changed, 0 insertions, 47 deletions
diff --git a/plugins/org.eclipse.etrice.generator.java/src/org/eclipse/etrice/generator/java/JavaGenerator.java b/plugins/org.eclipse.etrice.generator.java/src/org/eclipse/etrice/generator/java/JavaGenerator.java
index 9c22b55b6..50cc35857 100644
--- a/plugins/org.eclipse.etrice.generator.java/src/org/eclipse/etrice/generator/java/JavaGenerator.java
+++ b/plugins/org.eclipse.etrice.generator.java/src/org/eclipse/etrice/generator/java/JavaGenerator.java
@@ -12,12 +12,9 @@
package org.eclipse.etrice.generator.java;
-import org.eclipse.etrice.core.naming.RoomNameProvider;
import org.eclipse.etrice.core.room.InitialTransition;
import org.eclipse.etrice.core.room.Message;
import org.eclipse.etrice.core.room.MessageFromIf;
-import org.eclipse.etrice.core.room.State;
-import org.eclipse.etrice.core.room.StateGraphNode;
import org.eclipse.etrice.core.room.Transition;
import org.eclipse.etrice.core.room.Trigger;
import org.eclipse.etrice.core.room.TriggeredTransition;
@@ -28,50 +25,6 @@ import org.eclipse.etrice.generator.etricegen.TransitionChain;
public class JavaGenerator {
- // public static interface used by Xtend
-
- public static String getActionCodeOperationName(Transition t) {
- return "action_"+RoomNameProvider.getFullPath(t);
- }
-
- public static String getEntryCodeOperationName(State s) {
- return "entry_"+getStatePathName(s);
- }
-
- public static String getExitCodeOperationName(State s) {
- return "exit_"+getStatePathName(s);
- }
-
- public static String getChainId(TransitionChain tc) {
- return "CHAIN_"+RoomNameProvider.getFullPath(tc.getTransition());
- }
-
- public static boolean isTopLevel(StateGraphNode s) {
- return !(s.eContainer().eContainer() instanceof State);
- }
-
- public static State getParentState(StateGraphNode s) {
- if (isTopLevel(s))
- return null;
- else
- return (State) s.eContainer().eContainer();
- }
-
- public static String getStatePathName(State s) {
- return RoomNameProvider.getFullPath(s);
- }
-
- public static String getStateId(State s) {
- if (s==null)
- return "STATE_"+RoomNameProvider.getStateName(s);
- else
- return "STATE_"+RoomNameProvider.getFullPath(s);
- }
-
- public static String getParentStateId(State s) {
- return getStateId(getParentState(s));
- }
-
public static String getExecuteChain(ExpandedActorClass ac, TransitionChain tc) {
JavaTransitionChainVisitor tcv = new JavaTransitionChainVisitor(ac, tc);
return tc.genExecuteChain(tcv);

Back to the top