Method | Description | |
---|---|---|
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.
|
Method | Description | |
---|---|---|
InitWords ( IEnumerable |
Initializes the list of WordNodes by creating a new node for each word string.
|
public Add ( |
||
phrase | The phrase to add. | |
return | void |
public GetWord ( int wordIndex ) : |
||
wordIndex | int | The index of the word to get. |
return |
protected InitWords ( IEnumerable |
||
words | IEnumerable |
String versions of the words in the phrase. |
return | void |
public static Parse ( string source ) : |
||
source | string | The string to parse the PhraseNode from. |
return |
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. |
return | System |
public PhraseNode ( IEnumerable |
||
words | IEnumerable |
The words in the phrase. |
return | System |
public PhraseNode ( string id, |
||
id | string | A program identifier. |
splitter | An IdSplitter to split the given identifier into words. | |
return | System |
public RemoveWord ( int wordIndex ) : void | ||
wordIndex | int | The index of the word to remove. |
return | void |
public SetLocation ( Location location ) : void | ||
location | Location | The location of the node. |
return | void |
public this ( int wordIndex ) : |
||
wordIndex | int | The index of the word to get. |
return |