C# Class NArrange.Core.CodeElements.CommentElement

Comment line implementation.
Inheritance: CodeElement, ICommentElement
Exibir arquivo Open project: MarcStan/NArrange Class Usage Examples

Public Methods

Method Description
Accept ( ICodeElementVisitor visitor ) : void

Allows an ICodeElementVisitor to process (or visit) this element.

See the Gang of Four Visitor design pattern.

CommentElement ( )

Creates a new comment line.

CommentElement ( CommentType commentType )

Creates a new comment line.

CommentElement ( string text )

Creates a new comment line.

CommentElement ( string text, CommentType commentType )

Creates a new comment line.

ToString ( ) : string

Gets the string representation of this object.

Protected Methods

Method Description
DoClone ( ) : CodeElement

Creates a clone of this instance.

Method Details

Accept() public method

Allows an ICodeElementVisitor to process (or visit) this element.
See the Gang of Four Visitor design pattern.
public Accept ( ICodeElementVisitor visitor ) : void
visitor ICodeElementVisitor Visitor to accept the code element.
return void

CommentElement() public method

Creates a new comment line.
public CommentElement ( )

CommentElement() public method

Creates a new comment line.
public CommentElement ( CommentType commentType )
commentType CommentType Whether or not this is an XML comment or block comment

CommentElement() public method

Creates a new comment line.
public CommentElement ( string text )
text string Comment text

CommentElement() public method

Creates a new comment line.
public CommentElement ( string text, CommentType commentType )
text string Comment text
commentType CommentType Whether or not this is an XML comment or block comment

DoClone() protected method

Creates a clone of this instance.
protected DoClone ( ) : CodeElement
return CodeElement

ToString() public method

Gets the string representation of this object.
public ToString ( ) : string
return string