| 1 | |
package org.webslinger.ext.wiki.parser; |
| 2 | |
|
| 3 | |
public class WikiHeader extends SimpleNode implements BlockNode, InlineContainer { |
| 4 | |
protected int length; |
| 5 | |
|
| 6 | |
public WikiHeader(int id) { |
| 7 | 0 | super(id); |
| 8 | 0 | } |
| 9 | |
|
| 10 | |
public WikiHeader(Wiki p, int id) { |
| 11 | 5 | super(p, id); |
| 12 | 5 | } |
| 13 | |
|
| 14 | |
public int getLength() { |
| 15 | 5 | return length; |
| 16 | |
} |
| 17 | |
|
| 18 | |
public void setLength(int length) { |
| 19 | 5 | this.length = length; |
| 20 | 5 | } |
| 21 | |
|
| 22 | |
public Object jjtAccept(WikiVisitor visitor, Object data) { |
| 23 | 10 | return visitor.visit(this, data); |
| 24 | |
} |
| 25 | |
|
| 26 | |
public String toString() { |
| 27 | 0 | return super.toString() + '(' + getLength() + ')'; |
| 28 | |
} |
| 29 | |
} |