|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgrammar.cfg.MySentence
public class MySentence
TSentences
Constructor Summary | |
---|---|
MySentence()
Creates an instance of sentence. |
Method Summary | |
---|---|
void |
addLength(int plus)
Adds a plus length to the parse length |
void |
addSymbol(java.lang.String symbol)
Adds a symbol to sentence, and increases the number of symbols |
boolean |
equals(java.lang.Object obj)
|
int |
getLength()
Returns the parse length |
java.lang.String |
getSentence()
Returns the string form of sentence |
int |
getSymbolNumber()
Returns the number of symbols at the sentence |
int |
hashCode()
|
void |
setLength(int length)
Sets the parse length |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MySentence()
Method Detail |
---|
public void addSymbol(java.lang.String symbol)
symbol
- the symbol to add.public java.lang.String getSentence()
public int getSymbolNumber()
public java.lang.String toString()
toString
in class java.lang.Object
public int getLength()
public void setLength(int length)
length
- the length to setpublic void addLength(int plus)
plus
- the length to add.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |