1 43 44 package org.exolab.jms.selector.parser; 45 46 import antlr.CommonAST; 47 import antlr.CommonToken; 48 import antlr.Token; 49 import org.exolab.jms.selector.Context; 50 import org.exolab.jms.selector.Type; 51 52 53 64 public class SelectorAST extends CommonAST { 65 66 69 private Type _type; 70 71 74 private Context _context; 75 76 77 80 public SelectorAST() { 81 _type = Type.UNDEFINED; 82 } 83 84 89 public void initialize(final Token token) { 90 super.initialize(token); 91 _context = new Context(((CommonToken) token).getLine(), 92 ((CommonToken) token).getColumn()); 93 } 94 95 100 public void setReturnType(final Type type) { 101 _type = type; 102 } 103 104 109 public Type getReturnType() { 110 return _type; 111 } 112 113 118 public Context getContext() { 119 return _context; 120 } 121 122 } | Popular Tags |