Table of Contents

Class TPTNodeList<T>

Namespace
gudusoft.gsqlparser.nodes
Assembly
gudusoft.gsqlparser.dll
public class TPTNodeList<T> : TParseTreeNode, Visitable, IEnumerator<T>, IEnumerator, IDisposable

Type Parameters

T
Inheritance
TPTNodeList<T>
Implements
Inherited Members

Constructors

TPTNodeList()

public TPTNodeList()

Properties

Current

Gets the element in the collection at the current position of the enumerator.

public T Current { get; }

Property Value

T

The element in the collection at the current position of the enumerator.

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

MoveNext()

Advances the enumerator to the next element of the collection.

public bool MoveNext()

Returns

bool

true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection.

Exceptions

InvalidOperationException

The collection was modified after the enumerator was created.

Reset()

Sets the enumerator to its initial position, which is before the first element in the collection.

public void Reset()

Exceptions

InvalidOperationException

The collection was modified after the enumerator was created.

NotSupportedException

The enumerator does not support being reset.

addElement(T)

public void addElement(T ptn)

Parameters

ptn T

addNode(T)

public virtual void addNode(T arg1)

Parameters

arg1 T

appendList(TPTNodeList<T>)

public virtual void appendList(TPTNodeList<T> pList)

Parameters

pList TPTNodeList<T>

doParse(TCustomSqlStatement, ESqlClause)

analyze this node

public override void doParse(TCustomSqlStatement psql, ESqlClause plocation)

Parameters

psql TCustomSqlStatement
plocation ESqlClause

elementAt(int)

public virtual T elementAt(int index)

Parameters

index int

Returns

T

getElement(int)

public virtual T getElement(int index)

Parameters

index int

Returns

T

getEndToken()

public override TSourceToken getEndToken()

Returns

TSourceToken

the last token in this node

getStartToken()

public override TSourceToken getStartToken()

Returns

TSourceToken

init(object)

Initialize a query tree node.

public override void init(object arg1)

Parameters

arg1 object

insertElementAt(T, int)

public void insertElementAt(T ptn, int index)

Parameters

ptn T
index int

removeElement(T)

public void removeElement(T ptn)

Parameters

ptn T

removeElementAt(int)

public void removeElementAt(int index)

Parameters

index int

size()

public int size()

Returns

int