C# Class ABB.Swum.Nodes.ProgramElementNode

Represents an abstract program element.
Inheritance: Node
ファイルを表示 Open project: abb-iss/Swum.NET Class Usage Examples

Public Methods

Method Description
GetParse ( ) : PhraseNode

Returns a PhraseNode containing the node's parsed name.

Parse ( IdSplitter splitter ) : void

Parses the node's Name into words.

ProgramElementNode ( ) : System

Creates a new ProgramElementNode in its default state.

ProgramElementNode ( string name ) : System

Creates a new ProgramElementNode and sets Name to the supplied value.

ProgramElementNode ( string name, IdSplitter splitter ) : System

Creates a new ProgramElementNode and sets Name to the supplied value. Name is then parsed using the supplied IdSplitter.

ProgramElementNode ( string name, PhraseNode parsedName ) : System

Creates a new ProgramElementNode and sets Name and ParsedName to the supplied values.

SetLocation ( Location location ) : void

Sets the program location of the node.

ToPlainString ( ) : string

Returns a string representation of the node without any SWUM markup.

ToString ( ) : string

Returns a string representation of the node. This is simply the string representation of the ParsedName.

Method Details

GetParse() public method

Returns a PhraseNode containing the node's parsed name.
public GetParse ( ) : PhraseNode
return PhraseNode

Parse() public method

Parses the node's Name into words.
public Parse ( IdSplitter splitter ) : void
splitter ABB.Swum.IdSplitter
return void

ProgramElementNode() public method

Creates a new ProgramElementNode in its default state.
public ProgramElementNode ( ) : System
return System

ProgramElementNode() public method

Creates a new ProgramElementNode and sets Name to the supplied value.
public ProgramElementNode ( string name ) : System
name string The name of the program element.
return System

ProgramElementNode() public method

Creates a new ProgramElementNode and sets Name to the supplied value. Name is then parsed using the supplied IdSplitter.
public ProgramElementNode ( string name, IdSplitter splitter ) : System
name string The name of the program element.
splitter ABB.Swum.IdSplitter An IdSplitter to use to parse the name.
return System

ProgramElementNode() public method

Creates a new ProgramElementNode and sets Name and ParsedName to the supplied values.
public ProgramElementNode ( string name, PhraseNode parsedName ) : System
name string The name of the program element.
parsedName PhraseNode A PhraseNode constructed from the program element's name.
return System

SetLocation() public method

Sets the program location of the node.
public SetLocation ( Location location ) : void
location Location The program location of the node.
return void

ToPlainString() public method

Returns a string representation of the node without any SWUM markup.
public ToPlainString ( ) : string
return string

ToString() public method

Returns a string representation of the node. This is simply the string representation of the ParsedName.
public ToString ( ) : string
return string