rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
if (jj_scan_token(FALSE)) return true;
if (jj_scan_token(NUMBER)) return true;
final private boolean jj_3R_53() { if (jj_scan_token(FALSE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(UNDEFINED)) return true;
if (jj_scan_token(OP_MINUS)) return true;
final private boolean jj_3R_54() { if (jj_scan_token(UNDEFINED)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(OP_NOT)) return true;
if (jj_scan_token(OP_EQ)) return true;
final private boolean jj_3R_55() { if (jj_scan_token(OP_NOT)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(NUMBER)) return true;
if (jj_scan_token(OP_SET)) return true;
final private boolean jj_3R_56() { if (jj_scan_token(NUMBER)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(OP_MINUS)) return true;
if (jj_scan_token(OP_NE)) return true;
final private boolean jj_3R_57() { if (jj_scan_token(OP_MINUS)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(OP_EQ)) return true;
if (jj_scan_token(OP_GT)) return true;
final private boolean jj_3R_58() { if (jj_scan_token(OP_EQ)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(OP_SET)) return true;
if (jj_scan_token(OP_GE)) return true;
final private boolean jj_3R_59() { if (jj_scan_token(OP_SET)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(OP_NE)) return true;
if (jj_scan_token(OP_LE)) return true;
final private boolean jj_3R_60() { if (jj_scan_token(OP_NE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(OP_GT)) return true;
if (jj_scan_token(OP_LT)) return true;
final private boolean jj_3R_61() { if (jj_scan_token(OP_GT)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(OP_GE)) return true;
Token xsp; xsp = jj_scanpos; if (jj_3R_69()) { jj_scanpos = xsp; if (jj_3R_70()) { jj_scanpos = xsp; if (jj_3R_71()) { jj_scanpos = xsp; if (jj_3R_72()) { jj_scanpos = xsp; if (jj_3R_73()) return true;
final private boolean jj_3R_62() { if (jj_scan_token(OP_GE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
} else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
final private boolean jj_3R_62() { if (jj_scan_token(OP_GE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(OP_LE)) return true;
if (jj_scan_token(LBRACE)) return true;
final private boolean jj_3R_63() { if (jj_scan_token(OP_LE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(OP_LT)) return true;
if (jj_scan_token(RBRACE)) return true;
final private boolean jj_3R_64() { if (jj_scan_token(OP_LT)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
Token xsp; xsp = jj_scanpos; if (jj_3R_72()) { jj_scanpos = xsp; if (jj_3R_73()) { jj_scanpos = xsp; if (jj_3R_74()) { jj_scanpos = xsp; if (jj_3R_75()) { jj_scanpos = xsp; if (jj_3R_76()) return true;
if (jj_scan_token(POUND)) return true;
final private boolean jj_3R_65() { Token xsp; xsp = jj_scanpos; if (jj_3R_72()) { jj_scanpos = xsp; if (jj_3R_73()) { jj_scanpos = xsp; if (jj_3R_74()) { jj_scanpos = xsp; if (jj_3R_75()) { jj_scanpos = xsp; if (jj_3R_76()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
} else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
final private boolean jj_3R_65() { Token xsp; xsp = jj_scanpos; if (jj_3R_72()) { jj_scanpos = xsp; if (jj_3R_73()) { jj_scanpos = xsp; if (jj_3R_74()) { jj_scanpos = xsp; if (jj_3R_75()) { jj_scanpos = xsp; if (jj_3R_76()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(LBRACE)) return true;
if (jj_scan_token(DOLLAR)) return true;
final private boolean jj_3R_66() { if (jj_scan_token(LBRACE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(RBRACE)) return true;
Token xsp; xsp = jj_scanpos; if (jj_3R_74()) { jj_scanpos = xsp; if (jj_3R_75()) return true;
final private boolean jj_3R_67() { if (jj_scan_token(RBRACE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
} else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
final private boolean jj_3R_67() { if (jj_scan_token(RBRACE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(POUND)) return true;
if (jj_scan_token(LBRACKET)) return true;
final private boolean jj_3R_68() { if (jj_scan_token(POUND)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(DOLLAR)) return true;
if (jj_scan_token(STUFF)) return true;
final private boolean jj_3R_69() { if (jj_scan_token(DOLLAR)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
Token xsp; xsp = jj_scanpos; if (jj_3R_77()) { jj_scanpos = xsp; if (jj_3R_78()) return true;
if (jj_scan_token(QCHAR)) return true;
final private boolean jj_3R_70() { Token xsp; xsp = jj_scanpos; if (jj_3R_77()) { jj_scanpos = xsp; if (jj_3R_78()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
} else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
final private boolean jj_3R_70() { Token xsp; xsp = jj_scanpos; if (jj_3R_77()) { jj_scanpos = xsp; if (jj_3R_78()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(LBRACKET)) return true;
if (jj_scan_token(SLASH)) return true;
final private boolean jj_3R_71() { if (jj_scan_token(LBRACKET)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(STUFF)) return true;
if (jj_3R_76()) return true;
final private boolean jj_3R_72() { if (jj_scan_token(STUFF)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(QCHAR)) return true;
if (jj_3R_77()) return true;
final private boolean jj_3R_73() { if (jj_scan_token(QCHAR)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(SLASH)) return true;
if (jj_scan_token(QUOTE)) return true;
final private boolean jj_3R_74() { if (jj_scan_token(SLASH)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_3R_79()) return true;
if (jj_scan_token(SQUOTE)) return true;
final private boolean jj_3R_75() { if (jj_3R_79()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_3R_80()) return true;
if (jj_scan_token(POUNDPOUND)) return true;
final private boolean jj_3R_76() { if (jj_3R_80()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(QUOTE)) return true;
Token xsp; xsp = jj_scanpos; if (jj_3R_78()) { jj_scanpos = xsp; if (jj_3R_79()) return true;
final private boolean jj_3R_77() { if (jj_scan_token(QUOTE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
} else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
final private boolean jj_3R_77() { if (jj_scan_token(QUOTE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(SQUOTE)) return true;
if (jj_3R_66()) return true;
final private boolean jj_3R_78() { if (jj_scan_token(SQUOTE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(POUNDPOUND)) return true;
if (jj_scan_token(DOLLAR)) return true;
final private boolean jj_3R_79() { if (jj_scan_token(POUNDPOUND)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(DOLLAR)) return true;
Token xsp; xsp = jj_scanpos; if (jj_3R_19()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_20()) { jj_scanpos = xsp; if (jj_3R_21()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_22()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_23()) return true;
final private boolean jj_3_10() { if (jj_scan_token(DOLLAR)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_3R_20()) jj_scanpos = xsp;
if (jj_3R_24()) jj_scanpos = xsp;
final private boolean jj_3_11() { Token xsp; xsp = jj_scanpos; if (jj_3R_20()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_21()) { jj_scanpos = xsp; if (jj_3R_22()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_23()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_24()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_3R_21()) {
if (jj_3R_25()) {
final private boolean jj_3_11() { Token xsp; xsp = jj_scanpos; if (jj_3R_20()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_21()) { jj_scanpos = xsp; if (jj_3R_22()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_23()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_24()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_3R_22()) return true;
if (jj_3R_26()) return true;
final private boolean jj_3_11() { Token xsp; xsp = jj_scanpos; if (jj_3R_20()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_21()) { jj_scanpos = xsp; if (jj_3R_22()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_23()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_24()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_3R_23()) jj_scanpos = xsp;
if (jj_3R_27()) jj_scanpos = xsp;
final private boolean jj_3_11() { Token xsp; xsp = jj_scanpos; if (jj_3R_20()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_21()) { jj_scanpos = xsp; if (jj_3R_22()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_23()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_24()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_3R_24()) return true;
if (jj_3R_28()) return true;
final private boolean jj_3_11() { Token xsp; xsp = jj_scanpos; if (jj_3R_20()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_21()) { jj_scanpos = xsp; if (jj_3R_22()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_23()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_24()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_3R_25()) jj_scanpos = xsp;
if (jj_3R_29()) jj_scanpos = xsp;
final private boolean jj_3_12() { Token xsp; xsp = jj_scanpos; if (jj_3R_25()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_26()) { jj_scanpos = xsp; if (jj_3R_27()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_28()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_29()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_3R_26()) { jj_scanpos = xsp; if (jj_3R_27()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_28()) jj_scanpos = xsp;
if (jj_3R_31()) jj_scanpos = xsp;
final private boolean jj_3_12() { Token xsp; xsp = jj_scanpos; if (jj_3R_25()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_26()) { jj_scanpos = xsp; if (jj_3R_27()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_28()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_29()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_3R_29()) return true;
if (jj_3R_32()) return true;
final private boolean jj_3_12() { Token xsp; xsp = jj_scanpos; if (jj_3R_25()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_26()) { jj_scanpos = xsp; if (jj_3R_27()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_28()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_29()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_3R_30()) jj_scanpos = xsp;
if (jj_3R_33()) jj_scanpos = xsp;
final private boolean jj_3_13() { Token xsp; xsp = jj_scanpos; if (jj_3R_30()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_31()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_32()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_33()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_3R_31()) return true;
if (jj_scan_token(OP_AND)) return true;
final private boolean jj_3_13() { Token xsp; xsp = jj_scanpos; if (jj_3R_30()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_31()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_32()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_33()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_3R_32()) jj_scanpos = xsp;
if (jj_3R_34()) jj_scanpos = xsp;
final private boolean jj_3_13() { Token xsp; xsp = jj_scanpos; if (jj_3R_30()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_31()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_32()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_33()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_3R_33()) return true;
if (jj_3R_35()) return true;
final private boolean jj_3_13() { Token xsp; xsp = jj_scanpos; if (jj_3R_30()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_31()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_32()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_33()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_3R_34()) jj_scanpos = xsp;
if (jj_3R_36()) jj_scanpos = xsp;
final private boolean jj_3_14() { Token xsp; xsp = jj_scanpos; if (jj_3R_34()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(OP_AND)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_35()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_36()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(OP_AND)) return true;
if (jj_scan_token(OP_OR)) return true;
final private boolean jj_3_14() { Token xsp; xsp = jj_scanpos; if (jj_3R_34()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(OP_AND)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_35()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_36()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_3R_35()) jj_scanpos = xsp;
if (jj_3R_37()) jj_scanpos = xsp;
final private boolean jj_3_14() { Token xsp; xsp = jj_scanpos; if (jj_3R_34()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(OP_AND)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_35()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_36()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_3R_36()) return true;
if (jj_3R_38()) return true;
final private boolean jj_3_14() { Token xsp; xsp = jj_scanpos; if (jj_3R_34()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(OP_AND)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_35()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_36()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
Token xsp; xsp = jj_scanpos; if (jj_3R_37()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(OP_OR)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_38()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_39()) return true;
if (jj_scan_token(WORD)) return true;
final private boolean jj_3_15() { Token xsp; xsp = jj_scanpos; if (jj_3R_37()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(OP_OR)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_38()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_39()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(DOLLAR)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; Token xsp; xsp = jj_scanpos; if (jj_3R_39()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_40()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
final private boolean jj_3_16() { if (jj_scan_token(WORD)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
Token xsp; xsp = jj_scanpos; if (jj_3R_40()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_41()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(WORD)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
final private boolean jj_3_17() { if (jj_scan_token(DOLLAR)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; Token xsp; xsp = jj_scanpos; if (jj_3R_40()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_41()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(WORD)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(DOLLAR)) return true;
if (jj_scan_token(LBRACE)) return true;
final private boolean jj_3_19() { if (jj_scan_token(DOLLAR)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(LBRACE)) return true;
Token xsp; xsp = jj_scanpos; if (jj_3R_41()) { jj_scanpos = xsp; if (jj_3R_42()) { jj_scanpos = xsp; lookingAhead = true; jj_semLA = lookahead_not_breaking_subd(); lookingAhead = false; if (!jj_semLA || jj_3R_43()) return true;
final private boolean jj_3_20() { if (jj_scan_token(LBRACE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
} else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
final private boolean jj_3_20() { if (jj_scan_token(LBRACE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
Token xsp; xsp = jj_scanpos; if (jj_3R_42()) { jj_scanpos = xsp; if (jj_3R_43()) { jj_scanpos = xsp; lookingAhead = true; jj_semLA = lookahead_not_breaking_subd(); lookingAhead = false; if (!jj_semLA || jj_3R_44()) return true;
if (jj_scan_token(POUND)) return true;
final private boolean jj_3_21() { Token xsp; xsp = jj_scanpos; if (jj_3R_42()) { jj_scanpos = xsp; if (jj_3R_43()) { jj_scanpos = xsp; lookingAhead = true; jj_semLA = lookahead_not_breaking_subd(); lookingAhead = false; if (!jj_semLA || jj_3R_44()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
} else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
final private boolean jj_3_21() { Token xsp; xsp = jj_scanpos; if (jj_3R_42()) { jj_scanpos = xsp; if (jj_3R_43()) { jj_scanpos = xsp; lookingAhead = true; jj_semLA = lookahead_not_breaking_subd(); lookingAhead = false; if (!jj_semLA || jj_3R_44()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(POUND)) return true;
if (jj_scan_token(LBRACE)) return true;
final private boolean jj_3_22() { if (jj_scan_token(POUND)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
Token xsp; if (jj_3R_19()) return true;
if (jj_scan_token(DOT)) return true;
final private boolean jj_3_6() { Token xsp; if (jj_3R_19()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; while (true) { xsp = jj_scanpos; if (jj_3R_19()) { jj_scanpos = xsp; break; } if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } return false; }
while (true) { xsp = jj_scanpos; if (jj_3R_19()) { jj_scanpos = xsp; break; } if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; }
if (jj_scan_token(WORD)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
final private boolean jj_3_6() { Token xsp; if (jj_3R_19()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; while (true) { xsp = jj_scanpos; if (jj_3R_19()) { jj_scanpos = xsp; break; } if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } return false; }
if (jj_scan_token(DOT)) return true;
if (jj_scan_token(WORD)) return true;
final private boolean jj_3_7() { if (jj_scan_token(DOT)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(WORD)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(WORD)) return true;
if (jj_scan_token(SEMI)) return true;
final private boolean jj_3_7() { if (jj_scan_token(DOT)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(WORD)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(WORD)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(SEMI)) return true;
if (jj_scan_token(DOLLAR)) return true;
final private boolean jj_3_8() { if (jj_scan_token(WORD)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(SEMI)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
try { l = (_l instanceof Macro) ? ((Macro) _l).evaluate(context) : _l; } catch (Exception e) { l = null; }
l = (_l instanceof Macro) ? ((Macro) _l).evaluate(context) : _l;
public Object evaluate(Context context) throws PropertyException { Object l, r; try { l = (_l instanceof Macro) ? ((Macro) _l).evaluate(context) : _l; } catch (Exception e) { l = null; } if (!isTrue(l)) return FALSE; try { r = (_r instanceof Macro) ? ((Macro) _r).evaluate(context) : _r; } catch (Exception e) { r = null; } if (!isTrue(r)) return FALSE; return TRUE; }
try { r = (_r instanceof Macro) ? ((Macro) _r).evaluate(context) : _r; } catch (Exception e) { r = null; }
r = (_r instanceof Macro) ? ((Macro) _r).evaluate(context) : _r;
public Object evaluate(Context context) throws PropertyException { Object l, r; try { l = (_l instanceof Macro) ? ((Macro) _l).evaluate(context) : _l; } catch (Exception e) { l = null; } if (!isTrue(l)) return FALSE; try { r = (_r instanceof Macro) ? ((Macro) _r).evaluate(context) : _r; } catch (Exception e) { r = null; } if (!isTrue(r)) return FALSE; return TRUE; }
try { l = (_l instanceof Macro) ? ((Macro) _l).evaluate(context) : _l; } catch (Exception e) { l = null; } try { r = (_r instanceof Macro) ? ((Macro) _r).evaluate(context) : _r; } catch (Exception e) { r = null; }
l = (_l instanceof Macro) ? ((Macro) _l).evaluate(context) : _l; r = (_r instanceof Macro) ? ((Macro) _r).evaluate(context) : _r;
public Object evaluate(Context context) throws PropertyException { Object l, r; try { l = (_l instanceof Macro) ? ((Macro) _l).evaluate(context) : _l; } catch (Exception e) { l = null; } try { r = (_r instanceof Macro) ? ((Macro) _r).evaluate(context) : _r; } catch (Exception e) { r = null; } return operate(l, r); }
try { l = (_l instanceof Macro) ? ((Macro) _l).evaluate(context) : _l; } catch (Exception e) { l = null; }
l = (_l instanceof Macro) ? ((Macro) _l).evaluate(context) : _l;
public Object evaluate(Context context) throws PropertyException { Object l, r; try { l = (_l instanceof Macro) ? ((Macro) _l).evaluate(context) : _l; } catch (Exception e) { l = null; } if (isTrue(l)) return TRUE; try { r = (_r instanceof Macro) ? ((Macro) _r).evaluate(context) : _r; } catch (Exception e) { r = null; } if (isTrue(r)) return TRUE; return FALSE; }
try { r = (_r instanceof Macro) ? ((Macro) _r).evaluate(context) : _r; } catch (Exception e) { r = null; }
r = (_r instanceof Macro) ? ((Macro) _r).evaluate(context) : _r;
public Object evaluate(Context context) throws PropertyException { Object l, r; try { l = (_l instanceof Macro) ? ((Macro) _l).evaluate(context) : _l; } catch (Exception e) { l = null; } if (isTrue(l)) return TRUE; try { r = (_r instanceof Macro) ? ((Macro) _r).evaluate(context) : _r; } catch (Exception e) { r = null; } if (isTrue(r)) return TRUE; return FALSE; }
_bwriter = new BufferedWriter(new OutputStreamWriter(_bstream, encoding));
_bwriter = new OutputStreamWriter(_bstream, encoding);
public FastWriter(OutputStream out, String encoding) throws java.io.UnsupportedEncodingException { _encoding = encoding; _bstream = new ByteBufferOutputStream(4096); _bwriter = new BufferedWriter(new OutputStreamWriter(_bstream, encoding)); _cache = EncodingCache.getInstance(encoding); _encodeProperly = true; _buffered = false; _out = out; }
return _bstream.toByteArray();
return _bstream.getBytes();
public byte[] toByteArray() { bflush(); return _bstream.toByteArray(); }
try { if (_encodeProperly) { bflush(); _bstream.write(_cache.getEncoding(s)); } else { write(s,0,s.length()); } } catch (IOException e) { e.printStackTrace();
if (_encodeProperly) { bflush(); _bstream.write(_cache.getEncoding(s)); } else { write(s,0,s.length());
public void writeStatic(String s) { try { if (_encodeProperly) { bflush(); _bstream.write(_cache.getEncoding(s)); } else { write(s,0,s.length()); } } catch (IOException e) { e.printStackTrace(); // never happens } }
for (String nick : invitees.keySet()) { String jid = SparkManager.getUserManager().getJIDFromNickname(nick); Occupant occ = chat.getOccupant(participantJID); if (occ != null) { String actualJID = occ.getJid(); if (actualJID.equals(jid)) { int index = getIndex(nick); if (index != -1) { model.removeElementAt(index); } } } }
private void addParticipant(String participantJID, Presence presence) { String nickname = StringUtils.parseResource(participantJID); Occupant occupant = SparkManager.getUserManager().getOccupant(groupChatRoom, nickname); boolean isOwnerOrAdmin = SparkManager.getUserManager().isOwnerOrAdmin(occupant); boolean isModerator = SparkManager.getUserManager().isModerator(occupant); if (!exists(nickname)) { ImageIcon icon = SparkRes.getImageIcon(SparkRes.MODERATOR_IMAGE); if (!isOwnerOrAdmin) { if (isModerator) { icon = SparkRes.getImageIcon(SparkRes.MODERATOR_IMAGE); } else { StatusBar statusBar = SparkManager.getWorkspace().getStatusBar(); StatusItem item = statusBar.getItemFromPresence(presence); if (item != null) { icon = new ImageIcon(item.getImageIcon().getImage()); } else { icon = SparkRes.getImageIcon(SparkRes.GREEN_BALL); } } } icon.setDescription(nickname); model.addElement(icon); } else { ImageIcon icon = SparkRes.getImageIcon(SparkRes.MODERATOR_IMAGE); if (!isOwnerOrAdmin) { if (isModerator) { icon = SparkRes.getImageIcon(SparkRes.MODERATOR_IMAGE); } else { StatusBar statusBar = SparkManager.getWorkspace().getStatusBar(); StatusItem item = statusBar.getItemFromPresence(presence); if (item != null) { icon = new ImageIcon(item.getImageIcon().getImage()); } else { icon = SparkRes.getImageIcon(SparkRes.GREEN_BALL); } } } icon.setDescription(nickname); int index = getIndex(nickname); if (index != -1) { model.removeElementAt(index); model.insertElementAt(icon, index); } } }
boolean isMe = groupJIDNickname.equals(nickname);
boolean isMe = nickname.equals(groupJIDNickname);
private void checkPopup(MouseEvent evt) { final int index = list.locationToIndex(evt.getPoint()); list.setSelectedIndex(index); final String selectedUser = getSelectedUser(); final String groupJID = (String)userMap.get(selectedUser); String groupJIDNickname = StringUtils.parseResource(groupJID); final String nickname = groupChatRoom.getNickname(); final Occupant occupant = userManager.getOccupant(groupChatRoom, selectedUser); final boolean admin = SparkManager.getUserManager().isOwnerOrAdmin(groupChatRoom, chat.getNickname()); final boolean moderator = SparkManager.getUserManager().isModerator(groupChatRoom, chat.getNickname()); final boolean userIsAdmin = userManager.isOwnerOrAdmin(occupant); final boolean userIsModerator = userManager.isModerator(occupant); boolean isMe = groupJIDNickname.equals(nickname); JPopupMenu popup = new JPopupMenu(); if (isMe) { Action changeNicknameAction = new AbstractAction() { public void actionPerformed(ActionEvent actionEvent) { String newNickname = JOptionPane.showInputDialog(groupChatRoom, Res.getString("label.new.nickname") + ":", Res.getString("title.change.nickname"), JOptionPane.QUESTION_MESSAGE); if (ModelUtil.hasLength(newNickname)) { while (true) { newNickname = newNickname.trim(); try { chat.changeNickname(newNickname); break; } catch (XMPPException e1) { newNickname = JOptionPane.showInputDialog(groupChatRoom, Res.getString("message.nickname.in.use") + ":", Res.getString("title.change.nickname"), JOptionPane.QUESTION_MESSAGE); if (!ModelUtil.hasLength(newNickname)) { break; } } } } } }; changeNicknameAction.putValue(Action.NAME, Res.getString("menuitem.change.nickname")); changeNicknameAction.putValue(Action.SMALL_ICON, SparkRes.getImageIcon(SparkRes.DESKTOP_IMAGE)); if (allowNicknameChange) { popup.add(changeNicknameAction); } } Action chatAction = new AbstractAction() { public void actionPerformed(ActionEvent actionEvent) { String selectedUser = getSelectedUser(); startChat(groupChatRoom, (String)userMap.get(selectedUser)); } }; chatAction.putValue(Action.NAME, Res.getString("menuitem.start.a.chat")); chatAction.putValue(Action.SMALL_ICON, SparkRes.getImageIcon(SparkRes.SMALL_MESSAGE_IMAGE)); if (!isMe) { popup.add(chatAction); } Action blockAction = new AbstractAction() { public void actionPerformed(ActionEvent e) { ImageIcon icon = (ImageIcon)list.getSelectedValue(); String description = icon.getDescription(); if (groupChatRoom.isBlocked(groupJID)) { groupChatRoom.removeBlockedUser(groupJID); icon = getImageIcon(groupJID); model.setElementAt(icon, index); } else { groupChatRoom.addBlockedUser(groupJID); icon = SparkRes.getImageIcon(SparkRes.BRICKWALL_IMAGE); icon.setDescription(description); model.setElementAt(icon, index); } } }; blockAction.putValue(Action.NAME, Res.getString("menuitem.block.user")); blockAction.putValue(Action.SMALL_ICON, SparkRes.getImageIcon(SparkRes.BRICKWALL_IMAGE)); if (!isMe) { if (groupChatRoom.isBlocked(groupJID)) { blockAction.putValue(Action.NAME, Res.getString("menuitem.unblock.user")); } popup.add(blockAction); } Action kickAction = new AbstractAction() { public void actionPerformed(ActionEvent actionEvent) { kickUser(selectedUser); } }; kickAction.putValue(Action.NAME, Res.getString("menuitem.kick.user")); kickAction.putValue(Action.SMALL_ICON, SparkRes.getImageIcon(SparkRes.SMALL_DELETE)); if (moderator && !userIsAdmin && !isMe) { popup.add(kickAction); } // Handle Voice Operations Action voiceAction = new AbstractAction() { public void actionPerformed(ActionEvent actionEvent) { if (userManager.hasVoice(groupChatRoom, selectedUser)) { revokeVoice(selectedUser); } else { grantVoice(selectedUser); } } }; voiceAction.putValue(Action.NAME, Res.getString("menuitem.voice")); voiceAction.putValue(Action.SMALL_ICON, SparkRes.getImageIcon(SparkRes.MEGAPHONE_16x16)); if (moderator && !userIsModerator && !isMe) { if (userManager.hasVoice(groupChatRoom, selectedUser)) { voiceAction.putValue(Action.NAME, Res.getString("menuitem.revoke.voice")); } else { voiceAction.putValue(Action.NAME, Res.getString("menuitem.grant.voice")); } popup.add(voiceAction); } Action banAction = new AbstractAction() { public void actionPerformed(ActionEvent actionEvent) { banUser(selectedUser); } }; banAction.putValue(Action.NAME, Res.getString("menuitem.ban.user")); banAction.putValue(Action.SMALL_ICON, SparkRes.getImageIcon(SparkRes.RED_FLAG_16x16)); if (admin && !userIsModerator && !isMe) { popup.add(banAction); } Action moderatorAction = new AbstractAction() { public void actionPerformed(ActionEvent actionEvent) { if (!userIsModerator) { grantModerator(selectedUser); } else { revokeModerator(selectedUser); } } }; moderatorAction.putValue(Action.SMALL_ICON, SparkRes.getImageIcon(SparkRes.MODERATOR_IMAGE)); if (admin && !userIsModerator) { moderatorAction.putValue(Action.NAME, Res.getString("menuitem.grant.moderator")); popup.add(moderatorAction); } else if (admin && userIsModerator && !isMe) { moderatorAction.putValue(Action.NAME, Res.getString("menuitem.revoke.moderator")); popup.add(moderatorAction); } // Handle Unbanning of users. Action unbanAction = new AbstractAction() { public void actionPerformed(ActionEvent actionEvent) { String jid = ((JMenuItem)actionEvent.getSource()).getText(); unbanUser(jid); } }; if (admin) { JMenu unbanMenu = new JMenu(Res.getString("menuitem.unban")); Iterator bannedUsers = null; try { bannedUsers = chat.getOutcasts().iterator(); } catch (XMPPException e) { Log.error("Error loading all banned users", e); } while (bannedUsers != null && bannedUsers.hasNext()) { Affiliate bannedUser = (Affiliate)bannedUsers.next(); ImageIcon icon = SparkRes.getImageIcon(SparkRes.RED_BALL); JMenuItem bannedItem = new JMenuItem(bannedUser.getJid(), icon); unbanMenu.add(bannedItem); bannedItem.addActionListener(unbanAction); } if (unbanMenu.getMenuComponentCount() > 0) { popup.add(unbanMenu); } } Action inviteAction = new AbstractAction() { public void actionPerformed(ActionEvent actionEvent) { ConferenceUtils.inviteUsersToRoom(groupChatRoom.getConferenceService(), groupChatRoom.getRoomname(), null); } }; inviteAction.putValue(Action.NAME, Res.getString("menuitem.invite.users")); inviteAction.putValue(Action.SMALL_ICON, SparkRes.getImageIcon(SparkRes.CONFERENCE_IMAGE_16x16)); popup.addSeparator(); popup.add(inviteAction); popup.show(list, evt.getX(), evt.getY()); }
if (groupJIDNickname == null) { Action inviteAgainAction = new AbstractAction() { public void actionPerformed(ActionEvent actionEvent) { String message = invitees.get(selectedUser); String jid = userManager.getJIDFromNickname(selectedUser); chat.invite(jid, message); } }; inviteAgainAction.putValue(Action.NAME, "Invite Again"); popup.add(inviteAgainAction); Action removeInvite = new AbstractAction() { public void actionPerformed(ActionEvent actionEvent) { int index = getIndex(selectedUser); if (index != -1) { model.removeElementAt(index); } } }; removeInvite.putValue(Action.NAME, "Remove"); popup.add(removeInvite); popup.show(list, evt.getX(), evt.getY()); return; }
private void checkPopup(MouseEvent evt) { final int index = list.locationToIndex(evt.getPoint()); list.setSelectedIndex(index); final String selectedUser = getSelectedUser(); final String groupJID = (String)userMap.get(selectedUser); String groupJIDNickname = StringUtils.parseResource(groupJID); final String nickname = groupChatRoom.getNickname(); final Occupant occupant = userManager.getOccupant(groupChatRoom, selectedUser); final boolean admin = SparkManager.getUserManager().isOwnerOrAdmin(groupChatRoom, chat.getNickname()); final boolean moderator = SparkManager.getUserManager().isModerator(groupChatRoom, chat.getNickname()); final boolean userIsAdmin = userManager.isOwnerOrAdmin(occupant); final boolean userIsModerator = userManager.isModerator(occupant); boolean isMe = groupJIDNickname.equals(nickname); JPopupMenu popup = new JPopupMenu(); if (isMe) { Action changeNicknameAction = new AbstractAction() { public void actionPerformed(ActionEvent actionEvent) { String newNickname = JOptionPane.showInputDialog(groupChatRoom, Res.getString("label.new.nickname") + ":", Res.getString("title.change.nickname"), JOptionPane.QUESTION_MESSAGE); if (ModelUtil.hasLength(newNickname)) { while (true) { newNickname = newNickname.trim(); try { chat.changeNickname(newNickname); break; } catch (XMPPException e1) { newNickname = JOptionPane.showInputDialog(groupChatRoom, Res.getString("message.nickname.in.use") + ":", Res.getString("title.change.nickname"), JOptionPane.QUESTION_MESSAGE); if (!ModelUtil.hasLength(newNickname)) { break; } } } } } }; changeNicknameAction.putValue(Action.NAME, Res.getString("menuitem.change.nickname")); changeNicknameAction.putValue(Action.SMALL_ICON, SparkRes.getImageIcon(SparkRes.DESKTOP_IMAGE)); if (allowNicknameChange) { popup.add(changeNicknameAction); } } Action chatAction = new AbstractAction() { public void actionPerformed(ActionEvent actionEvent) { String selectedUser = getSelectedUser(); startChat(groupChatRoom, (String)userMap.get(selectedUser)); } }; chatAction.putValue(Action.NAME, Res.getString("menuitem.start.a.chat")); chatAction.putValue(Action.SMALL_ICON, SparkRes.getImageIcon(SparkRes.SMALL_MESSAGE_IMAGE)); if (!isMe) { popup.add(chatAction); } Action blockAction = new AbstractAction() { public void actionPerformed(ActionEvent e) { ImageIcon icon = (ImageIcon)list.getSelectedValue(); String description = icon.getDescription(); if (groupChatRoom.isBlocked(groupJID)) { groupChatRoom.removeBlockedUser(groupJID); icon = getImageIcon(groupJID); model.setElementAt(icon, index); } else { groupChatRoom.addBlockedUser(groupJID); icon = SparkRes.getImageIcon(SparkRes.BRICKWALL_IMAGE); icon.setDescription(description); model.setElementAt(icon, index); } } }; blockAction.putValue(Action.NAME, Res.getString("menuitem.block.user")); blockAction.putValue(Action.SMALL_ICON, SparkRes.getImageIcon(SparkRes.BRICKWALL_IMAGE)); if (!isMe) { if (groupChatRoom.isBlocked(groupJID)) { blockAction.putValue(Action.NAME, Res.getString("menuitem.unblock.user")); } popup.add(blockAction); } Action kickAction = new AbstractAction() { public void actionPerformed(ActionEvent actionEvent) { kickUser(selectedUser); } }; kickAction.putValue(Action.NAME, Res.getString("menuitem.kick.user")); kickAction.putValue(Action.SMALL_ICON, SparkRes.getImageIcon(SparkRes.SMALL_DELETE)); if (moderator && !userIsAdmin && !isMe) { popup.add(kickAction); } // Handle Voice Operations Action voiceAction = new AbstractAction() { public void actionPerformed(ActionEvent actionEvent) { if (userManager.hasVoice(groupChatRoom, selectedUser)) { revokeVoice(selectedUser); } else { grantVoice(selectedUser); } } }; voiceAction.putValue(Action.NAME, Res.getString("menuitem.voice")); voiceAction.putValue(Action.SMALL_ICON, SparkRes.getImageIcon(SparkRes.MEGAPHONE_16x16)); if (moderator && !userIsModerator && !isMe) { if (userManager.hasVoice(groupChatRoom, selectedUser)) { voiceAction.putValue(Action.NAME, Res.getString("menuitem.revoke.voice")); } else { voiceAction.putValue(Action.NAME, Res.getString("menuitem.grant.voice")); } popup.add(voiceAction); } Action banAction = new AbstractAction() { public void actionPerformed(ActionEvent actionEvent) { banUser(selectedUser); } }; banAction.putValue(Action.NAME, Res.getString("menuitem.ban.user")); banAction.putValue(Action.SMALL_ICON, SparkRes.getImageIcon(SparkRes.RED_FLAG_16x16)); if (admin && !userIsModerator && !isMe) { popup.add(banAction); } Action moderatorAction = new AbstractAction() { public void actionPerformed(ActionEvent actionEvent) { if (!userIsModerator) { grantModerator(selectedUser); } else { revokeModerator(selectedUser); } } }; moderatorAction.putValue(Action.SMALL_ICON, SparkRes.getImageIcon(SparkRes.MODERATOR_IMAGE)); if (admin && !userIsModerator) { moderatorAction.putValue(Action.NAME, Res.getString("menuitem.grant.moderator")); popup.add(moderatorAction); } else if (admin && userIsModerator && !isMe) { moderatorAction.putValue(Action.NAME, Res.getString("menuitem.revoke.moderator")); popup.add(moderatorAction); } // Handle Unbanning of users. Action unbanAction = new AbstractAction() { public void actionPerformed(ActionEvent actionEvent) { String jid = ((JMenuItem)actionEvent.getSource()).getText(); unbanUser(jid); } }; if (admin) { JMenu unbanMenu = new JMenu(Res.getString("menuitem.unban")); Iterator bannedUsers = null; try { bannedUsers = chat.getOutcasts().iterator(); } catch (XMPPException e) { Log.error("Error loading all banned users", e); } while (bannedUsers != null && bannedUsers.hasNext()) { Affiliate bannedUser = (Affiliate)bannedUsers.next(); ImageIcon icon = SparkRes.getImageIcon(SparkRes.RED_BALL); JMenuItem bannedItem = new JMenuItem(bannedUser.getJid(), icon); unbanMenu.add(bannedItem); bannedItem.addActionListener(unbanAction); } if (unbanMenu.getMenuComponentCount() > 0) { popup.add(unbanMenu); } } Action inviteAction = new AbstractAction() { public void actionPerformed(ActionEvent actionEvent) { ConferenceUtils.inviteUsersToRoom(groupChatRoom.getConferenceService(), groupChatRoom.getRoomname(), null); } }; inviteAction.putValue(Action.NAME, Res.getString("menuitem.invite.users")); inviteAction.putValue(Action.SMALL_ICON, SparkRes.getImageIcon(SparkRes.CONFERENCE_IMAGE_16x16)); popup.addSeparator(); popup.add(inviteAction); popup.show(list, evt.getX(), evt.getY()); }
public void actionPerformed(ActionEvent actionEvent) { banUser(selectedUser);
public void actionPerformed(ActionEvent e) { ImageIcon icon = (ImageIcon)list.getSelectedValue(); String description = icon.getDescription(); if (groupChatRoom.isBlocked(groupJID)) { groupChatRoom.removeBlockedUser(groupJID); icon = getImageIcon(groupJID); model.setElementAt(icon, index); } else { groupChatRoom.addBlockedUser(groupJID); icon = SparkRes.getImageIcon(SparkRes.BRICKWALL_IMAGE); icon.setDescription(description); model.setElementAt(icon, index); }
public void actionPerformed(ActionEvent actionEvent) { banUser(selectedUser); }
if (!userIsModerator) { grantModerator(selectedUser); } else { revokeModerator(selectedUser); }
kickUser(selectedUser);
public void actionPerformed(ActionEvent actionEvent) { if (!userIsModerator) { grantModerator(selectedUser); } else { revokeModerator(selectedUser); } }
String jid = ((JMenuItem)actionEvent.getSource()).getText(); unbanUser(jid);
if (userManager.hasVoice(groupChatRoom, selectedUser)) { revokeVoice(selectedUser); } else { grantVoice(selectedUser); }
public void actionPerformed(ActionEvent actionEvent) { String jid = ((JMenuItem)actionEvent.getSource()).getText(); unbanUser(jid); }
ConferenceUtils.inviteUsersToRoom(groupChatRoom.getConferenceService(), groupChatRoom.getRoomname(), null);
banUser(selectedUser);
public void actionPerformed(ActionEvent actionEvent) { ConferenceUtils.inviteUsersToRoom(groupChatRoom.getConferenceService(), groupChatRoom.getRoomname(), null); }
String selectedUser = getSelectedUser(); startChat(groupChatRoom, (String)userMap.get(selectedUser)); }
String message = invitees.get(selectedUser); String jid = userManager.getJIDFromNickname(selectedUser); chat.invite(jid, message); }
public void actionPerformed(ActionEvent actionEvent) { String selectedUser = getSelectedUser(); startChat(groupChatRoom, (String)userMap.get(selectedUser)); }
public void actionPerformed(ActionEvent e) { ImageIcon icon = (ImageIcon)list.getSelectedValue(); String description = icon.getDescription(); if (groupChatRoom.isBlocked(groupJID)) { groupChatRoom.removeBlockedUser(groupJID); icon = getImageIcon(groupJID); model.setElementAt(icon, index);
public void actionPerformed(ActionEvent actionEvent) { int index = getIndex(selectedUser); if (index != -1) { model.removeElementAt(index); }
public void actionPerformed(ActionEvent e) { ImageIcon icon = (ImageIcon)list.getSelectedValue(); String description = icon.getDescription(); if (groupChatRoom.isBlocked(groupJID)) { groupChatRoom.removeBlockedUser(groupJID); icon = getImageIcon(groupJID); model.setElementAt(icon, index); } else { groupChatRoom.addBlockedUser(groupJID); icon = SparkRes.getImageIcon(SparkRes.BRICKWALL_IMAGE); icon.setDescription(description); model.setElementAt(icon, index); } }
else { groupChatRoom.addBlockedUser(groupJID); icon = SparkRes.getImageIcon(SparkRes.BRICKWALL_IMAGE); icon.setDescription(description); model.setElementAt(icon, index); } }
public void actionPerformed(ActionEvent e) { ImageIcon icon = (ImageIcon)list.getSelectedValue(); String description = icon.getDescription(); if (groupChatRoom.isBlocked(groupJID)) { groupChatRoom.removeBlockedUser(groupJID); icon = getImageIcon(groupJID); model.setElementAt(icon, index); } else { groupChatRoom.addBlockedUser(groupJID); icon = SparkRes.getImageIcon(SparkRes.BRICKWALL_IMAGE); icon.setDescription(description); model.setElementAt(icon, index); } }
kickUser(selectedUser); }
String newNickname = JOptionPane.showInputDialog(groupChatRoom, Res.getString("label.new.nickname") + ":", Res.getString("title.change.nickname"), JOptionPane.QUESTION_MESSAGE); if (ModelUtil.hasLength(newNickname)) { while (true) { newNickname = newNickname.trim(); try { chat.changeNickname(newNickname); break; } catch (XMPPException e1) { newNickname = JOptionPane.showInputDialog(groupChatRoom, Res.getString("message.nickname.in.use") + ":", Res.getString("title.change.nickname"), JOptionPane.QUESTION_MESSAGE); if (!ModelUtil.hasLength(newNickname)) { break; } } } } }
public void actionPerformed(ActionEvent actionEvent) { kickUser(selectedUser); }
if (userManager.hasVoice(groupChatRoom, selectedUser)) { revokeVoice(selectedUser); } else { grantVoice(selectedUser); }
String selectedUser = getSelectedUser(); startChat(groupChatRoom, (String)userMap.get(selectedUser));
public void actionPerformed(ActionEvent actionEvent) { if (userManager.hasVoice(groupChatRoom, selectedUser)) { revokeVoice(selectedUser); } else { grantVoice(selectedUser); } }
ServiceDiscoveryManager disco = ServiceDiscoveryManager.getInstanceFor(SparkManager.getConnection()); try { roomInformation = disco.discoverInfo(chat.getRoom()); } catch (XMPPException e) { Log.debug("Unable to retrieve room informatino for " + chat.getRoom()); }
public void setChatRoom(final ChatRoom chatRoom) { this.groupChatRoom = (GroupChatRoom)chatRoom; chatManager.addChatRoomListener(this); chat = groupChatRoom.getMultiUserChat(); listener = new PacketListener() { public void processPacket(final Packet packet) { SwingUtilities.invokeLater(new Runnable() { public void run() { Presence p = (Presence)packet; final String userid = p.getFrom(); String nickname = StringUtils.parseResource(userid); userMap.put(nickname, userid); if (p.getType() == Presence.Type.available) { addParticipant(userid, p); agentInfoPanel.setVisible(true); } else { model.removeElement(nickname); } } }); } }; chat.addParticipantListener(listener); }
userMap.remove(userid);
public void userHasLeft(ChatRoom room, String userid) { if (room != groupChatRoom) { return; } int index = getIndex(userid); if (index != -1) { model.removeElementAt(index); } }
wc.put ("PageName", wc.getForm ("edit"));
String pageName = wc.getForm("edit"); pageName = WikiUtil.formatAsWikiTitle(pageName); wc.put ("PageName", pageName);
public void perform(WikiSystem wiki, WebContext wc, WikiUser user, WikiPage page) throws PageAction.PageActionException { if (page != null && page.getIsModerated() && !user.getIsModerator()) throw new PageAction.PageActionException ("This page can only be edited by moderators"); wc.put ("PageName", wc.getForm ("edit")); }
JAnnotation annotation = property.getAnnotation("org.xbean.Alias");
JAnnotation annotation = property.getAnnotation(PROPERTY_ANNOTATION);
protected void generatePropertiesFilePropertyAlias(PrintWriter out, String namespace, SchemaElement element, JProperty property) { JAnnotation annotation = property.getAnnotation("org.xbean.Alias"); if (annotation != null) { String text = getStringValue(annotation, "value"); if (text != null) { String name = decapitalise(property.getSimpleName()); out.println(element.getLocalName() + "." + text + " = " +name); } } }
String text = getStringValue(annotation, "value");
String text = getStringValue(annotation, "alias");
protected void generatePropertiesFilePropertyAlias(PrintWriter out, String namespace, SchemaElement element, JProperty property) { JAnnotation annotation = property.getAnnotation("org.xbean.Alias"); if (annotation != null) { String text = getStringValue(annotation, "value"); if (text != null) { String name = decapitalise(property.getSimpleName()); out.println(element.getLocalName() + "." + text + " = " +name); } } }
return _request.getParameterValues(field)[0];
return values[0];
final public Object get (String field) { try { return _request.getParameterValues(field)[0]; } catch (NullPointerException ne) { return null; } }
catch (ArrayIndexOutOfBoundsException e) { return null; }
final public Object get (String field) { try { return _request.getParameterValues(field)[0]; } catch (NullPointerException ne) { return null; } }
ConferenceUtils.autoJoinConferenceRoom(conferenceJID, conferenceJID, null);
Iterator iter = bookmarks.iterator(); while (iter.hasNext()) { Bookmark bookmark = (Bookmark)iter.next(); if (bookmark.getRoomJID().equals(conferenceJID)) { ConferenceUtils.autoJoinConferenceRoom(bookmark.getRoomName(), conferenceJID, null); } }
private void joinTaggedRooms(Collection autoJoins) { Iterator joins = autoJoins.iterator(); while (joins.hasNext()) { Element autoJoin = (Element)joins.next(); String conferenceJID = autoJoin.getText(); autoJoinRooms.add(conferenceJID); ConferenceUtils.autoJoinConferenceRoom(conferenceJID, conferenceJID, null); } }
pw = new PrintWriter(new FileWriter(new File(destinationDir, "coverage.xml")));
File file = new File(destinationDir, "coverage.xml"); pw = new PrintWriter(new PrintStream(new FileOutputStream(file), false, "UTF-8"));
public XMLReport(ProjectData projectData, File destinationDir, FileFinder finder, ComplexityCalculator complexity) throws IOException { this.complexity = complexity; this.finder = finder; pw = new PrintWriter(new FileWriter(new File(destinationDir, "coverage.xml"))); try { println("<?xml version=\"1.0\"?>"); println("<!DOCTYPE coverage SYSTEM \"http://cobertura.sourceforge.net/xml/" + coverageDTD + "\">"); println(""); // TODO: Set a schema? //println("<coverage " + sourceDirectories.toString() + " xmlns=\"http://cobertura.sourceforge.net\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://cobertura.sourceforge.net/xml/coverage.xsd\">"); println("<coverage line-rate=\"" + projectData.getLineCoverageRate() + "\" branch-rate=\"" + projectData.getBranchCoverageRate() + "\" version=\"" + Header.version() + "\" timestamp=\"" + new Date().getTime() + "\">"); increaseIndentation(); dumpSources(); dumpPackages(projectData); decreaseIndentation(); println("</coverage>"); } finally { pw.close(); } }
cl.show(mainPanel, tab.getActualText());
Component comp = getComponentInTab(tab); cl.show(mainPanel, Integer.toString(comp.hashCode()));
public void setSelectedTab(SparkTab tab) { CardLayout cl = (CardLayout)mainPanel.getLayout(); cl.show(mainPanel, tab.getActualText()); tab.setBoldWhenActive(isActiveButtonBold()); deselectAllTabsExcept(tab); tab.setSelected(true); fireTabSelected(tab, getSelectedComponent(), getIndex(tab)); }
if(component.getId()==null){
IWMainApplication iwma = IWMainApplication.getIWMainApplication(context); String prop = iwma.getSettings().getProperty("article.cache.enabled"); boolean defaultEnabled = true; if(prop!=null){ defaultEnabled = Boolean.valueOf(prop).booleanValue(); } if(defaultEnabled){ if(component.getId()==null){ return false; } if(component instanceof ArticleItemViewer){ ArticleItemViewer viewer = (ArticleItemViewer)component; return viewer.isCacheEnabled(); } return true; } else{
public boolean isCacheEnbled(UIComponent component, FacesContext context) { if(component.getId()==null){ return false; } return true; }
return true;
public boolean isCacheEnbled(UIComponent component, FacesContext context) { if(component.getId()==null){ return false; } return true; }
assertStringTemplateThrows ("$set $foo=$TestObject.throwException()",
assertStringTemplateThrows ("#set $foo=$TestObject.throwException()",
public void testEvalThrowsMethod() throws Exception { assertStringTemplateThrows ("$set $foo=$TestObject.throwException()", org.webmacro.PropertyException.class); }
Iterator iter = ignoreRegexs.iterator(); while (iter.hasNext())
if (RegexUtil.matches(ignoreRegexs, owner))
public void visitMethodInsn(int opcode, String owner, String name, String desc) { super.visitMethodInsn(opcode, owner, name, desc); // If any of the ignore patterns match this line // then remove it from our data Iterator iter = ignoreRegexs.iterator(); while (iter.hasNext()) { Pattern ignoreRegex = (Pattern)iter.next(); if ((ignoreRegexs != null) && (pm.matches(owner, ignoreRegex))) { classData.removeLine(currentLine); return; } } }
Pattern ignoreRegex = (Pattern)iter.next(); if ((ignoreRegexs != null) && (pm.matches(owner, ignoreRegex))) { classData.removeLine(currentLine); return; }
classData.removeLine(currentLine);
public void visitMethodInsn(int opcode, String owner, String name, String desc) { super.visitMethodInsn(opcode, owner, name, desc); // If any of the ignore patterns match this line // then remove it from our data Iterator iter = ignoreRegexs.iterator(); while (iter.hasNext()) { Pattern ignoreRegex = (Pattern)iter.next(); if ((ignoreRegexs != null) && (pm.matches(owner, ignoreRegex))) { classData.removeLine(currentLine); return; } } }
if (jj_scan_token(BEGIN)) return true;
if (jj_scan_token(WS)) return true;
final private boolean jj_3R_15() { if (jj_scan_token(BEGIN)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(LBRACE)) return true;
if (jj_scan_token(WS)) return true;
final private boolean jj_3R_16() { if (jj_scan_token(LBRACE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }