Метод | Описание | |
---|---|---|
Add ( |
Concatenates the supplied phrase to the end of the current phrase.
|
|
Add ( |
Adds the given word to the end of the phrase.
|
|
FirstWord ( ) : |
Returns the first word in the phrase.
|
|
GetNewEmpty ( ) : |
Creates a new empty node of the same type.
|
|
GetParse ( ) : |
Returns a PhraseNode containing the node's parsed name, i.e. returns itself.
|
|
GetPhrase ( ) : Collection |
Returns a list of the words in the phrase.
|
|
GetWord ( int wordIndex ) : |
Returns the word within the phrase at the given index.
|
|
IsEmpty ( ) : bool |
Reports whether there are any words in the phrase.
|
|
LastWord ( ) : |
Returns the last word in the phrase.
|
|
Parse ( string source ) : |
Creates a PhraseNode by parsing the given string representation.
|
|
PhraseNode ( ) : System |
Creates a new empty PhraseNode.
|
|
PhraseNode ( IEnumerable |
Creates a new PhraseNode that contains the given words.
|
|
PhraseNode ( IEnumerable |
Creates a new PhraseNode, containing the given words.
|
|
PhraseNode ( string id, |
Creates a new PhraseNode that contains the words resulting from splitting the given identifier.
|
|
RemoveWord ( int wordIndex ) : void |
Removes the word from the phrase at the given index.
|
|
SetLocation ( Location location ) : void |
Sets the program location of the node.
|
|
Size ( ) : int |
Returns the number of words in the phrase.
|
|
ToPlainString ( ) : string |
Return a string representation of the PhraseNode without any added SWUM markup.
|
|
ToString ( ) : string |
Creates a string representation of the PhraseNode, containing a string version of each word.
|
|
this ( int wordIndex ) : |
Returns the word within the phrase at the given index.
|
Метод | Описание | |
---|---|---|
InitWords ( IEnumerable |
Initializes the list of WordNodes by creating a new node for each word string.
|
public Add ( |
||
phrase | The phrase to add. | |
Результат | void |
public Add ( |
||
word | The word to add. | |
Результат | void |
public GetWord ( int wordIndex ) : |
||
wordIndex | int | The index of the word to get. |
Результат |
protected InitWords ( IEnumerable |
||
words | IEnumerable |
String versions of the words in the phrase. |
Результат | void |
public static Parse ( string source ) : |
||
source | string | The string to parse the PhraseNode from. |
Результат |
public PhraseNode ( IEnumerable |
||
words | IEnumerable |
A list of the words in the phrase. |
location | Location | The program location of the phrase. |
containsPreposition | bool | Whether the phrase contains any prepositions or not. |
Результат | System |
public PhraseNode ( IEnumerable |
||
words | IEnumerable |
The words in the phrase. |
Результат | System |
public PhraseNode ( string id, |
||
id | string | A program identifier. |
splitter | An IdSplitter to split the given identifier into words. | |
Результат | System |
public RemoveWord ( int wordIndex ) : void | ||
wordIndex | int | The index of the word to remove. |
Результат | void |
public SetLocation ( Location location ) : void | ||
location | Location | The location of the node. |
Результат | void |
public this ( int wordIndex ) : |
||
wordIndex | int | The index of the word to get. |
Результат |