Class UncachedLexemLine
Represents a class that implements ILexemLine, but does not support caches of parsed data.
Inherited Members
Namespace: Syncfusion.Windows.Forms.Edit.Implementation.Parser
Assembly: Syncfusion.Edit.Windows.dll
Syntax
public class UncachedLexemLine : ILexemLine, IDisposable, IComparable
Constructors
UncachedLexemLine(LexemParser, IParsePoint, ConfigStack)
Initializes a new instance of the UncachedLexemLine class.
Declaration
public UncachedLexemLine(LexemParser parser, IParsePoint pointLineStart, ConfigStack stack)
Parameters
Type | Name | Description |
---|---|---|
LexemParser | parser | Parent parser. |
IParsePoint | pointLineStart | ParsePoint of the line start. |
ConfigStack | stack | Stack at the beginning of the line. |
Fields
m_parser
Parser, the line belongs to.
Declaration
protected LexemParser m_parser
Field Value
Type |
---|
LexemParser |
Properties
IsValid
Gets a value indicating whether the line is valid or not. If line was already disposed, it is no longer valid.
Declaration
public bool IsValid { get; }
Property Value
Type |
---|
System.Boolean |
LineEndPoint
Gets the parse point at the end of the line.
Declaration
public virtual IParsePoint LineEndPoint { get; }
Property Value
Type |
---|
IParsePoint |
LineEndStack
Gets the stack at the end of the line. If line was not parsed, it will be reparsed.
Declaration
public ConfigStack LineEndStack { get; }
Property Value
Type |
---|
ConfigStack |
LineIndex
Gets or sets the index of the line.
Declaration
public int LineIndex { get; set; }
Property Value
Type |
---|
System.Int32 |
Remarks
It can be different from the one, stored in m_point because it also includes data from collapsing.
LineLength
Gets the length of the line.
Declaration
public int LineLength { get; }
Property Value
Type |
---|
System.Int32 |
LineLexems
Gets the collection of all lexems, that belong to current line. If line was not parsed, it will be reparsed.
Declaration
public IList LineLexems { get; }
Property Value
Type |
---|
System.Collections.IList |
LineStartPoint
Gets the parse point at the beginning of the line.
Declaration
public IParsePoint LineStartPoint { get; }
Property Value
Type |
---|
IParsePoint |
LineStartStack
Gets the stack at the beginning of the line.
Declaration
public ConfigStack LineStartStack { get; }
Property Value
Type |
---|
ConfigStack |
Parsed
Gets a value indicating whether the line is parsed or not. If line is parsed, than LineEndStack property contains Stack for the end of the line and LineLexems collection contains all lexems, that belong to current line. If line was changed, than Parsed will be set to false.
Declaration
public virtual bool Parsed { get; set; }
Property Value
Type |
---|
System.Boolean |
Parser
Gets the parser, that the line belongs to.
Declaration
public ILexemParser Parser { get; }
Property Value
Type |
---|
ILexemParser |
Methods
CompareTo(Object)
Compares two ILexemLine objects, or ILexemLine object and integer line number.
Declaration
public int CompareTo(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | ILexemLine object or integer line number. |
Returns
Type | Description |
---|---|
System.Int32 | Standart comparision result. |
DeleteSelf()
Raises LineDeleted event and disposes line.
Declaration
public void DeleteSelf()
Dispose()
Disposes all used resources.
Declaration
public virtual void Dispose()
FindLexemByColumn(Int32)
Searches the lexem, that contains given column index.
Declaration
public virtual ILexem FindLexemByColumn(int column)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | column | Needed column. |
Returns
Type | Description |
---|---|
ILexem | Found lexem, or null if needed column is in virtual space. |
GetLineEndStack()
Gets stack at the end of line. Line will be reparsed.
Declaration
protected virtual ConfigStack GetLineEndStack()
Returns
Type | Description |
---|---|
ConfigStack | Stack at the end of line. It can be treated as start stack for the next line. |
GetLineLexems(out Int64)
Collection of all lexems, that belongs to the line. Line will be reparsed.
Declaration
protected virtual IList GetLineLexems(out long lPositionBeforeNewLine)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | lPositionBeforeNewLine |
Returns
Type | Description |
---|---|
System.Collections.IList | List of the lexems. |
GetStackByColumn(Int32)
Gets stack copy for the lexem at the specified column.
Declaration
public virtual ConfigStack GetStackByColumn(int column)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | column | Needed column. |
Returns
Type | Description |
---|---|
ConfigStack | Copy of the stack. |
PointPositionChanged(Object, ParsePointParameterChangedEventArgs)
Handler of the ParsePointOffsetChanged event of the stream.
Declaration
protected virtual void PointPositionChanged(object sender, ParsePointParameterChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | Changed ParsePoint. |
ParsePointParameterChangedEventArgs | e | Change. |
RaiseLineIndexChangedEvent()
Raises LineIndexChanged event.
Declaration
protected void RaiseLineIndexChangedEvent()
Events
LineDeleted
Occurs when line is deleted. If position of the LineStartPoint is changed, than line is considered to be invalid and must be deleted or LineStartPoint was deleted.
Declaration
public event EventHandler LineDeleted
Event Type
Type |
---|
System.EventHandler |