Table of Contents

Class LexScheme

Namespace
Alternet.Syntax.Lexer
Assembly
Alternet.Syntax.v9.dll

Represents class contains rules for text lexical analysis.

[TypeConverter("Alternet.Syntax.Design.LexSchemeConverter, Alternet.Syntax.Design.v9")]
[Serializable]
public class LexScheme : ILexScheme, IImport, IExport
Inheritance
LexScheme
Implements

Constructors

LexScheme(ILexer)

Initializes a new instance of the LexScheme class with default settings.

Properties

Author

Gets or sets author of the LexScheme.

Copyright

Gets or sets copyright of the LexScheme.

Desc

Gets or sets description of the LexScheme.

FileExtension

Gets or sets string value indicating associated file extension of the ILexScheme.

FileType

Gets or sets string value indicating associated file type of the ILexScheme.

Name

Gets or sets LexScheme name.

SerializationInfo

Gets or sets an xml representation of this LexScheme object.

States

Gets or sets collection of lexical states.

Styles

Gets or sets collection of lexical styles.

Version

Gets or sets version of the LexScheme.

Methods

Assign(ILexScheme)

Assigns most relevant properties from another ILexScheme object.

Clear()

Removes all states and styles from this LexScheme and sets other properties to default values.

GetLexState(int)
GetLexStyle(int)
Init()
IsEmpty()

Indicates whether LexScheme is empty , that is does not contain any styles, states, author, copyright, and description information.

IsPlainText(int)

Indicates whether PlainText property of lexical style given by its index is true.

LoadFile(string)

Loads the contents of the specified file.

LoadFile(string, Encoding)

Loads the contents of the specified file with specified encoding.

LoadStream(Stream)

Loads the contents of the specified stream.

LoadStream(Stream, Encoding)

Loads the contents of the specified stream.

LoadStream(TextReader)

Loads the contents of the specified stream.

OnAuthorChanged()
OnCopyrightChanged()
OnDescChanged()
OnFileExtensionChanged()
OnFileTypeChanged()
OnNameChanged()
OnStatesChanged()
OnStylesChanged()
OnVersionChanged()
SaveFile(string)

Saves text content to the specific file.

SaveFile(string, Encoding)

Saves scheme content to the specific file with specific encoding.

SaveStream(Stream)

Saves the scheme content to the specified stream.

SaveStream(Stream, Encoding)

Saves the text content to the specified stream.

SaveStream(TextWriter)

Saves the scheme content to the specified stream.

Update()

When implemented by a class, causes associated ILexer to update its state.