|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--edu.neu.ccs.demeter.Line
A terminal class for parsing a full line. Put Line in a class dictionary to represent a full line in an input sentence, terminated by line.separator (which is not included in the Line object).
| Field Summary | |
static String |
nl
The line separator of the current JVM. |
| Constructor Summary | |
Line()
Construct an empty line. |
|
Line(Object obj)
Construct a Line from an Object by converting it to a String with Object.toString(). |
|
Line(String s)
Construct a Line from a String. |
|
| Method Summary | |
boolean |
equals(Object line)
|
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final String nl
line.separator system property.
System.getProperty(String, String)| Constructor Detail |
public Line()
public Line(String s)
public Line(Object obj)
Object.toString(). Note that a Line created outside of
the parser is not constrained to be a single line.
| Method Detail |
public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object line)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||