Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.etrice.ui.behavior.fsm/xtend-gen/org/eclipse/etrice/ui/behavior/fsm/support/GenModelStateGraphContext.java')
-rw-r--r--plugins/org.eclipse.etrice.ui.behavior.fsm/xtend-gen/org/eclipse/etrice/ui/behavior/fsm/support/GenModelStateGraphContext.java55
1 files changed, 17 insertions, 38 deletions
diff --git a/plugins/org.eclipse.etrice.ui.behavior.fsm/xtend-gen/org/eclipse/etrice/ui/behavior/fsm/support/GenModelStateGraphContext.java b/plugins/org.eclipse.etrice.ui.behavior.fsm/xtend-gen/org/eclipse/etrice/ui/behavior/fsm/support/GenModelStateGraphContext.java
index c79d40e8b..f59b4a64d 100644
--- a/plugins/org.eclipse.etrice.ui.behavior.fsm/xtend-gen/org/eclipse/etrice/ui/behavior/fsm/support/GenModelStateGraphContext.java
+++ b/plugins/org.eclipse.etrice.ui.behavior.fsm/xtend-gen/org/eclipse/etrice/ui/behavior/fsm/support/GenModelStateGraphContext.java
@@ -67,11 +67,8 @@ public class GenModelStateGraphContext implements IStateGraphContext {
@Override
public List<ChoicePoint> getChPoints() {
EList<Node> _nodes = this.graph.getNodes();
- final Function1<Node, StateGraphNode> _function = new Function1<Node, StateGraphNode>() {
- @Override
- public StateGraphNode apply(final Node it) {
- return it.getStateGraphNode();
- }
+ final Function1<Node, StateGraphNode> _function = (Node it) -> {
+ return it.getStateGraphNode();
};
List<StateGraphNode> _map = ListExtensions.<Node, StateGraphNode>map(_nodes, _function);
Iterable<ChoicePoint> _filter = Iterables.<ChoicePoint>filter(_map, ChoicePoint.class);
@@ -81,21 +78,15 @@ public class GenModelStateGraphContext implements IStateGraphContext {
@Override
public List<IStateGraphContext> getChildren() {
EList<Node> _nodes = this.graph.getNodes();
- final Function1<Node, Boolean> _function = new Function1<Node, Boolean>() {
- @Override
- public Boolean apply(final Node it) {
- Graph _subgraph = it.getSubgraph();
- return Boolean.valueOf((!Objects.equal(_subgraph, null)));
- }
+ final Function1<Node, Boolean> _function = (Node it) -> {
+ Graph _subgraph = it.getSubgraph();
+ return Boolean.valueOf((!Objects.equal(_subgraph, null)));
};
Iterable<Node> _filter = IterableExtensions.<Node>filter(_nodes, _function);
- final Function1<Node, IStateGraphContext> _function_1 = new Function1<Node, IStateGraphContext>() {
- @Override
- public IStateGraphContext apply(final Node it) {
- Graph _subgraph = it.getSubgraph();
- GenModelStateGraphContext _genModelStateGraphContext = new GenModelStateGraphContext(_subgraph, GenModelStateGraphContext.this);
- return ((IStateGraphContext) _genModelStateGraphContext);
- }
+ final Function1<Node, IStateGraphContext> _function_1 = (Node it) -> {
+ Graph _subgraph = it.getSubgraph();
+ GenModelStateGraphContext _genModelStateGraphContext = new GenModelStateGraphContext(_subgraph, this);
+ return ((IStateGraphContext) _genModelStateGraphContext);
};
Iterable<IStateGraphContext> _map = IterableExtensions.<Node, IStateGraphContext>map(_filter, _function_1);
return IterableExtensions.<IStateGraphContext>toList(_map);
@@ -105,11 +96,8 @@ public class GenModelStateGraphContext implements IStateGraphContext {
public StateGraph getInitialPoint() {
StateGraph _xifexpression = null;
EList<Link> _links = this.graph.getLinks();
- final Function1<Link, TransitionBase> _function = new Function1<Link, TransitionBase>() {
- @Override
- public TransitionBase apply(final Link it) {
- return it.getTransition();
- }
+ final Function1<Link, TransitionBase> _function = (Link it) -> {
+ return it.getTransition();
};
List<TransitionBase> _map = ListExtensions.<Link, TransitionBase>map(_links, _function);
Iterable<InitialTransition> _filter = Iterables.<InitialTransition>filter(_map, InitialTransition.class);
@@ -141,11 +129,8 @@ public class GenModelStateGraphContext implements IStateGraphContext {
@Override
public List<State> getStates() {
EList<Node> _nodes = this.graph.getNodes();
- final Function1<Node, StateGraphNode> _function = new Function1<Node, StateGraphNode>() {
- @Override
- public StateGraphNode apply(final Node it) {
- return it.getStateGraphNode();
- }
+ final Function1<Node, StateGraphNode> _function = (Node it) -> {
+ return it.getStateGraphNode();
};
List<StateGraphNode> _map = ListExtensions.<Node, StateGraphNode>map(_nodes, _function);
Iterable<State> _filter = Iterables.<State>filter(_map, State.class);
@@ -155,11 +140,8 @@ public class GenModelStateGraphContext implements IStateGraphContext {
@Override
public List<TrPoint> getTrPoints() {
EList<Node> _nodes = this.graph.getNodes();
- final Function1<Node, StateGraphNode> _function = new Function1<Node, StateGraphNode>() {
- @Override
- public StateGraphNode apply(final Node it) {
- return it.getStateGraphNode();
- }
+ final Function1<Node, StateGraphNode> _function = (Node it) -> {
+ return it.getStateGraphNode();
};
List<StateGraphNode> _map = ListExtensions.<Node, StateGraphNode>map(_nodes, _function);
Iterable<TrPoint> _filter = Iterables.<TrPoint>filter(_map, TrPoint.class);
@@ -169,11 +151,8 @@ public class GenModelStateGraphContext implements IStateGraphContext {
@Override
public List<Transition> getTransitions() {
EList<Link> _links = this.graph.getLinks();
- final Function1<Link, TransitionBase> _function = new Function1<Link, TransitionBase>() {
- @Override
- public TransitionBase apply(final Link it) {
- return it.getTransition();
- }
+ final Function1<Link, TransitionBase> _function = (Link it) -> {
+ return it.getTransition();
};
List<TransitionBase> _map = ListExtensions.<Link, TransitionBase>map(_links, _function);
Iterable<Transition> _filter = Iterables.<Transition>filter(_map, Transition.class);

Back to the top