35 /** |
35 /** |
36 * Nodes are used to compose Abstract Syntax Trees. |
36 * Nodes are used to compose Abstract Syntax Trees. |
37 */ |
37 */ |
38 public abstract class Node implements Cloneable, Serializable { |
38 public abstract class Node implements Cloneable, Serializable { |
39 private static final long serialVersionUID = 1L; |
39 private static final long serialVersionUID = 1L; |
|
40 |
|
41 /** Constant used for synthetic AST nodes that have no line number. */ |
|
42 public static final int NO_LINE_NUMBER = -1; |
|
43 |
|
44 /** Constant used for synthetic AST nodes that have no token. */ |
|
45 public static final long NO_TOKEN = 0L; |
|
46 |
|
47 /** Constant used for synthetic AST nodes that have no finish. */ |
|
48 public static final int NO_FINISH = 0; |
40 |
49 |
41 /** Start of source range. */ |
50 /** Start of source range. */ |
42 protected final int start; |
51 protected final int start; |
43 |
52 |
44 /** End of source range. */ |
53 /** End of source range. */ |