001package gudusoft.gsqlparser.nodes;
002
003
004import gudusoft.gsqlparser.EBoundaryType;
005
006public class TWindowFrameBoundary extends TParseTreeNode {
007
008//    public enum EBoundaryType {ebtUnboundedPreceding,ebtUnboundedFollowing,
009//        ebtCurrentRow,ebtPreceding,ebtFollowing};
010
011    private TFrameExclusionClause exclusionClause;
012
013    public void setExclusionClause(TFrameExclusionClause exclusionClause) {
014        this.exclusionClause = exclusionClause;
015    }
016
017    public TFrameExclusionClause getExclusionClause() {
018
019        return exclusionClause;
020    }
021
022    private EBoundaryType boundaryType;
023    private TExpression boundaryNumber;
024
025    public EBoundaryType getBoundaryType() {
026        return boundaryType;
027    }
028
029    public TExpression getBoundaryNumber() {
030        return boundaryNumber;
031    }
032
033    public void init(Object arg1){
034         boundaryType = (EBoundaryType)arg1;
035    }
036
037    public void init(Object arg1, Object arg2){
038         init(arg1);
039        boundaryNumber = (TExpression)arg2;
040    }
041
042    public void accept(TParseTreeVisitor v){
043        v.preVisit(this);
044        v.postVisit(this);
045    }
046
047    public void acceptChildren(TParseTreeVisitor v){
048        v.preVisit(this);
049        v.postVisit(this);
050    }
051
052    public void setBoundaryType(EBoundaryType boundaryType) {
053        this.boundaryType = boundaryType;
054    }
055
056    public void setBoundaryNumber(TExpression boundaryNumber) {
057        this.boundaryNumber = boundaryNumber;
058    }
059}