001    package railo.runtime.search.lucene2.query;
002    
003    public class OpUtil {
004    
005            /*public static List getTerms(Object left, Object right) {
006                    List list=null;
007                    Op op;
008                    
009                    if(left instanceof Op) {
010                            op=(Op) left;
011                            list=op.getSearchedTerms();
012                    }
013                    else {
014                            if(right instanceof Op) {
015                                    op=(Op) right;
016                                    list=op.getSearchedTerms();
017                                    list.add(left.toString());
018                                    return list;
019                            }
020                            list=new ArrayList();
021                            list.add(left.toString());
022                            list.add(right.toString());
023                            return list;
024                    }
025                    
026                    if(right instanceof Op) {
027                            op=(Op) right;
028                            list.addAll(op.getSearchedTerms());
029                    }
030                    else list.add(right);
031                    
032                    
033                    return list;
034            }
035            
036            public static List getTerms(Object obj) {
037                    if(obj instanceof Op) {
038                            return ((Op)obj).getSearchedTerms();
039                    }
040                    List list=new ArrayList();
041                    list.add(obj.toString());
042                    
043                    return list;
044            }*/
045    }