1 46 package org.mr.api.jms.selector.parser; 47 48 import antlr.CommonAST; 49 import antlr.CommonToken; 50 import antlr.Token; 51 52 import org.mr.api.jms.selector.syntax.Context; 53 import org.mr.api.jms.selector.syntax.Type; 54 55 56 61 public class SelectorAST extends CommonAST { 62 63 66 private Type type; 67 68 71 private Context context; 72 73 74 77 public SelectorAST() { 78 type = Type.UNDEFINED; 79 } 81 86 public void initialize(final Token token) { 87 super.initialize(token); 88 context = new Context(((CommonToken) token).getLine(), ((CommonToken) token).getColumn()); 89 } 91 92 97 public void setReturnType(final Type type) { 98 this.type = type; 99 } 101 102 107 public Type getReturnType() { 108 return type; 109 } 111 116 public Context getContext() { 117 return context; 118 }} | Popular Tags |