|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--uk.ac.ic.doc.automed.wrappers.AutoMedQuery
A generic representation of query expressions as trees, where each AutoMedQuery has an operator type, and 0 or more fields that have a field type
| Field Summary | |
static int |
BINARY_CLASS
|
static AutoMedQueryToken |
BOOLEAN
|
static int |
BOOLEAN_TOKEN
|
static int |
CLAUSE_CLASS
|
static int |
DATE_TOKEN
|
static int |
DOUBLE_TOKEN
|
static int |
FIELD_TYPE_AUTOMEDQUERY
A field that can hold a AutoMedQuery |
static int |
FIELD_TYPE_INTEGER
A field that can hold an Integer constant |
static int |
FIELD_TYPE_ONE_OR_MORE
Used when the previous field type may be repeated any number of times. |
static int |
FIELD_TYPE_STRING
A field that can hold a String constant |
static AutoMedQueryToken |
FLOAT
|
static int |
FLOAT_TOKEN
|
static int |
IDENTIFIER_TOKEN
|
static AutoMedQueryToken |
INTEGER
Token to represent the AutoMedWrapper.INTEGER atomic type |
static int |
INTEGER_TOKEN
|
static int |
LONG_TOKEN
|
static AutoMedQueryToken |
STRING
|
static int |
STRING_TOKEN
|
static int |
SYMBOL_TOKEN
|
static AutoMedQueryToken |
TIME
|
static int |
TIME_TOKEN
|
static int |
UNARY_CLASS
|
static int |
VALUE_CLASS
A class of token that represents an atomic value in an expression |
| Constructor Summary | |
AutoMedQuery(AutoMedQueryToken id,
java.lang.Object[] field)
|
|
| Method Summary | |
AutoMedQueryToken |
getAutoMedQueryToken()
Return the AutoMedQueryToken of this node; ie the type of object query node represents. |
java.lang.Object |
getField(int fieldNumber)
Return a field from the query node, where fields are counted from zero. |
java.lang.Object |
getString(int fieldNumber)
Return a field as a String value. |
void |
setField(int fieldNumber,
java.lang.Object value)
Return a field in the query node. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int VALUE_CLASS
public static final int UNARY_CLASS
public static final int BINARY_CLASS
public static final int CLAUSE_CLASS
public static final int INTEGER_TOKEN
public static final int LONG_TOKEN
public static final int FLOAT_TOKEN
public static final int DOUBLE_TOKEN
public static final int TIME_TOKEN
public static final int DATE_TOKEN
public static final int STRING_TOKEN
public static final int BOOLEAN_TOKEN
public static final int IDENTIFIER_TOKEN
public static final int SYMBOL_TOKEN
public static final AutoMedQueryToken INTEGER
public static final AutoMedQueryToken FLOAT
public static final AutoMedQueryToken TIME
public static final AutoMedQueryToken STRING
public static final AutoMedQueryToken BOOLEAN
public static final int FIELD_TYPE_STRING
public static final int FIELD_TYPE_INTEGER
public static final int FIELD_TYPE_AUTOMEDQUERY
public static final int FIELD_TYPE_ONE_OR_MORE
| Constructor Detail |
public AutoMedQuery(AutoMedQueryToken id,
java.lang.Object[] field)
| Method Detail |
public final AutoMedQueryToken getAutoMedQueryToken()
public final java.lang.Object getField(int fieldNumber)
fieldNumber - the field to return.public final java.lang.Object getString(int fieldNumber)
fieldNumber - the field to return.
public final void setField(int fieldNumber,
java.lang.Object value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||