public class Comparison extends Object implements ArdenBaseTreeParserTokenTypes
ACTION, ACTION_OP, AFTER, AGE_MAX, AGE_MIN, AGO, AMPERSAND, AND, ANY, APOSTROPHE, ARDEN_CURLY_BRACKETS, ARE, AT, AUTHOR, AVERAGE, AVG, BE, BECOMES, BEFORE, CALL, CITATIONS, COLON, COMMA, COMMENT, CONCLUDE, COUNT, DATA, DATE, DAY, DAYS, DIGIT, DIV, DOT, EARLIEST, ELSE, ELSEIF, ENDBLOCK, ENDIF, EOF, EQUAL, EQUALS, EVENT, EXIST, EXISTS, EXPLANATION, FALSE, FILENAME, FIRST, FROM, GREATER, GT, GTE, HTTP, ID, IF, IN, INSTITUTION, INTLIT, IS, IT, KEYWORDS, KNOWLEDGE, LAST, LATEST, LESS, LET, LIBRARY, LINKS, LITERAL_arden, LITERAL_BOOLEAN, LITERAL_CALL, LITERAL_DATA, LITERAL_data_driven, LITERAL_DURATION, LITERAL_end, LITERAL_EQ, LITERAL_evoke, LITERAL_expired, LITERAL_GE, LITERAL_GT, LITERAL_hour, LITERAL_hours, LITERAL_LE, LITERAL_LIST, LITERAL_LT, LITERAL_MERGE, LITERAL_minute, LITERAL_minutes, LITERAL_NE, LITERAL_NULL, LITERAL_NUMBER, LITERAL_OBJECT, LITERAL_Occur, LITERAL_OCCUR, LITERAL_Occurred, LITERAL_OCCURRED, LITERAL_occurs, LITERAL_Occurs, LITERAL_OCCURS, LITERAL_PRESENT, LITERAL_production, LITERAL_REFUTE, LITERAL_seconds, LITERAL_SEQTO, LITERAL_SORT, LITERAL_STRING, LITERAL_SUPPORT, LITERAL_testing, LITERAL_urgency, LITERAL_validation, LOGIC, LPAREN, LT, LTE, MAINTENANCE, MAX, MAXIMUM, MEDIAN, MIN, MINIMUM, MINUS, ML_COMMENT, MLMNAME, MONTH, MONTHS, NE, NOT, NOT_COMMENT, NOW, NULL, NULL_TREE_LOOKAHEAD, NUMBER, OCCUR, OF, OR, PAST, PERCENT, PLUS, POUND, PRESENT, PRIORITY, PURPOSE, READ, RESEARCH, RPAREN, SECOND, SEMI, SINGLE_QUOTE, SPECIALIST, STRING_LITERAL, SUM, TERM_LITERAL, THAN, THE, THEN, THEY, TIME, TIMES, TITLE, TO, TRUE, TYPE, UNDERSCORE, VERSION, WAS, WEEK, WEEKS, WEIRD_IDENT, WERE, WHERE, WITH, WITHIN, WRITE, YEAR, YEARS
Constructor and Description |
---|
Comparison(String key,
Integer operator) |
Modifier and Type | Method and Description |
---|---|
void |
addAnswerToList(Object answer) |
Object |
getAnswer() |
ArrayList<Object> |
getAnswerList() |
String |
getCompOpCode(MLMObjectElement objElement,
boolean isAnswerVar) |
void |
setAnswer(Object answer) |
void |
setKey(String key,
String keyList) |
void |
setOperator(Integer operator) |
void |
write(Writer w,
MLMObjectElement objElement,
boolean isAnswerVar) |
void |
writeComparisonList(Writer w) |
public void setAnswer(Object answer)
public Object getAnswer()
public void setOperator(Integer operator)
public void addAnswerToList(Object answer)
public String getCompOpCode(MLMObjectElement objElement, boolean isAnswerVar) throws Exception
Exception
public void write(Writer w, MLMObjectElement objElement, boolean isAnswerVar)
public void writeComparisonList(Writer w)
Copyright © 2018 OpenMRS LLC.. All Rights Reserved.