| summaryrefslogtreecommitdiff | 
diff options
| author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2017-07-20 21:02:32 +0200 | 
|---|---|---|
| committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2017-07-20 21:02:32 +0200 | 
| commit | b4935b361bd16648044526efba818fb6839e0ca9 (patch) | |
| tree | ac4a2db1be97aa503683fbaec6a7884da829c8b3 /ast-to-instr/src/VHDLISNode.java | |
| parent | 45b091f8a44c422d89f9d3bcaf25e5df91da31a7 (diff) | |
Still missing: Components, When Nodes, Outputs.
Diffstat (limited to 'ast-to-instr/src/VHDLISNode.java')
| -rw-r--r-- | ast-to-instr/src/VHDLISNode.java | 60 | 
1 files changed, 29 insertions, 31 deletions
| diff --git a/ast-to-instr/src/VHDLISNode.java b/ast-to-instr/src/VHDLISNode.java index 9bf7810..f38dcf3 100644 --- a/ast-to-instr/src/VHDLISNode.java +++ b/ast-to-instr/src/VHDLISNode.java @@ -17,20 +17,23 @@ public class VHDLISNode extends VHDLNode     static     { -      XPE_FIND_NAMED_ENTITIES = XMLManager.compile_or_die -      ( -         "./condition//named_entity" -      ); +      XPE_FIND_NAMED_ENTITIES = +         XMLManager.compile_or_die +         ( +            "./condition//named_entity" +         ); -      XPE_FIND_TRUE_BRANCH = XMLManager.compile_or_die -      ( -         "./sequential_statement_chain" -      ); +      XPE_FIND_TRUE_BRANCH = +         XMLManager.compile_or_die +         ( +            "./sequential_statement_chain" +         ); -      XPE_FIND_ELSE_BRANCH = XMLManager.compile_or_die -      ( -         "./else_clause/sequential_statement_chain" -      ); +      XPE_FIND_ELSE_BRANCH = +         XMLManager.compile_or_die +         ( +            "./else_clause/sequential_statement_chain" +         );     }     public VHDLISNode @@ -77,7 +80,7 @@ public class VHDLISNode extends VHDLNode        handle_predicate_expr_reads(local_id);        /** Children ************************************************************/ -      result.addAll(handle_true_branch(local_id)); +      result.add(handle_true_branch(local_id));        result.addAll(handle_else_branch(local_id));        return result; @@ -200,17 +203,14 @@ public class VHDLISNode extends VHDLNode     /***************************************************************************/     /** Children ***************************************************************/     /***************************************************************************/ -   private Collection<ParsableXML> handle_true_branch +   private ParsableXML handle_true_branch     (        final IDs local_id     )     throws XPathExpressionException     { -      final Collection<ParsableXML> result;        final Node true_branch; -      result = new ArrayList<ParsableXML>(); -        true_branch =           (Node) XPE_FIND_TRUE_BRANCH.evaluate           ( @@ -218,21 +218,19 @@ public class VHDLISNode extends VHDLNode              XPathConstants.NODE           ); - -      result.add -      ( -         new VHDLSSCNode +      return           ( -            parent_id, -            true_branch, -            local_id, -            next_node, -            (depth + 1), -            new String[] {"COND_WAS_TRUE"} -         ) -      ); +            new VHDLSSCNode +            ( +               parent_id, +               true_branch, +               local_id, +               next_node, +               (depth + 1), +               new String[] {"COND_WAS_TRUE"} +            ) +         ); -      return result;     }     private Collection<ParsableXML> handle_else_branch @@ -247,7 +245,7 @@ public class VHDLISNode extends VHDLNode        result = new ArrayList<ParsableXML>();        else_branch = -         (Node) XPE_FIND_TRUE_BRANCH.evaluate +         (Node) XPE_FIND_ELSE_BRANCH.evaluate           (              xml_node,              XPathConstants.NODE | 


