|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--edu.neu.ccs.demeter.Text
A terminal class for parsing a block of arbitrary text. Put Text
in a class dictionary to represent a block of text in an input
sentence, surrounded by begin and end.
| Field Summary | |
static String |
begin
The beginning marker for the text block in an input sentence. |
static String |
end
The end marker for the text block in an input sentence. |
static String |
quoted_end
Java code for the end marker for the text block in an input sentence. |
| Constructor Summary | |
Text()
Construct an empty text block. |
|
Text(Object obj)
Construct a Text from an Object by converting it to a String with Object.toString(). |
|
Text(String s)
Construct a Text from a String. |
|
| Method Summary | |
boolean |
equals(Object text)
|
int |
hashCode()
|
String |
toString()
The body of the text block, not including the begin and
end markers. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final String begin
public static final String end
public static final String quoted_end
| Constructor Detail |
public Text()
public Text(String s)
public Text(Object obj)
Object.toString().
| Method Detail |
public String toString()
begin and
end markers.
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object text)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||