001package gudusoft.gsqlparser.nodes.couchbase;
002
003
004import gudusoft.gsqlparser.EIndexType;
005import gudusoft.gsqlparser.nodes.TDummy;
006import gudusoft.gsqlparser.nodes.TObjectName;
007import gudusoft.gsqlparser.nodes.TParseTreeNode;
008import gudusoft.gsqlparser.nodes.TParseTreeVisitor;
009
010public class TIndexRef extends TParseTreeNode {
011    private TObjectName indexName;
012    private EIndexType indexType;
013
014    public void init(Object arg1,Object arg2){
015        indexName = (TObjectName)arg1;
016        if (arg2 != null){
017            indexType = ((TDummy)arg2).indexType;
018        }
019    }
020    public TObjectName getIndexName() {
021        return indexName;
022    }
023
024    public EIndexType getIndexType() {
025        return indexType;
026    }
027
028    public void accept(TParseTreeVisitor v){
029        v.preVisit(this);
030        v.postVisit(this);
031    }
032
033    public void acceptChildren(TParseTreeVisitor v) {
034        v.preVisit(this);
035        v.postVisit(this);
036    }
037
038}