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
-
IEnumerator<T>
- 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
ptnT
addNode(T)
public virtual void addNode(T arg1)
Parameters
arg1T
appendList(TPTNodeList<T>)
public virtual void appendList(TPTNodeList<T> pList)
Parameters
pListTPTNodeList<T>
doParse(TCustomSqlStatement, ESqlClause)
analyze this node
public override void doParse(TCustomSqlStatement psql, ESqlClause plocation)
Parameters
psqlTCustomSqlStatementplocationESqlClause
elementAt(int)
public virtual T elementAt(int index)
Parameters
indexint
Returns
- T
getElement(int)
public virtual T getElement(int index)
Parameters
indexint
Returns
- T
getEndToken()
public override TSourceToken getEndToken()
Returns
- TSourceToken
the last token in this node
getStartToken()
public override TSourceToken getStartToken()
Returns
init(object)
Initialize a query tree node.
public override void init(object arg1)
Parameters
arg1object
insertElementAt(T, int)
public void insertElementAt(T ptn, int index)
Parameters
ptnTindexint
removeElement(T)
public void removeElement(T ptn)
Parameters
ptnT
removeElementAt(int)
public void removeElementAt(int index)
Parameters
indexint
size()
public int size()