Class TResultColumnList
- Namespace
- gudusoft.gsqlparser.nodes
- Assembly
- gudusoft.gsqlparser.dll
public class TResultColumnList : TParseTreeNodeList, Visitable, IEnumerable
- Inheritance
-
TResultColumnList
- Implements
- Inherited Members
Constructors
TResultColumnList()
public TResultColumnList()
Methods
accept(TParseTreeVisitor)
public override void accept(TParseTreeVisitor v)
Parameters
acceptChildren(TParseTreeVisitor)
public override void acceptChildren(TParseTreeVisitor v)
Parameters
addResultColumn(string)
Used to add a result column manually when re-construct a select list There must exist at least one column in column list in order to this function.
[Obsolete("addResultColumn(string ptext) is deprecated, please create an instace of TResultColumn and use addResultColumn(TResultColumn resultColumn) instead.")]
public virtual void addResultColumn(string ptext)
Parameters
ptextstring
addResultColumn(TResultColumn)
Add a ResultColumn to the list
public virtual void addResultColumn(TResultColumn resultColumn)
Parameters
resultColumnTResultColumnThe ResultColumn to add to the list
getEndToken()
public override TSourceToken getEndToken()
Returns
- TSourceToken
the last token in this node
getResultColumn(int)
Get a ResultColumn from a column position (0-based) in the list
public virtual TResultColumn getResultColumn(int position)
Parameters
positionintThe ResultColumn to get from the list (1-based)
@return the column at that position.
Returns
getStartToken()
In teradata, the whole result column can be null, so this result column should be ingored when get start token in result column list. @return
public override TSourceToken getStartToken()
Returns
removeResultColumn(int)
public virtual void removeResultColumn(int index)
Parameters
indexint