1 15 package org.josql.expressions; 16 17 import org.josql.Query; 18 import org.josql.QueryExecutionException; 19 import org.josql.QueryParseException; 20 21 28 public abstract class Expression 29 { 30 31 private boolean bracketed = false; 32 33 44 public abstract boolean isTrue (Object o, 45 Query q) 46 throws QueryExecutionException; 47 48 59 public abstract boolean hasFixedResult (Query q); 60 61 public void setBracketed (boolean v) 62 { 63 64 this.bracketed = v; 65 66 } 67 68 public boolean isBracketed () 69 { 70 71 return this.bracketed; 72 73 } 74 75 86 public abstract Class getExpectedReturnType (Query q) 87 throws QueryParseException; 88 89 96 public abstract void init (Query q) 97 throws QueryParseException; 98 99 113 public abstract Object getValue (Object o, 114 Query q) 115 throws QueryExecutionException; 116 117 123 public abstract String toString (); 124 125 } 126 | Popular Tags |