| 1 | |
package org.webslinger.ext.wiki.parser; |
| 2 | |
|
| 3 | |
public class WikiParseError extends SimpleNode { |
| 4 | |
protected String location; |
| 5 | |
protected String message; |
| 6 | |
protected Token token; |
| 7 | |
|
| 8 | |
public WikiParseError(int id) { |
| 9 | 0 | super(id); |
| 10 | 0 | } |
| 11 | |
|
| 12 | |
public WikiParseError(Wiki p, int id) { |
| 13 | 0 | super(p, id); |
| 14 | 0 | } |
| 15 | |
|
| 16 | |
public String getLocation() { |
| 17 | 0 | return location; |
| 18 | |
} |
| 19 | |
|
| 20 | |
public void setLocation(String location) { |
| 21 | 0 | this.location = location; |
| 22 | 0 | } |
| 23 | |
|
| 24 | |
public String getMessage() { |
| 25 | 0 | return message; |
| 26 | |
} |
| 27 | |
|
| 28 | |
public void setMessage(String message) { |
| 29 | 0 | this.message = message; |
| 30 | 0 | } |
| 31 | |
|
| 32 | |
public Token getToken() { |
| 33 | 0 | return token; |
| 34 | |
} |
| 35 | |
|
| 36 | |
public void setToken(Token token) { |
| 37 | 0 | this.token = token; |
| 38 | 0 | } |
| 39 | |
|
| 40 | |
public Object jjtAccept(WikiVisitor visitor, Object data) { |
| 41 | 0 | return visitor.visit(this, data); |
| 42 | |
} |
| 43 | |
|
| 44 | |
public String toString() { |
| 45 | 0 | return super.toString() + '(' + getLocation() + ':' + getMessage() + ':' + getToken().beginLine + ',' + getToken().beginColumn + ')'; |
| 46 | |
} |
| 47 | |
} |