/[gzz]/gzz/lava/gzz/potion/potions/Break.java
ViewVC logotype

Diff of /gzz/lava/gzz/potion/potions/Break.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by benja, Mon Nov 25 23:52:50 2002 UTC revision 1.2 by benja, Tue Dec 3 01:01:58 2002 UTC
# Line 6  import gzz.vob.linebreaking.HChain; Line 6  import gzz.vob.linebreaking.HChain;
6  import gzz.*;  import gzz.*;
7  import gzz.potion.Expression.*;  import gzz.potion.Expression.*;
8    
9  public class Break implements Command{  public class Break extends AbstractHead implements Command{
10    
11          public String getString(Expression[] params, Map context){      public Break() {
12                    super(new Object[] {
13                  return null;              "Break ", Types.CONNECTION
14                    });
15          }      }
16    
17          public void render(Expression[] params, Map context, HChain hchain ){}      public void execute(List[] params, Map context) {
18                    for(Iterator i=params[0].iterator(); i.hasNext();) {
19          public Type[] getParams() {              Connection c = (Connection)i.next();
20                        c.negside.disconnect(c.dim, 1);
21                     return null;              c.posside.disconnect(c.dim, -1);
                     
         }  
   
         public void execute(List[] params, Map context) {  
           
                 for(Iterator i=params[0].iterator(); i.hasNext();) {  
                   
                         Connection c = (Connection)i.next();  
                         c.negside.disconnect(c.dim, 1);  
                         c.posside.disconnect(c.dim, -1);  
                 }  
           
22          }          }
23        }
24  }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26