View Javadoc

1   package org.glassbox.dotparser;
2   
3   public class ASTedgeop extends SimpleNode {
4       private boolean _directed;
5   
6       public ASTedgeop(int id) {
7   	super(id);
8       }
9       
10      public ASTedgeop(DOTParser p, int id) {
11  	super(p, id);
12      }
13      
14      protected void setDirected(boolean directed) {
15  	_directed = directed;
16      }
17  
18      public boolean isDirected() {
19  	return _directed;
20      }
21  
22      public String toString() {
23  	return "edgeop: "+(_directed?"":"un")+"directed";
24      }
25  
26      /*** Accept the visitor. **/
27      public Object jjtAccept(DOTParserVisitor visitor, Object data) {
28  	return visitor.visit(this, data);
29      }
30  }