bugged
stringlengths 6
599k
| fixed
stringlengths 6
40.8M
| __index_level_0__
int64 0
3.24M
|
|---|---|---|
void updateOutputEnd(int y) { //controlOutputEnd = y-topBorder; setKnobOutputEnd(y); endPt.setLocation(endPt.getX(), y); staticEndPt.setLocation(staticEndPt.getX(), y); setControlLocation(coefficient); if (type == QuantumFactory.EXPONENTIAL) { if (reverseIntensity) controlPt.setLocation(startPt.getX(), y); else controlPt.setLocation(endPt.getX(), controlPt.getY()); repaintCurve(); } else setControlLocation(coefficient); }
|
void updateOutputEnd(int y) { //controlOutputEnd = y-topBorder; setKnobOutputEnd(y); endPt.setLocation(endPt.getX(), y); staticEndPt.setLocation(staticEndPt.getX(), y); setControlLocation(coefficient); if (type == QuantumFactory.EXPONENTIAL) { if (reverseIntensity) controlPt.setLocation(startPt.getX(), y); else controlPt.setLocation(endPt.getX(), controlPt.getY()); repaintCurve(); } else setControlLocation(coefficient); }
| 3,228,881
|
void updateOutputStart(int y) { //controlOutputStart = y-topBorder; setKnobOutputStart(y); startPt.setLocation(startPt.getX(), y); staticStartPt.setLocation(staticStartPt.getX(), y); if (type == QuantumFactory.EXPONENTIAL) { if (reverseIntensity) controlPt.setLocation(controlPt.getX(), endPt.getY()); else controlPt.setLocation(controlPt.getX(), y); repaintCurve(); } else setControlLocation(coefficient); }
|
void updateOutputStart(int y) { //controlOutputStart = y-topBorder; setKnobOutputStart(y); startPt.setLocation(startPt.getX(), y); staticStartPt.setLocation(staticStartPt.getX(), y); if (type == QuantumFactory.EXPONENTIAL) { if (reverseIntensity) controlPt.setLocation(controlPt.getX(), endPt.getY()); else controlPt.setLocation(controlPt.getX(), y); repaintCurve(); } else setControlLocation(coefficient); }
| 3,228,882
|
GraphicsRepresentationManager(GraphicsRepresentation view, QuantumPaneManager control, int type) { this.view = view; this.control = control; this.type = type; boxStart = new Rectangle(); boxEnd = new Rectangle(); boxOutputStart = new Rectangle(); boxOutputEnd = new Rectangle(); maxEndX = leftBorder+square/2; //only used if type = exponential attachListeners(); inputStartKnob = false; inputEndKnob = false; outputStartKnob = false; outputEndKnob = false; }
|
GraphicsRepresentationManager(GraphicsRepresentation view, QuantumPaneManager control, int type) { this.view = view; this.control = control; this.type = type; boxStart = new Rectangle(); boxEnd = new Rectangle(); boxOutputStart = new Rectangle(); boxOutputEnd = new Rectangle(); maxEndX = leftBorder+square/2; //only used if type = exponential attachListeners(); inputStartKnob = false; inputEndKnob = false; outputStartKnob = false; outputEndKnob = false; }
| 3,228,883
|
void setOutputRectangles(int start, int end) { setOutputStartBox(start); setOutputEndBox(end); }
|
void setOutputRectangles(int start, int end) { setOutputStartBox(start); setOutputEndBox(end); }
| 3,228,884
|
void setInputEndBox(int x) { //minEndX = x-2*triangleW; //boxEnd.setBounds(x-2*triangleW, tS+triangleW+1, 4*length, // bottomBorder+bottomBorderSupp); minEndX = x-extraControl; boxEnd.setBounds(x-2*triangleW, 0, 4*length, topBorder); }
|
void setInputEndBox(int x) { //minEndX = x-2*triangleW; //boxEnd.setBounds(x-2*triangleW, tS+triangleW+1, 4*length, // bottomBorder+bottomBorderSupp); minEndX = x-extraControl; boxEnd.setBounds(x-2*triangleW, 0, 4*length, topBorder); }
| 3,228,885
|
void setInputEndBox(int x) { //minEndX = x-2*triangleW; //boxEnd.setBounds(x-2*triangleW, tS+triangleW+1, 4*length, // bottomBorder+bottomBorderSupp); minEndX = x-extraControl; boxEnd.setBounds(x-2*triangleW, 0, 4*length, topBorder); }
|
void setInputEndBox(int x) { //minEndX = x-2*triangleW; //boxEnd.setBounds(x-2*triangleW, tS+triangleW+1, 4*length, // bottomBorder+bottomBorderSupp); minEndX = x-extraControl; boxEnd.setBounds(x-2*triangleW, 0, 4*length, topBorder); }
| 3,228,886
|
void setType(int type, int x) { this.type = type; maxEndX = x; }
|
void setType(int type, int x) { this.type = type; maxEndX = x; }
| 3,228,887
|
void setInputRectangles(int start, int end) { setInputStartBox(start); setInputEndBox(end); }
|
void setInputRectangles(int start, int end) { setInputStartBox(start); setInputEndBox(end); }
| 3,228,888
|
protected static void runInterpreter(String iString2Eval, String iFileName) { // Initialize Runtime Ruby ruby = new Ruby(); // Initialize Parser parse p = new parse(ruby); // Parse and interpret file RubyString rs = RubyString.m_newString(ruby, iString2Eval); ruby.getInterpreter().eval(ruby.getClasses().getObjectClass(), p.rb_compile_string(iFileName, rs, 0)); }
|
protected static void runInterpreter(String iString2Eval, String iFileName) { // Initialize Runtime Ruby ruby = new Ruby(); // Initialize Parser parse p = new parse(ruby); // Parse and interpret file ruby.getInterpreter().eval(ruby.getClasses().getObjectClass(), p.rb_compile_string(iFileName, rs, 0)); }
| 3,228,889
|
private UIComponent getDetailPanel() { WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle(); HtmlPanelGrid dp = WFPanelUtil.getPlainFormPanel(1); WFComponentSelector cs = new WFComponentSelector(); cs.setId(COMPONENT_SELECTOR_ID); HtmlPanelGrid p = WFPanelUtil.getPlainFormPanel(1); p.setId(NO_ARTICLE_ID); p.getChildren().add(localizer.getHeaderTextVB("no_article_selected")); cs.add(p); p = WFPanelUtil.getPlainFormPanel(1); p.setId(ARTICLE_LIST_ID); p.getChildren().add(WFUtil.getHeaderTextVB(ref + "headline")); p.getChildren().add(WFUtil.getText(" ")); p.getChildren().add(WFUtil.getTextVB(ref + "teaser")); p.getChildren().add(WFUtil.getText(" ")); WFPlainOutputText bodyText = new WFPlainOutputText(); WFUtil.setValueBinding(bodyText, "value", ref + "body"); p.getChildren().add(bodyText); p.getChildren().add(WFUtil.getBreak()); p.getChildren().add(new WFPlainOutputText("<hr/>")); UIComponent g = WFUtil.group(localizer.getHeaderTextVB("author"), WFUtil.getHeaderText(": ")); g.getChildren().add(WFUtil.getTextVB(ref + "author")); p.getChildren().add(g); p.getChildren().add(WFUtil.getText(" ")); g = WFUtil.group(localizer.getHeaderTextVB("created"), WFUtil.getHeaderText(": ")); g.getChildren().add(WFUtil.getTextVB(ref + "creationDate")); p.getChildren().add(g); p.getChildren().add(WFUtil.getText(" ")); g = WFUtil.group(localizer.getHeaderTextVB("status"), WFUtil.getHeaderText(": ")); g.getChildren().add(WFUtil.getTextVB(ref + "status")); p.getChildren().add(g); p.getChildren().add(WFUtil.getText(" ")); HtmlOutputText t = WFUtil.getTextVB(ref + "categoryNames"); t.setConverter(new WFCommaSeparatedListConverter()); g = WFUtil.group(localizer.getHeaderTextVB("categories"), WFUtil.getHeaderText(": ")); g.getChildren().add(t); p.getChildren().add(g); p.getChildren().add(WFUtil.getText(" ")); g = WFUtil.group(localizer.getHeaderTextVB("current_version"), WFUtil.getHeaderText(": ")); g.getChildren().add(WFUtil.getTextVB(ref + "versionId")); p.getChildren().add(g); p.getChildren().add(WFUtil.getText(" ")); g = WFUtil.group(localizer.getHeaderTextVB("comment"), WFUtil.getHeaderText(": ")); g.getChildren().add(WFUtil.getTextVB(ref + "comment")); p.getChildren().add(g); p.getChildren().add(WFUtil.getText(" ")); g = WFUtil.group(localizer.getHeaderTextVB("source"), WFUtil.getHeaderText(": ")); g.getChildren().add(WFUtil.getTextVB(ref + "source")); p.getChildren().add(g); p.getChildren().add(WFUtil.getText(" ")); WebDAVFileDetails details = new WebDAVFileDetails(); WFUtil.setValueBinding(details,"currentResourcePath",ref+"resourcePath"); p.getChildren().add(details); cs.add(p); cs.setSelectedId(NO_ARTICLE_ID, true); dp.getChildren().add(cs); return dp; }
|
private UIComponent getDetailPanel() { WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle(); HtmlPanelGrid dp = WFPanelUtil.getPlainFormPanel(1); WFComponentSelector cs = new WFComponentSelector(); cs.setId(COMPONENT_SELECTOR_ID); HtmlPanelGrid p = WFPanelUtil.getPlainFormPanel(1); p.setId(NO_ARTICLE_ID); p.getChildren().add(localizer.getHeaderTextVB("no_article_selected")); cs.add(p); p = WFPanelUtil.getPlainFormPanel(1); p.setId(ARTICLE_LIST_ID); p.getChildren().add(WFUtil.getHeaderTextVB(ref + "headline")); p.getChildren().add(WFUtil.getText(" ")); p.getChildren().add(WFUtil.getTextVB(ref + "teaser")); p.getChildren().add(WFUtil.getText(" ")); WFPlainOutputText bodyText = new WFPlainOutputText(); WFUtil.setValueBinding(bodyText, "value", ref + "body"); p.getChildren().add(bodyText); p.getChildren().add(WFUtil.getBreak()); p.getChildren().add(new WFPlainOutputText("<hr/>")); UIComponent g = WFUtil.group(localizer.getHeaderTextVB("author"), WFUtil.getHeaderText(": ")); g.getChildren().add(WFUtil.getTextVB(ref + "author")); p.getChildren().add(g); p.getChildren().add(WFUtil.getText(" ")); g = WFUtil.group(localizer.getHeaderTextVB("created"), WFUtil.getHeaderText(": ")); g.getChildren().add(WFUtil.getTextVB(ref + "creationDate")); p.getChildren().add(g); p.getChildren().add(WFUtil.getText(" ")); g = WFUtil.group(localizer.getHeaderTextVB("status"), WFUtil.getHeaderText(": ")); g.getChildren().add(WFUtil.getTextVB(ref + "status")); p.getChildren().add(g); p.getChildren().add(WFUtil.getText(" ")); HtmlOutputText t = WFUtil.getTextVB(ref + "categoryNames"); t.setConverter(new WFCommaSeparatedListConverter()); g = WFUtil.group(localizer.getHeaderTextVB("categories"), WFUtil.getHeaderText(": ")); g.getChildren().add(t); p.getChildren().add(g); p.getChildren().add(WFUtil.getText(" ")); g = WFUtil.group(localizer.getHeaderTextVB("current_version"), WFUtil.getHeaderText(": ")); g.getChildren().add(WFUtil.getTextVB(ref + "versionId")); p.getChildren().add(g); p.getChildren().add(WFUtil.getText(" ")); g = WFUtil.group(localizer.getHeaderTextVB("comment"), WFUtil.getHeaderText(": ")); g.getChildren().add(WFUtil.getTextVB(ref + "comment")); p.getChildren().add(g); p.getChildren().add(WFUtil.getText(" ")); g = WFUtil.group(localizer.getHeaderTextVB("source"), WFUtil.getHeaderText(": ")); g.getChildren().add(WFUtil.getTextVB(ref + "source")); p.getChildren().add(g); p.getChildren().add(WFUtil.getText(" ")); WebDAVFileDetails details = new WebDAVFileDetails(); WFUtil.setValueBinding(details,"currentResourcePath",ref+"resourcePath"); p.getChildren().add(details); cs.add(p); cs.setSelectedId(NO_ARTICLE_ID, true); dp.getChildren().add(cs); return dp; }
| 3,228,890
|
public static RubyClass createFixnumClass(Ruby ruby) { RubyClass fixnumClass = ruby.defineClass("Fixnum", ruby.getClasses().getIntegerClass()); fixnumClass.includeModule(ruby.getClasses().getPrecisionModule()); fixnumClass.defineSingletonMethod("induced_from", CallbackFactory.getSingletonMethod(RubyFixnum.class, "induced_from", RubyObject.class)); fixnumClass.defineMethod("to_f", CallbackFactory.getMethod(RubyFixnum.class, "to_f")); fixnumClass.defineMethod("to_s", CallbackFactory.getMethod(RubyFixnum.class, "to_s")); fixnumClass.defineMethod("to_str", CallbackFactory.getMethod(RubyFixnum.class, "to_s")); fixnumClass.defineMethod("hash", CallbackFactory.getMethod(RubyFixnum.class, "hash")); fixnumClass.defineMethod("taint", CallbackFactory.getSelfMethod()); fixnumClass.defineMethod("freeze", CallbackFactory.getSelfMethod()); fixnumClass.defineMethod("<<", CallbackFactory.getMethod(RubyFixnum.class, "op_lshift", RubyObject.class)); fixnumClass.defineMethod(">>", CallbackFactory.getMethod(RubyFixnum.class, "op_rshift", RubyObject.class)); fixnumClass.defineMethod("+", CallbackFactory.getMethod(RubyFixnum.class, "op_plus", RubyObject.class)); fixnumClass.defineMethod("-", CallbackFactory.getMethod(RubyFixnum.class, "op_minus", RubyObject.class)); fixnumClass.defineMethod("*", CallbackFactory.getMethod(RubyFixnum.class, "op_mul", RubyObject.class)); fixnumClass.defineMethod("/", CallbackFactory.getMethod(RubyFixnum.class, "op_div", RubyObject.class)); fixnumClass.defineMethod("%", CallbackFactory.getMethod(RubyFixnum.class, "op_mod", RubyObject.class)); fixnumClass.defineMethod("**", CallbackFactory.getMethod(RubyFixnum.class, "op_pow", RubyObject.class)); fixnumClass.defineMethod("==", CallbackFactory.getMethod(RubyFixnum.class, "op_equal", RubyObject.class)); fixnumClass.defineMethod("<=>", CallbackFactory.getMethod(RubyFixnum.class, "op_cmp", RubyObject.class)); fixnumClass.defineMethod(">", CallbackFactory.getMethod(RubyFixnum.class, "op_gt", RubyObject.class)); fixnumClass.defineMethod(">=", CallbackFactory.getMethod(RubyFixnum.class, "op_ge", RubyObject.class)); fixnumClass.defineMethod("<", CallbackFactory.getMethod(RubyFixnum.class, "op_lt", RubyObject.class)); fixnumClass.defineMethod("<=", CallbackFactory.getMethod(RubyFixnum.class, "op_le", RubyObject.class)); fixnumClass.defineMethod("&", CallbackFactory.getMethod(RubyFixnum.class, "op_and", RubyObject.class)); fixnumClass.defineMethod("|", CallbackFactory.getMethod(RubyFixnum.class, "op_or", RubyInteger.class)); fixnumClass.defineMethod("^", CallbackFactory.getMethod(RubyFixnum.class, "op_xor", RubyInteger.class)); fixnumClass.defineMethod("size", CallbackFactory.getMethod(RubyFixnum.class, "size")); fixnumClass.defineMethod("[]", CallbackFactory.getMethod(RubyFixnum.class, "aref", RubyInteger.class)); return fixnumClass; }
|
public static RubyClass createFixnumClass(Ruby ruby) { RubyClass fixnumClass = ruby.defineClass("Fixnum", ruby.getClasses().getIntegerClass()); fixnumClass.includeModule(ruby.getClasses().getPrecisionModule()); fixnumClass.defineSingletonMethod("induced_from", CallbackFactory.getSingletonMethod(RubyFixnum.class, "induced_from", RubyObject.class)); fixnumClass.defineMethod("to_f", CallbackFactory.getMethod(RubyFixnum.class, "to_f")); fixnumClass.defineMethod("to_s", CallbackFactory.getMethod(RubyFixnum.class, "to_s")); fixnumClass.defineMethod("to_str", CallbackFactory.getMethod(RubyFixnum.class, "to_s")); fixnumClass.defineMethod("hash", CallbackFactory.getMethod(RubyFixnum.class, "hash")); fixnumClass.defineMethod("taint", CallbackFactory.getSelfMethod()); fixnumClass.defineMethod("freeze", CallbackFactory.getSelfMethod()); fixnumClass.defineMethod("<<", CallbackFactory.getMethod(RubyFixnum.class, "op_lshift", RubyObject.class)); fixnumClass.defineMethod(">>", CallbackFactory.getMethod(RubyFixnum.class, "op_rshift", RubyObject.class)); fixnumClass.defineMethod("+", CallbackFactory.getMethod(RubyFixnum.class, "op_plus", RubyObject.class)); fixnumClass.defineMethod("-", CallbackFactory.getMethod(RubyFixnum.class, "op_minus", RubyObject.class)); fixnumClass.defineMethod("*", CallbackFactory.getMethod(RubyFixnum.class, "op_mul", RubyObject.class)); fixnumClass.defineMethod("/", CallbackFactory.getMethod(RubyFixnum.class, "op_div", RubyObject.class)); fixnumClass.defineMethod("%", CallbackFactory.getMethod(RubyFixnum.class, "op_mod", RubyObject.class)); fixnumClass.defineMethod("**", CallbackFactory.getMethod(RubyFixnum.class, "op_pow", RubyObject.class)); fixnumClass.defineMethod("==", CallbackFactory.getMethod(RubyFixnum.class, "op_equal", RubyObject.class)); fixnumClass.defineMethod("<=>", CallbackFactory.getMethod(RubyFixnum.class, "op_cmp", RubyObject.class)); fixnumClass.defineMethod(">", CallbackFactory.getMethod(RubyFixnum.class, "op_gt", RubyObject.class)); fixnumClass.defineMethod(">=", CallbackFactory.getMethod(RubyFixnum.class, "op_ge", RubyObject.class)); fixnumClass.defineMethod("<", CallbackFactory.getMethod(RubyFixnum.class, "op_lt", RubyObject.class)); fixnumClass.defineMethod("<=", CallbackFactory.getMethod(RubyFixnum.class, "op_le", RubyObject.class)); fixnumClass.defineMethod("&", CallbackFactory.getMethod(RubyFixnum.class, "op_and", RubyObject.class)); fixnumClass.defineMethod("|", CallbackFactory.getMethod(RubyFixnum.class, "op_or", RubyInteger.class)); fixnumClass.defineMethod("^", CallbackFactory.getMethod(RubyFixnum.class, "op_xor", RubyInteger.class)); fixnumClass.defineMethod("size", CallbackFactory.getMethod(RubyFixnum.class, "size")); fixnumClass.defineMethod("[]", CallbackFactory.getMethod(RubyFixnum.class, "aref", RubyInteger.class)); return fixnumClass; }
| 3,228,891
|
public IRubyObject setValue(IRubyObject value) { runtime.getLoadService().require("java"); if (value.isKindOf(runtime.getModule("JavaProxy"))) { value = value.getInstanceVariable("java_object"); } value = Java.primitive_to_java(value, value); bean.bean = JavaUtil.convertArgument(value, bean.type); return value; }
|
public IRubyObject setValue(IRubyObject value) { runtime.getLoadService().require("java"); if (value.isKindOf(runtime.getModule("JavaProxy"))) { value = value.getInstanceVariable("@java_object"); } value = Java.primitive_to_java(value, value); bean.bean = JavaUtil.convertArgument(value, bean.type); return value; }
| 3,228,892
|
public FileTemplate(Broker broker, File templateFile) { super(broker); myFile = templateFile; }
|
public FileTemplate(Broker broker, File templateFile) { super(broker); myFile = templateFile; }
| 3,228,893
|
public void actionPerformed(ActionEvent e) { int index = -1; try { index = Integer.parseInt(e.getActionCommand()); switch (index) { case START_T: movieStartActionHandler(startTField, endTField); break; case END_T: movieEndActionHandler(startTField, endTField); break; case START_Z: movieStartActionHandler(startZField, endZField); break; case END_Z: movieEndActionHandler(startZField, endZField); break; case Player.MOVIE_T: case Player.MOVIE_Z: handleIndexChanged(index); break; } } catch(NumberFormatException nfe) { throw new Error("Invalid Action ID "+index, nfe); } }
|
public void actionPerformed(ActionEvent e) { try { index = Integer.parseInt(e.getActionCommand()); switch (index) { case START_T: movieStartActionHandler(startTField, endTField); break; case END_T: movieEndActionHandler(startTField, endTField); break; case START_Z: movieStartActionHandler(startZField, endZField); break; case END_Z: movieEndActionHandler(startZField, endZField); break; case Player.MOVIE_T: case Player.MOVIE_Z: handleIndexChanged(index); break; } } catch(NumberFormatException nfe) { throw new Error("Invalid Action ID "+index, nfe); } }
| 3,228,894
|
public void actionPerformed(ActionEvent e) { int index = -1; try { index = Integer.parseInt(e.getActionCommand()); switch (index) { case START_T: movieStartActionHandler(startTField, endTField); break; case END_T: movieEndActionHandler(startTField, endTField); break; case START_Z: movieStartActionHandler(startZField, endZField); break; case END_Z: movieEndActionHandler(startZField, endZField); break; case Player.MOVIE_T: case Player.MOVIE_Z: handleIndexChanged(index); break; } } catch(NumberFormatException nfe) { throw new Error("Invalid Action ID "+index, nfe); } }
|
public void actionPerformed(ActionEvent e) { int index = -1; try { int index = Integer.parseInt(e.getActionCommand()); switch (index) { case START_T: movieStartActionHandler(startTField, endTField); break; case END_T: movieEndActionHandler(startTField, endTField); break; case START_Z: movieStartActionHandler(startZField, endZField); break; case END_Z: movieEndActionHandler(startZField, endZField); break; case Player.MOVIE_T: case Player.MOVIE_Z: handleIndexChanged(index); break; } } catch(NumberFormatException nfe) { throw new Error("Invalid Action ID "+index, nfe); } }
| 3,228,895
|
public void actionPerformed(ActionEvent e) { int index = -1; try { index = Integer.parseInt(e.getActionCommand()); switch (index) { case START_T: movieStartActionHandler(startTField, endTField); break; case END_T: movieEndActionHandler(startTField, endTField); break; case START_Z: movieStartActionHandler(startZField, endZField); break; case END_Z: movieEndActionHandler(startZField, endZField); break; case Player.MOVIE_T: case Player.MOVIE_Z: handleIndexChanged(index); break; } } catch(NumberFormatException nfe) { throw new Error("Invalid Action ID "+index, nfe); } }
|
public void actionPerformed(ActionEvent e) { int index = -1; try { index = Integer.parseInt(e.getActionCommand()); switch (index) { case START_T: movieStartActionHandler(startTField, endTField); break; case END_T: movieEndActionHandler(startTField, endTField); break; case START_Z: movieStartActionHandler(startZField, endZField); break; case END_Z: movieEndActionHandler(startZField, endZField); break; case Player.MOVIE_T: case Player.MOVIE_Z: handleIndexChanged(index); break; } } catch(NumberFormatException nfe) { throw new Error("Invalid Action ID "+e.getActionCommand(), nfe); } }
| 3,228,896
|
void attachListeners() { //TexField startTField = view.getMovieStartT(); endTField = view.getMovieEndT(); startZField = view.getMovieStartZ(); endZField = view.getMovieEndZ(); attachFieldListeners(startTField, START_T); attachFieldListeners(endTField, END_T); attachFieldListeners(startZField, START_Z); attachFieldListeners(endZField, END_Z); //RadioButton attachButtonListener(view.getMovieZ(), Player.MOVIE_Z); attachButtonListener(view.getMovieT(), Player.MOVIE_T); view.getSliderT().addChangeListener(this); view.getSliderZ().addChangeListener(this); }
|
void attachListeners() { //TexField startTField = view.getMovieStartT(); endTField = view.getMovieEndT(); startZField = view.getMovieStartZ(); endZField = view.getMovieEndZ(); attachFieldListeners(startTField, START_T); attachFieldListeners(endTField, END_T); attachFieldListeners(startZField, START_Z); attachFieldListeners(endZField, END_Z); //RadioButton attachButtonListener(view.getMovieZ(), Player.MOVIE_Z); attachButtonListener(view.getMovieT(), Player.MOVIE_T); view.getSliderT().addChangeListener(this); view.getSliderZ().addChangeListener(this); }
| 3,228,897
|
void attachListeners() { //TexField startTField = view.getMovieStartT(); endTField = view.getMovieEndT(); startZField = view.getMovieStartZ(); endZField = view.getMovieEndZ(); attachFieldListeners(startTField, START_T); attachFieldListeners(endTField, END_T); attachFieldListeners(startZField, START_Z); attachFieldListeners(endZField, END_Z); //RadioButton attachButtonListener(view.getMovieZ(), Player.MOVIE_Z); attachButtonListener(view.getMovieT(), Player.MOVIE_T); view.getSliderT().addChangeListener(this); view.getSliderZ().addChangeListener(this); }
|
void attachListeners() { //TexField startTField = view.getMovieStartT(); endTField = view.getMovieEndT(); startZField = view.getMovieStartZ(); endZField = view.getMovieEndZ(); attachFieldListeners(startTField, START_T); attachFieldListeners(endTField, END_T); attachFieldListeners(startZField, START_Z); attachFieldListeners(endZField, END_Z); //RadioButton attachButtonListener(view.getMovieZ(), Player.MOVIE_Z); attachButtonListener(view.getMovieT(), Player.MOVIE_T); view.getSliderT().addChangeListener(this); view.getSliderZ().addChangeListener(this); }
| 3,228,898
|
private void handleIndexChanged(int index) { if (maxT == 0) { view.getMovieZ().setSelected(true); UserNotifier un = registry.getUserNotifier(); un.notifyInfo("Invalid selection", "The selected image has only one timepoint. "); } if (maxZ == 0) { view.getMovieT().setSelected(true); UserNotifier un = registry.getUserNotifier(); un.notifyInfo("Invalid selection", "The selected image has only one z-section. "); } if (maxZ != 0 && maxT != 0) setMovieIndex(index); }
|
private void handleIndexChanged(int index) { if (maxT == 0) { view.movieZ.setSelected(true); UserNotifier un = registry.getUserNotifier(); un.notifyInfo("Invalid selection", "The selected image has only one timepoint. "); } if (maxZ == 0) { view.getMovieT().setSelected(true); UserNotifier un = registry.getUserNotifier(); un.notifyInfo("Invalid selection", "The selected image has only one z-section. "); } if (maxZ != 0 && maxT != 0) setMovieIndex(index); }
| 3,228,899
|
private void handleIndexChanged(int index) { if (maxT == 0) { view.getMovieZ().setSelected(true); UserNotifier un = registry.getUserNotifier(); un.notifyInfo("Invalid selection", "The selected image has only one timepoint. "); } if (maxZ == 0) { view.getMovieT().setSelected(true); UserNotifier un = registry.getUserNotifier(); un.notifyInfo("Invalid selection", "The selected image has only one z-section. "); } if (maxZ != 0 && maxT != 0) setMovieIndex(index); }
|
private void handleIndexChanged(int index) { if (maxT == 0) { view.getMovieZ().setSelected(true); UserNotifier un = registry.getUserNotifier(); un.notifyInfo("Invalid selection", "The selected image has only one timepoint. "); } if (maxZ == 0) { view.movieT.setSelected(true); UserNotifier un = registry.getUserNotifier(); un.notifyInfo("Invalid selection", "The selected image has only one z-section. "); } if (maxZ != 0 && maxT != 0) setMovieIndex(index); }
| 3,228,900
|
private void handleSliderTStateChanged(ChangeEventSlider e) { if (e.isStart()) setMovieStart(view.getSliderT().getStartValue()); else setMovieEnd(view.getSliderT().getEndValue()); }
|
private void handleSliderTStateChanged(ChangeEventSlider e) { if (e.isStart()) setMovieStart(view.sliderT.getStartValue()); else setMovieEnd(view.getSliderT().getEndValue()); }
| 3,228,901
|
private void handleSliderTStateChanged(ChangeEventSlider e) { if (e.isStart()) setMovieStart(view.getSliderT().getStartValue()); else setMovieEnd(view.getSliderT().getEndValue()); }
|
private void handleSliderTStateChanged(ChangeEventSlider e) { if (e.isStart()) setMovieStart(view.getSliderT().getStartValue()); else setMovieEnd(view.sliderT.getEndValue()); }
| 3,228,902
|
private void handleSliderZStateChanged(ChangeEventSlider e) { if (e.isStart()) setMovieStart(view.getSliderZ().getStartValue()); else setMovieEnd(view.getSliderZ().getEndValue()); }
|
private void handleSliderZStateChanged(ChangeEventSlider e) { if (e.isStart()) setMovieStart(view.sliderZ.getStartValue()); else setMovieEnd(view.getSliderZ().getEndValue()); }
| 3,228,903
|
private void handleSliderZStateChanged(ChangeEventSlider e) { if (e.isStart()) setMovieStart(view.getSliderZ().getStartValue()); else setMovieEnd(view.getSliderZ().getEndValue()); }
|
private void handleSliderZStateChanged(ChangeEventSlider e) { if (e.isStart()) setMovieStart(view.getSliderZ().getStartValue()); else setMovieEnd(view.sliderZ.getEndValue()); }
| 3,228,904
|
private void movieEndActionHandler(JTextField start, JTextField end) { boolean valid = false; int val = 0; int valStart = 0; try { val = Integer.parseInt(end.getText()); valStart = Integer.parseInt(start.getText()); if (valStart < val && val <= max) valid = true; } catch(NumberFormatException nfe) {} if (!valid) { end.selectAll(); UserNotifier un = registry.getUserNotifier(); int v = valStart+1; un.notifyInfo("Invalid end point", "Please enter a value between "+ v+" and "+max); } else { if (movieIndex == Player.MOVIE_T) { curEndT = val; view.getSliderT().setEndValue(val); } else { curEndZ = val; view.getSliderZ().setEndValue(val); } } }
|
private void movieEndActionHandler(JTextField start, JTextField end) { boolean valid = false; int val = 0; int valStart = 0; try { val = Integer.parseInt(end.getText()); valStart = Integer.parseInt(start.getText()); if (valStart < val && val <= max) valid = true; } catch(NumberFormatException nfe) {} if (!valid) { end.selectAll(); UserNotifier un = registry.getUserNotifier(); int v = valStart+1; un.notifyInfo("Invalid end point", "Please enter a value between "+ v+" and "+max); } else { if (movieIndex == Player.MOVIE_T) { curEndT = val; view.sliderT.setEndValue(val); } else { curEndZ = val; view.getSliderZ().setEndValue(val); } } }
| 3,228,905
|
private void movieEndActionHandler(JTextField start, JTextField end) { boolean valid = false; int val = 0; int valStart = 0; try { val = Integer.parseInt(end.getText()); valStart = Integer.parseInt(start.getText()); if (valStart < val && val <= max) valid = true; } catch(NumberFormatException nfe) {} if (!valid) { end.selectAll(); UserNotifier un = registry.getUserNotifier(); int v = valStart+1; un.notifyInfo("Invalid end point", "Please enter a value between "+ v+" and "+max); } else { if (movieIndex == Player.MOVIE_T) { curEndT = val; view.getSliderT().setEndValue(val); } else { curEndZ = val; view.getSliderZ().setEndValue(val); } } }
|
private void movieEndActionHandler(JTextField start, JTextField end) { boolean valid = false; int val = 0; int valStart = 0; try { val = Integer.parseInt(end.getText()); valStart = Integer.parseInt(start.getText()); if (valStart < val && val <= max) valid = true; } catch(NumberFormatException nfe) {} if (!valid) { end.selectAll(); UserNotifier un = registry.getUserNotifier(); int v = valStart+1; un.notifyInfo("Invalid end point", "Please enter a value between "+ v+" and "+max); } else { if (movieIndex == Player.MOVIE_T) { curEndT = val; view.getSliderT().setEndValue(val); } else { curEndZ = val; view.sliderZ.setEndValue(val); } } }
| 3,228,906
|
private void movieStartActionHandler(JTextField start, JTextField end) { boolean valid = false; int val = 0; int valEnd = max; try { val = Integer.parseInt(start.getText()); valEnd = Integer.parseInt(end.getText()); if (0 <= val && val < valEnd) valid = true; } catch(NumberFormatException nfe) {} if (!valid) { int v = valEnd-1; start.selectAll(); UserNotifier un = registry.getUserNotifier(); un.notifyInfo("Invalid start point", "Please enter a value between 0 and "+v); } else { if (movieIndex == Player.MOVIE_T) { curStartT = val; view.getSliderT().setStartValue(val); } else { curStartZ = val; view.getSliderZ().setStartValue(val); } } }
|
private void movieStartActionHandler(JTextField start, JTextField end) { boolean valid = false; int val = 0; int valEnd = max; try { val = Integer.parseInt(start.getText()); valEnd = Integer.parseInt(end.getText()); if (0 <= val && val < valEnd) valid = true; } catch(NumberFormatException nfe) {} if (!valid) { int v = valEnd-1; start.selectAll(); UserNotifier un = registry.getUserNotifier(); un.notifyInfo("Invalid start point", "Please enter a value between 0 and "+v); } else { if (movieIndex == Player.MOVIE_T) { curStartT = val; view.sliderT.setStartValue(val); } else { curStartZ = val; view.getSliderZ().setStartValue(val); } } }
| 3,228,908
|
private void movieStartActionHandler(JTextField start, JTextField end) { boolean valid = false; int val = 0; int valEnd = max; try { val = Integer.parseInt(start.getText()); valEnd = Integer.parseInt(end.getText()); if (0 <= val && val < valEnd) valid = true; } catch(NumberFormatException nfe) {} if (!valid) { int v = valEnd-1; start.selectAll(); UserNotifier un = registry.getUserNotifier(); un.notifyInfo("Invalid start point", "Please enter a value between 0 and "+v); } else { if (movieIndex == Player.MOVIE_T) { curStartT = val; view.getSliderT().setStartValue(val); } else { curStartZ = val; view.getSliderZ().setStartValue(val); } } }
|
private void movieStartActionHandler(JTextField start, JTextField end) { boolean valid = false; int val = 0; int valEnd = max; try { val = Integer.parseInt(start.getText()); valEnd = Integer.parseInt(end.getText()); if (0 <= val && val < valEnd) valid = true; } catch(NumberFormatException nfe) {} if (!valid) { int v = valEnd-1; start.selectAll(); UserNotifier un = registry.getUserNotifier(); un.notifyInfo("Invalid start point", "Please enter a value between 0 and "+v); } else { if (movieIndex == Player.MOVIE_T) { curStartT = val; view.getSliderT().setStartValue(val); } else { curStartZ = val; view.sliderZ.setStartValue(val); } } }
| 3,228,909
|
private void setMovieIndex(int index) { movieIndex = index; int start = Integer.parseInt(startTField.getText()); int end = Integer.parseInt(endTField.getText()); if (movieIndex == Player.MOVIE_T) { max = maxT; view.getSliderT().attachMouseListeners(); view.getSliderZ().removeMouseListeners(); setTFieldsEnabled(true); setZFieldsEnabled(false); } else { start = Integer.parseInt(startZField.getText()); end = Integer.parseInt(endZField.getText()); max = maxZ; view.getSliderT().removeMouseListeners(); view.getSliderZ().attachMouseListeners(); setTFieldsEnabled(false); setZFieldsEnabled(true); } playerUIMng.setIndex(movieIndex, max, start, end); }
|
private void setMovieIndex(int index) { movieIndex = index; int start = Integer.parseInt(startTField.getText()); int end = Integer.parseInt(endTField.getText()); if (movieIndex == Player.MOVIE_T) { max = maxT; view.getSliderT().attachMouseListeners(); view.getSliderZ().removeMouseListeners(); setTFieldsEnabled(true); setZFieldsEnabled(false); } else { start = Integer.parseInt(startZField.getText()); end = Integer.parseInt(endZField.getText()); max = maxZ; view.getSliderT().removeMouseListeners(); view.getSliderZ().attachMouseListeners(); setTFieldsEnabled(false); setZFieldsEnabled(true); } playerUIMng.setIndex(movieIndex, max, start, end); }
| 3,228,911
|
private void setMovieIndex(int index) { movieIndex = index; int start = Integer.parseInt(startTField.getText()); int end = Integer.parseInt(endTField.getText()); if (movieIndex == Player.MOVIE_T) { max = maxT; view.getSliderT().attachMouseListeners(); view.getSliderZ().removeMouseListeners(); setTFieldsEnabled(true); setZFieldsEnabled(false); } else { start = Integer.parseInt(startZField.getText()); end = Integer.parseInt(endZField.getText()); max = maxZ; view.getSliderT().removeMouseListeners(); view.getSliderZ().attachMouseListeners(); setTFieldsEnabled(false); setZFieldsEnabled(true); } playerUIMng.setIndex(movieIndex, max, start, end); }
|
private void setMovieIndex(int index) { movieIndex = index; int start = Integer.parseInt(startTField.getText()); int end = Integer.parseInt(endTField.getText()); if (movieIndex == Player.MOVIE_T) { max = maxT; view.getSliderT().attachMouseListeners(); view.getSliderZ().removeMouseListeners(); setTFieldsEnabled(true); setZFieldsEnabled(false); } else { start = Integer.parseInt(startZField.getText()); end = Integer.parseInt(endZField.getText()); max = maxZ; view.getSliderT().removeMouseListeners(); view.getSliderZ().attachMouseListeners(); setTFieldsEnabled(false); setZFieldsEnabled(true); } playerUIMng.setIndex(movieIndex, max, start, end); }
| 3,228,912
|
public void stateChanged(ChangeEvent e) { GraphicSlider source = (GraphicSlider) e.getSource(); if (source == view.getSliderT()) handleSliderTStateChanged((ChangeEventSlider) e); else handleSliderZStateChanged((ChangeEventSlider) e); }
|
public void stateChanged(ChangeEvent e) { GraphicSlider source = (GraphicSlider) e.getSource(); if (source == view.sliderT) handleSliderTStateChanged((ChangeEventSlider) e); else handleSliderZStateChanged((ChangeEventSlider) e); }
| 3,228,913
|
void setEndMovie(int v) { if (!playerManager.isPlaying()) playerManager.setEndMovie(v); }
|
void setEndMovie(int v) { stop(); setBorderPlay(false); playerManager.setEndMovie(v); }
| 3,228,914
|
void setStartMovie(int v) { if (!playerManager.isPlaying()) playerManager.setStartMovie(v); }
|
void setStartMovie(int v) { stop(); setBorderPlay(false); playerManager.setStartMovie(v); }
| 3,228,915
|
public void compile(Ruby ruby, String pattern) throws RubyRegexpException { if (extended) { pattern = unextend(pattern); } try { this.re = new RE(pattern, cflags); } catch (REException e) { throw new RubyRegexpException(ruby, e.getMessage()); } }
|
public void compile(Ruby ruby, String pattern) throws RubyRegexpException { if (extended) { pattern = unextend(pattern); } try { this.re = new RE(pattern, cflags); } catch (REException e) { throw new RubyRegexpException(ruby, e.getMessage()); } }
| 3,228,916
|
public void compile(Ruby ruby, String pattern) throws RubyRegexpException { if (extended) { pattern = unextend(pattern); } try { this.re = new RE(pattern, cflags); } catch (REException e) { throw new RubyRegexpException(ruby, e.getMessage()); } }
|
public void compile(Ruby ruby, String pattern) throws RubyRegexpException { if (extended) { pattern = unextend(pattern); } try { this.re = new RE(pattern, cflags); } catch (REException e) { throw new RubyRegexpException(ruby, e.getMessage()); } }
| 3,228,917
|
public boolean getCasefold() { return (cflags & RE.REG_ICASE) > 0; }
|
public boolean getCasefold() { return (cflags & RE.REG_ICASE) > 0; }
| 3,228,918
|
public RubyObject search(Ruby ruby, String target, int startPos) { REMatch match = re.getMatch(target, startPos, eflags); if (match != null) { int count = re.getNumSubs() + 1; int[] begin = new int[count]; int[] end = new int[count]; for (int i = 0; i < count; i++) { begin[i] = match.getStartIndex(i); end[i] = match.getEndIndex(i); } return new RubyMatchData(ruby, target, begin, end); } return ruby.getNil(); }
|
public RubyObject search(Ruby ruby, String target, int startPos) { REMatch match = re.getMatch(target, startPos, eflags); if (match != null) { int count = re.getNumSubs() + 1; int[] begin = new int[count]; int[] end = new int[count]; for (int i = 0; i < count; i++) { begin[i] = match.getStartIndex(i); end[i] = match.getEndIndex(i); } return new RubyMatchData(ruby, target, begin, end); } return ruby.getNil(); }
| 3,228,919
|
public void setCasefold(boolean set) { if (set) { cflags |= RE.REG_ICASE; } else { cflags &= ~RE.REG_ICASE; } }
|
public void setCasefold(boolean set) { if (set) { cflags |= RE.REG_ICASE; } else { cflags &= ~RE.REG_ICASE; } }
| 3,228,920
|
public void setExtended(boolean set) { extended = set; }
|
public void setExtended(boolean set) { extended = set; }
| 3,228,921
|
public void setMultiline(boolean set) { if (set) { cflags |= RE.REG_DOT_NEWLINE; } else { cflags &= ~RE.REG_DOT_NEWLINE; } }
|
public void setMultiline(boolean set) { if (set) { cflags |= RE.REG_DOT_NEWLINE; } else { cflags &= ~RE.REG_DOT_NEWLINE; } }
| 3,228,922
|
public IRubyObject get() { String name = getRuntime().getCurrentContext().getFrameLastFunc(); RubyArray member = (RubyArray) getInstanceVariable(classOf(), "__member__"); assert !member.isNil() : "uninitialized struct"; for (int i = 0; i < member.getLength(); i++) { if (member.entry(i).asSymbol().equals(name)) { return values[i]; } } throw getRuntime().newNameError(name + " is not struct member"); }
|
public IRubyObject get() { String name = getRuntime().getCurrentContext().getFrameLastFunc(); RubyArray member = (RubyArray) getInstanceVariable(classOf(), "__member__"); assert !member.isNil() : "uninitialized struct"; for (int i = 0; i < member.getLength(); i++) { if (member.entry(i).asSymbol().equals(name)) { return values[i]; } } throw notStructMemberError(name); }
| 3,228,924
|
private IRubyObject getByName(String name) { RubyArray member = (RubyArray) getInstanceVariable(classOf(), "__member__"); assert !member.isNil() : "uninitialized struct"; for (int i = 0; i < member.getLength(); i++) { if (member.entry(i).asSymbol().equals(name)) { return values[i]; } } throw getRuntime().newNameError(name + " is not struct member"); }
|
private IRubyObject getByName(String name) { RubyArray member = (RubyArray) getInstanceVariable(classOf(), "__member__"); assert !member.isNil() : "uninitialized struct"; for (int i = 0; i < member.getLength(); i++) { if (member.entry(i).asSymbol().equals(name)) { return values[i]; } } throw notStructMemberError(name); }
| 3,228,925
|
private static IRubyObject getInstanceVariable(RubyClass type, String name) { RubyClass structClass = type.getRuntime().getClass("Struct"); while (type != null && type != structClass) { IRubyObject variable = type.getInstanceVariable(name); if (variable != null) { return variable; } type = type.getSuperClass(); } return type.getRuntime().getNil(); }
|
private static IRubyObject getInstanceVariable(RubyClass type, String name) { RubyClass structClass = type.getRuntime().getClass("Struct"); while (type != null && type != structClass) { IRubyObject variable = type.getInstanceVariable(name); if (variable != null) { return variable; } type = type.getSuperClass(); } return type.getRuntime().getNil(); }
| 3,228,926
|
private void modify() { testFrozen("Struct is frozen"); if (!isTaint() && getRuntime().getSafeLevel() >= 4) { throw getRuntime().newSecurityError("Insecure: can't modify struct"); } }
|
private void modify() { testFrozen("Struct is frozen"); if (!isTaint() && getRuntime().getSafeLevel() >= 4) { throw getRuntime().newSecurityError("Insecure: can't modify struct"); } }
| 3,228,927
|
public static RubyClass newInstance(IRubyObject recv, IRubyObject[] args) { String name = null; if (args.length > 0 && args[0] instanceof RubyString) { name = args[0].toString(); } RubyArray member = recv.getRuntime().newArray(); for (int i = name == null ? 0 : 1; i < args.length; i++) { member.append(RubySymbol.newSymbol(recv.getRuntime(), args[i].asSymbol())); } RubyClass newStruct; if (name == null) { newStruct = new RubyClass((RubyClass) recv); } else { if (!IdUtil.isConstant(name)) { throw recv.getRuntime().newNameError("identifier " + name + " needs to be constant"); } newStruct = ((RubyClass) recv).defineClassUnder(name, (RubyClass) recv); } newStruct.setInstanceVariable("__size__", member.length()); newStruct.setInstanceVariable("__member__", member); CallbackFactory callbackFactory = recv.getRuntime().callbackFactory(RubyStruct.class); newStruct.defineSingletonMethod("new", callbackFactory.getOptSingletonMethod("newStruct")); newStruct.defineSingletonMethod("[]", callbackFactory.getOptSingletonMethod("newStruct")); newStruct.defineSingletonMethod("members", callbackFactory.getSingletonMethod("members")); // define access methods. for (int i = name == null ? 0 : 1; i < args.length; i++) { String memberName = args[i].asSymbol(); newStruct.defineMethod(memberName, callbackFactory.getMethod("get")); newStruct.defineMethod(memberName + "=", callbackFactory.getMethod("set", IRubyObject.class)); } return newStruct; }
|
public static RubyClass newInstance(IRubyObject recv, IRubyObject[] args) { String name = null; if (args.length > 0 && args[0] instanceof RubyString) { name = args[0].toString(); } RubyArray member = recv.getRuntime().newArray(); for (int i = name == null ? 0 : 1; i < args.length; i++) { member.append(RubySymbol.newSymbol(recv.getRuntime(), args[i].asSymbol())); } RubyClass newStruct; if (name == null) { newStruct = new RubyClass((RubyClass) recv); } else { if (!IdUtil.isConstant(name)) { throw recv.getRuntime().newNameError("identifier " + name + " needs to be constant", name); } newStruct = ((RubyClass) recv).defineClassUnder(name, (RubyClass) recv); } newStruct.setInstanceVariable("__size__", member.length()); newStruct.setInstanceVariable("__member__", member); CallbackFactory callbackFactory = recv.getRuntime().callbackFactory(RubyStruct.class); newStruct.defineSingletonMethod("new", callbackFactory.getOptSingletonMethod("newStruct")); newStruct.defineSingletonMethod("[]", callbackFactory.getOptSingletonMethod("newStruct")); newStruct.defineSingletonMethod("members", callbackFactory.getSingletonMethod("members")); // define access methods. for (int i = name == null ? 0 : 1; i < args.length; i++) { String memberName = args[i].asSymbol(); newStruct.defineMethod(memberName, callbackFactory.getMethod("get")); newStruct.defineMethod(memberName + "=", callbackFactory.getMethod("set", IRubyObject.class)); } return newStruct; }
| 3,228,928
|
public static RubyClass newInstance(IRubyObject recv, IRubyObject[] args) { String name = null; if (args.length > 0 && args[0] instanceof RubyString) { name = args[0].toString(); } RubyArray member = recv.getRuntime().newArray(); for (int i = name == null ? 0 : 1; i < args.length; i++) { member.append(RubySymbol.newSymbol(recv.getRuntime(), args[i].asSymbol())); } RubyClass newStruct; if (name == null) { newStruct = new RubyClass((RubyClass) recv); } else { if (!IdUtil.isConstant(name)) { throw recv.getRuntime().newNameError("identifier " + name + " needs to be constant"); } newStruct = ((RubyClass) recv).defineClassUnder(name, (RubyClass) recv); } newStruct.setInstanceVariable("__size__", member.length()); newStruct.setInstanceVariable("__member__", member); CallbackFactory callbackFactory = recv.getRuntime().callbackFactory(RubyStruct.class); newStruct.defineSingletonMethod("new", callbackFactory.getOptSingletonMethod("newStruct")); newStruct.defineSingletonMethod("[]", callbackFactory.getOptSingletonMethod("newStruct")); newStruct.defineSingletonMethod("members", callbackFactory.getSingletonMethod("members")); // define access methods. for (int i = name == null ? 0 : 1; i < args.length; i++) { String memberName = args[i].asSymbol(); newStruct.defineMethod(memberName, callbackFactory.getMethod("get")); newStruct.defineMethod(memberName + "=", callbackFactory.getMethod("set", IRubyObject.class)); } return newStruct; }
|
public static RubyClass newInstance(IRubyObject recv, IRubyObject[] args) { String name = null; if (args.length > 0 && args[0] instanceof RubyString) { name = args[0].toString(); } RubyArray member = recv.getRuntime().newArray(); for (int i = name == null ? 0 : 1; i < args.length; i++) { member.append(RubySymbol.newSymbol(recv.getRuntime(), args[i].asSymbol())); } RubyClass newStruct; if (name == null) { newStruct = new RubyClass((RubyClass) recv); } else { if (!IdUtil.isConstant(name)) { throw recv.getRuntime().newNameError("identifier " + name + " needs to be constant"); } newStruct = ((RubyClass) recv).defineClassUnder(name, (RubyClass) recv); } newStruct.setInstanceVariable("__size__", member.length()); newStruct.setInstanceVariable("__member__", member); CallbackFactory callbackFactory = recv.getRuntime().callbackFactory(RubyStruct.class); newStruct.defineSingletonMethod("new", callbackFactory.getOptSingletonMethod("newStruct")); newStruct.defineSingletonMethod("[]", callbackFactory.getOptSingletonMethod("newStruct")); newStruct.defineSingletonMethod("members", callbackFactory.getSingletonMethod("members")); // define access methods. for (int i = name == null ? 0 : 1; i < args.length; i++) { String memberName = args[i].asSymbol(); newStruct.defineMethod(memberName, callbackFactory.getMethod("get")); newStruct.defineMethod(memberName + "=", callbackFactory.getMethod("set", IRubyObject.class)); } return newStruct; }
| 3,228,929
|
public IRubyObject rbClone() { RubyStruct clone = new RubyStruct(getRuntime(), getMetaClass()); clone.values = new IRubyObject[values.length]; System.arraycopy(values, 0, clone.values, 0, values.length); clone.setFrozen(this.isFrozen()); clone.setTaint(this.isTaint()); return clone; }
|
public IRubyObject rbClone() { RubyStruct clone = new RubyStruct(getRuntime(), getMetaClass()); clone.values = new IRubyObject[values.length]; System.arraycopy(values, 0, clone.values, 0, values.length); clone.setFrozen(this.isFrozen()); clone.setTaint(this.isTaint()); return clone; }
| 3,228,930
|
public IRubyObject rbClone() { RubyStruct clone = new RubyStruct(getRuntime(), getMetaClass()); clone.values = new IRubyObject[values.length]; System.arraycopy(values, 0, clone.values, 0, values.length); clone.setFrozen(this.isFrozen()); clone.setTaint(this.isTaint()); return clone; }
|
public IRubyObject rbClone() { RubyStruct clone = new RubyStruct(getRuntime(), getMetaClass()); clone.values = new IRubyObject[values.length]; System.arraycopy(values, 0, clone.values, 0, values.length); clone.setFrozen(this.isFrozen()); clone.setTaint(this.isTaint()); return clone; }
| 3,228,931
|
public IRubyObject set(IRubyObject value) { String name = getRuntime().getCurrentContext().getFrameLastFunc(); if (name.endsWith("=")) { name = name.substring(0, name.length() - 1); } RubyArray member = (RubyArray) getInstanceVariable(classOf(), "__member__"); assert !member.isNil() : "uninitialized struct"; modify(); for (int i = 0; i < member.getLength(); i++) { if (member.entry(i).asSymbol().equals(name)) { return values[i] = value; } } throw getRuntime().newNameError(name + " is not struct member"); }
|
public IRubyObject set(IRubyObject value) { String name = getRuntime().getCurrentContext().getFrameLastFunc(); if (name.endsWith("=")) { name = name.substring(0, name.length() - 1); } RubyArray member = (RubyArray) getInstanceVariable(classOf(), "__member__"); assert !member.isNil() : "uninitialized struct"; modify(); for (int i = 0; i < member.getLength(); i++) { if (member.entry(i).asSymbol().equals(name)) { return values[i] = value; } } throw notStructMemberError(name); }
| 3,228,932
|
private IRubyObject setByName(String name, IRubyObject value) { RubyArray member = (RubyArray) getInstanceVariable(classOf(), "__member__"); assert !member.isNil() : "uninitialized struct"; modify(); for (int i = 0; i < member.getLength(); i++) { if (member.entry(i).asSymbol().equals(name)) { return values[i] = value; } } throw getRuntime().newNameError(name + " is not struct member"); }
|
private IRubyObject setByName(String name, IRubyObject value) { RubyArray member = (RubyArray) getInstanceVariable(classOf(), "__member__"); assert !member.isNil() : "uninitialized struct"; modify(); for (int i = 0; i < member.getLength(); i++) { if (member.entry(i).asSymbol().equals(name)) { return values[i] = value; } } throw notStructMemberError(name); }
| 3,228,933
|
public static RubyStruct unmarshalFrom(UnmarshalStream input) throws java.io.IOException { IRuby runtime = input.getRuntime(); RubySymbol className = (RubySymbol) input.unmarshalObject(); RubyClass rbClass = pathToClass(runtime, className.asSymbol()); if (rbClass == null) { throw runtime.newNameError("uninitialized constant " + className); } int size = input.unmarshalInt(); IRubyObject[] values = new IRubyObject[size]; for (int i = 0; i < size; i++) { input.unmarshalObject(); // Read and discard a Symbol, which is the name values[i] = input.unmarshalObject(); } RubyStruct result = newStruct(rbClass, values); input.registerLinkTarget(result); return result; }
|
public static RubyStruct unmarshalFrom(UnmarshalStream input) throws java.io.IOException { IRuby runtime = input.getRuntime(); RubySymbol className = (RubySymbol) input.unmarshalObject(); RubyClass rbClass = pathToClass(runtime, className.asSymbol()); if (rbClass == null) { throw runtime.newNameError("uninitialized constant " + className, className.asSymbol()); } int size = input.unmarshalInt(); IRubyObject[] values = new IRubyObject[size]; for (int i = 0; i < size; i++) { input.unmarshalObject(); // Read and discard a Symbol, which is the name values[i] = input.unmarshalObject(); } RubyStruct result = newStruct(rbClass, values); input.registerLinkTarget(result); return result; }
| 3,228,934
|
public void adaptSetUp() throws Exception { super.setUp(); }
|
public void adaptSetUp() throws Exception { super.setUp(); }
| 3,228,935
|
public void adaptTearDown() throws Exception { super.tearDown(); }
|
public void adaptTearDown() throws Exception { super.tearDown(); }
| 3,228,936
|
public void execute() throws MojoExecutionException, MojoFailureException { getLog().debug( " ======= XBeanMojo settings =======" ); getLog().debug( "namespace[" + namespace + "]" ); getLog().debug( "srcDir[" + srcDir + "]" ); getLog().debug( "schema[" + schema + "]" ); getLog().debug( "excludedClasses" + excludedClasses ); getLog().debug( "outputDir[" + outputDir + "]" ); getLog().debug( "propertyEditorPaths[" + propertyEditorPaths + "]" ); getLog().debug( "schemaAsArtifact[" + schemaAsArtifact + "]"); if (schema == null) { schema = new File(outputDir, project.getArtifactId() + ".xsd"); } if (propertyEditorPaths != null) { List editorSearchPath = new LinkedList(Arrays.asList(PropertyEditorManager.getEditorSearchPath())); StringTokenizer paths = new StringTokenizer(propertyEditorPaths, " ,"); editorSearchPath.addAll(Collections.list(paths)); PropertyEditorManager.setEditorSearchPath((String[]) editorSearchPath.toArray(new String[editorSearchPath.size()])); } ClassLoader oldCL = Thread.currentThread().getContextClassLoader(); Thread.currentThread().setContextClassLoader(getClass().getClassLoader()); try { schema.getParentFile().mkdirs(); String[] excludedClasses = null; if (this.excludedClasses != null) { excludedClasses = this.excludedClasses.split(" *, *"); } MappingLoader mappingLoader = new QdoxMappingLoader(namespace, new File[] { srcDir }, excludedClasses); GeneratorPlugin[] plugins = new GeneratorPlugin[]{ new XmlMetadataGenerator(outputDir.getAbsolutePath(), schema), new DocumentationGenerator(schema), new XsdGenerator(schema), new WikiDocumentationGenerator(schema), }; // load the mappings Set namespaces = mappingLoader.loadNamespaces(); if (namespaces.isEmpty()) { System.out.println("Warning: no namespaces found!"); } // generate the files for (Iterator iterator = namespaces.iterator(); iterator.hasNext();) { NamespaceMapping namespaceMapping = (NamespaceMapping) iterator.next(); for (int i = 0; i < plugins.length; i++) { GeneratorPlugin plugin = plugins[i]; plugin.setLog(this); plugin.generate(namespaceMapping); } for (Iterator iter = generatorPlugins.iterator(); iter.hasNext();) { GeneratorPlugin plugin = (GeneratorPlugin) iter.next(); plugin.setLog(this); plugin.generate(namespaceMapping); } } // Attach them as artifacts if (schemaAsArtifact) { projectHelper.attachArtifact(project, "xsd", null, schema); projectHelper.attachArtifact(project, "html", "schema", new File(schema.getAbsolutePath() + ".html")); } Resource res = new Resource(); res.setDirectory(outputDir.toString()); project.addResource(res); log("...done."); } catch (Exception e) { throw new BuildException(e); } finally { Thread.currentThread().setContextClassLoader(oldCL); } }
|
public void execute() throws MojoExecutionException, MojoFailureException { getLog().debug( " ======= XBeanMojo settings =======" ); getLog().debug( "namespace[" + namespace + "]" ); getLog().debug( "srcDir[" + srcDir + "]" ); getLog().debug( "schema[" + schema + "]" ); getLog().debug( "excludedClasses[" + excludedClasses + "]"); getLog().debug( "outputDir[" + outputDir + "]" ); getLog().debug( "propertyEditorPaths[" + propertyEditorPaths + "]" ); getLog().debug( "schemaAsArtifact[" + schemaAsArtifact + "]"); if (schema == null) { schema = new File(outputDir, project.getArtifactId() + ".xsd"); } if (propertyEditorPaths != null) { List editorSearchPath = new LinkedList(Arrays.asList(PropertyEditorManager.getEditorSearchPath())); StringTokenizer paths = new StringTokenizer(propertyEditorPaths, " ,"); editorSearchPath.addAll(Collections.list(paths)); PropertyEditorManager.setEditorSearchPath((String[]) editorSearchPath.toArray(new String[editorSearchPath.size()])); } ClassLoader oldCL = Thread.currentThread().getContextClassLoader(); Thread.currentThread().setContextClassLoader(getClass().getClassLoader()); try { schema.getParentFile().mkdirs(); String[] excludedClasses = null; if (this.excludedClasses != null) { excludedClasses = this.excludedClasses.split(" *, *"); } MappingLoader mappingLoader = new QdoxMappingLoader(namespace, new File[] { srcDir }, excludedClasses); GeneratorPlugin[] plugins = new GeneratorPlugin[]{ new XmlMetadataGenerator(outputDir.getAbsolutePath(), schema), new DocumentationGenerator(schema), new XsdGenerator(schema), new WikiDocumentationGenerator(schema), }; // load the mappings Set namespaces = mappingLoader.loadNamespaces(); if (namespaces.isEmpty()) { System.out.println("Warning: no namespaces found!"); } // generate the files for (Iterator iterator = namespaces.iterator(); iterator.hasNext();) { NamespaceMapping namespaceMapping = (NamespaceMapping) iterator.next(); for (int i = 0; i < plugins.length; i++) { GeneratorPlugin plugin = plugins[i]; plugin.setLog(this); plugin.generate(namespaceMapping); } for (Iterator iter = generatorPlugins.iterator(); iter.hasNext();) { GeneratorPlugin plugin = (GeneratorPlugin) iter.next(); plugin.setLog(this); plugin.generate(namespaceMapping); } } // Attach them as artifacts if (schemaAsArtifact) { projectHelper.attachArtifact(project, "xsd", null, schema); projectHelper.attachArtifact(project, "html", "schema", new File(schema.getAbsolutePath() + ".html")); } Resource res = new Resource(); res.setDirectory(outputDir.toString()); project.addResource(res); log("...done."); } catch (Exception e) { throw new BuildException(e); } finally { Thread.currentThread().setContextClassLoader(oldCL); } }
| 3,228,937
|
public EnumIterator (Enumeration e) { enum = e; hasNext = e.hasMoreElements(); }
|
public EnumIterator (Enumeration e) { enumeration = e; hasNext = e.hasMoreElements(); }
| 3,228,938
|
public double getPixelValue(int x1, int x2) { int offset = calculateOffset(x1, x2); switch(javaType) { case PlaneFactory.BYTE: return data.get(offset); case PlaneFactory.SHORT: return data.getShort(offset); case PlaneFactory.INT: return data.getInt(offset); case PlaneFactory.FLOAT: return data.getFloat(offset); case PlaneFactory.DOUBLE: return data.getDouble(offset); } throw new RuntimeException("Unknown pixel type."); }
|
public double getPixelValue(int x1, int x2) { int offset = calculateOffset(x1, x2); switch(javaType) { case PlaneFactory.BYTE: return data.get(offset); case PlaneFactory.SHORT: return data.getShort(offset); case PlaneFactory.INT: return data.getInt(offset); case PlaneFactory.FLOAT: return data.getFloat(offset); case PlaneFactory.DOUBLE: return data.getDouble(offset); } throw new RuntimeException("Unknown pixel type."); }
| 3,228,940
|
public double getPixelValue(int x1, int x2) { int offset = calculateOffset(x1, x2); switch(javaType) { case PlaneFactory.BYTE: return data.get(offset); case PlaneFactory.SHORT: return data.getShort(offset); case PlaneFactory.INT: return data.getInt(offset); case PlaneFactory.FLOAT: return data.getFloat(offset); case PlaneFactory.DOUBLE: return data.getDouble(offset); } throw new RuntimeException("Unknown pixel type."); }
|
public double getPixelValue(int x1, int x2) { int offset = calculateOffset(x1, x2); switch(javaType) { case PlaneFactory.BYTE: return data.get(offset); case PlaneFactory.SHORT: return data.getShort(offset); case PlaneFactory.INT: return data.getInt(offset); case PlaneFactory.FLOAT: return data.getFloat(offset); case PlaneFactory.DOUBLE: return data.getDouble(offset); } throw new RuntimeException("Unknown pixel type."); }
| 3,228,941
|
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 5; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((0xfc00ffffffffffffL & l) != 0L) { if (kind > 21) kind = 21; } if (curChar == 13) jjstateSet[jjnewStateCnt++] = 2; break; case 0: case 4: if ((0xffffff6fffffdbffL & l) == 0L) break; if (kind > 56) kind = 56; jjCheckNAdd(4); break; case 2: if (curChar == 10 && kind > 21) kind = 21; break; case 3: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 2; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21; break; case 0: if ((0xffffffffefffffffL & l) != 0L) { if (kind > 56) kind = 56; jjCheckNAdd(4); } else if (curChar == 92) jjAddStates(2, 3); break; case 4: if ((0xffffffffefffffffL & l) == 0L) break; if (kind > 56) kind = 56; jjCheckNAdd(4); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21; break; case 0: case 4: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 56) kind = 56; jjCheckNAdd(4); break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 5 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
|
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 5; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((0xfc00ffffffffffffL & l) != 0L) { if (kind > 21) kind = 21; } if (curChar == 13) jjstateSet[jjnewStateCnt++] = 2; break; case 0: case 4: if ((0xffffff6fffffdbffL & l) == 0L) break; if (kind > 56) kind = 56; jjCheckNAdd(4); break; case 2: if (curChar == 10 && kind > 21) kind = 21; break; case 3: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 2; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21; break; case 0: if ((0xffffffffefffffffL & l) != 0L) { if (kind > 56) kind = 56; jjCheckNAdd(4); } else if (curChar == 92) jjAddStates(2, 3); break; case 4: if ((0xffffffffefffffffL & l) == 0L) break; if (kind > 56) kind = 56; jjCheckNAdd(4); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21; break; case 0: case 4: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 56) kind = 56; jjCheckNAdd(4); break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 5 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
| 3,228,942
|
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 5; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((0xfc00ffffffffffffL & l) != 0L) { if (kind > 21) kind = 21; } if (curChar == 13) jjstateSet[jjnewStateCnt++] = 2; break; case 0: case 4: if ((0xffffff6fffffdbffL & l) == 0L) break; if (kind > 56) kind = 56; jjCheckNAdd(4); break; case 2: if (curChar == 10 && kind > 21) kind = 21; break; case 3: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 2; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21; break; case 0: if ((0xffffffffefffffffL & l) != 0L) { if (kind > 56) kind = 56; jjCheckNAdd(4); } else if (curChar == 92) jjAddStates(2, 3); break; case 4: if ((0xffffffffefffffffL & l) == 0L) break; if (kind > 56) kind = 56; jjCheckNAdd(4); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21; break; case 0: case 4: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 56) kind = 56; jjCheckNAdd(4); break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 5 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
|
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 5; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((0xfc00ffffffffffffL & l) != 0L) { if (kind > 21) kind = 21; } if (curChar == 13) jjstateSet[jjnewStateCnt++] = 2; break; case 0: case 4: if ((0xffffff6fffffdbffL & l) == 0L) break; if (kind > 56) kind = 56; jjCheckNAdd(4); break; case 2: if (curChar == 10 && kind > 21) kind = 21; break; case 3: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 2; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21; break; case 0: if ((0xffffffffefffffffL & l) != 0L) { if (kind > 56) kind = 56; jjCheckNAdd(4); } else if (curChar == 92) jjAddStates(2, 3); break; case 4: if ((0xffffffffefffffffL & l) == 0L) break; if (kind > 56) kind = 56; jjCheckNAdd(4); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21; break; case 0: case 4: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 56) kind = 56; jjCheckNAdd(4); break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 5 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
| 3,228,943
|
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 5; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((0xfc00ffffffffffffL & l) != 0L) { if (kind > 21) kind = 21; } if (curChar == 13) jjstateSet[jjnewStateCnt++] = 2; break; case 0: case 4: if ((0xffffff6fffffdbffL & l) == 0L) break; if (kind > 56) kind = 56; jjCheckNAdd(4); break; case 2: if (curChar == 10 && kind > 21) kind = 21; break; case 3: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 2; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21; break; case 0: if ((0xffffffffefffffffL & l) != 0L) { if (kind > 56) kind = 56; jjCheckNAdd(4); } else if (curChar == 92) jjAddStates(2, 3); break; case 4: if ((0xffffffffefffffffL & l) == 0L) break; if (kind > 56) kind = 56; jjCheckNAdd(4); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21; break; case 0: case 4: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 56) kind = 56; jjCheckNAdd(4); break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 5 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
|
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 5; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((0xfc00ffffffffffffL & l) != 0L) { if (kind > 21) kind = 21; } if (curChar == 13) jjstateSet[jjnewStateCnt++] = 2; break; case 0: case 4: if ((0xffffff6fffffdbffL & l) == 0L) break; if (kind > 56) kind = 56; jjCheckNAdd(4); break; case 2: if (curChar == 10 && kind > 21) kind = 21; break; case 3: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 2; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21; break; case 0: if ((0xffffffffefffffffL & l) != 0L) { if (kind > 56) kind = 56; jjCheckNAdd(4); } else if (curChar == 92) jjAddStates(0, 1); break; case 1: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21; break; case 4: if ((0xffffffffefffffffL & l) == 0L) break; if (kind > 56) kind = 56; jjCheckNAdd(4); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21; break; case 0: case 4: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 56) kind = 56; jjCheckNAdd(4); break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 5 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
| 3,228,944
|
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 5; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((0xfc00ffffffffffffL & l) != 0L) { if (kind > 21) kind = 21; } if (curChar == 13) jjstateSet[jjnewStateCnt++] = 2; break; case 0: case 4: if ((0xffffff6fffffdbffL & l) == 0L) break; if (kind > 56) kind = 56; jjCheckNAdd(4); break; case 2: if (curChar == 10 && kind > 21) kind = 21; break; case 3: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 2; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21; break; case 0: if ((0xffffffffefffffffL & l) != 0L) { if (kind > 56) kind = 56; jjCheckNAdd(4); } else if (curChar == 92) jjAddStates(2, 3); break; case 4: if ((0xffffffffefffffffL & l) == 0L) break; if (kind > 56) kind = 56; jjCheckNAdd(4); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21; break; case 0: case 4: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 56) kind = 56; jjCheckNAdd(4); break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 5 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
|
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 5; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((0xfc00ffffffffffffL & l) != 0L) { if (kind > 21) kind = 21; } if (curChar == 13) jjstateSet[jjnewStateCnt++] = 2; break; case 0: case 4: if ((0xffffff6fffffdbffL & l) == 0L) break; if (kind > 56) kind = 56; jjCheckNAdd(4); break; case 2: if (curChar == 10 && kind > 21) kind = 21; break; case 3: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 2; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21; break; case 0: if ((0xffffffffefffffffL & l) != 0L) { if (kind > 56) kind = 56; jjCheckNAdd(4); } else if (curChar == 92) jjAddStates(2, 3); break; case 4: if ((0xffffffffefffffffL & l) == 0L) break; if (kind > 56) kind = 56; jjCheckNAdd(4); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21; break; case 0: case 4: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 56) kind = 56; jjCheckNAdd(4); break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 5 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
| 3,228,945
|
private final int jjMoveNfa_1(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 5; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((0xfc00ffffffffffffL & l) != 0L) { if (kind > 21) kind = 21; } if (curChar == 13) jjstateSet[jjnewStateCnt++] = 2; break; case 0: case 4: if ((0xffffffebffffdbffL & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(4); break; case 2: if (curChar == 10 && kind > 21) kind = 21; break; case 3: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 2; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21; break; case 0: if ((0xffffffffefffffffL & l) != 0L) { if (kind > 55) kind = 55; jjCheckNAdd(4); } else if (curChar == 92) jjAddStates(2, 3); break; case 4: if ((0xffffffffefffffffL & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(4); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21; break; case 0: case 4: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 55) kind = 55; jjCheckNAdd(4); break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 5 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
|
private final int jjMoveNfa_1(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 5; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((0xfc00ffffffffffffL & l) != 0L) { if (kind > 21) kind = 21; } if (curChar == 13) jjstateSet[jjnewStateCnt++] = 2; break; case 0: case 4: if ((0xffffffebffffdbffL & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(4); break; case 2: if (curChar == 10 && kind > 21) kind = 21; break; case 3: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 2; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21; break; case 0: if ((0xffffffffefffffffL & l) != 0L) { if (kind > 55) kind = 55; jjCheckNAdd(4); } else if (curChar == 92) jjAddStates(2, 3); break; case 4: if ((0xffffffffefffffffL & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(4); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21; break; case 0: case 4: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 55) kind = 55; jjCheckNAdd(4); break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 5 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
| 3,228,947
|
private final int jjMoveNfa_1(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 5; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((0xfc00ffffffffffffL & l) != 0L) { if (kind > 21) kind = 21; } if (curChar == 13) jjstateSet[jjnewStateCnt++] = 2; break; case 0: case 4: if ((0xffffffebffffdbffL & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(4); break; case 2: if (curChar == 10 && kind > 21) kind = 21; break; case 3: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 2; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21; break; case 0: if ((0xffffffffefffffffL & l) != 0L) { if (kind > 55) kind = 55; jjCheckNAdd(4); } else if (curChar == 92) jjAddStates(2, 3); break; case 4: if ((0xffffffffefffffffL & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(4); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21; break; case 0: case 4: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 55) kind = 55; jjCheckNAdd(4); break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 5 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
|
private final int jjMoveNfa_1(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 5; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((0xfc00ffffffffffffL & l) != 0L) { if (kind > 21) kind = 21; } if (curChar == 13) jjstateSet[jjnewStateCnt++] = 2; break; case 0: case 4: if ((0xffffffebffffdbffL & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(4); break; case 2: if (curChar == 10 && kind > 21) kind = 21; break; case 3: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 2; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21; break; case 0: if ((0xffffffffefffffffL & l) != 0L) { if (kind > 55) kind = 55; jjCheckNAdd(4); } else if (curChar == 92) jjAddStates(2, 3); break; case 4: if ((0xffffffffefffffffL & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(4); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21; break; case 0: case 4: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 55) kind = 55; jjCheckNAdd(4); break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 5 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
| 3,228,948
|
private final int jjMoveNfa_1(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 5; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((0xfc00ffffffffffffL & l) != 0L) { if (kind > 21) kind = 21; } if (curChar == 13) jjstateSet[jjnewStateCnt++] = 2; break; case 0: case 4: if ((0xffffffebffffdbffL & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(4); break; case 2: if (curChar == 10 && kind > 21) kind = 21; break; case 3: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 2; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21; break; case 0: if ((0xffffffffefffffffL & l) != 0L) { if (kind > 55) kind = 55; jjCheckNAdd(4); } else if (curChar == 92) jjAddStates(2, 3); break; case 4: if ((0xffffffffefffffffL & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(4); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21; break; case 0: case 4: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 55) kind = 55; jjCheckNAdd(4); break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 5 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
|
private final int jjMoveNfa_1(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 5; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((0xfc00ffffffffffffL & l) != 0L) { if (kind > 21) kind = 21; } if (curChar == 13) jjstateSet[jjnewStateCnt++] = 2; break; case 0: case 4: if ((0xffffffebffffdbffL & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(4); break; case 2: if (curChar == 10 && kind > 21) kind = 21; break; case 3: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 2; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21; break; case 0: if ((0xffffffffefffffffL & l) != 0L) { if (kind > 55) kind = 55; jjCheckNAdd(4); } else if (curChar == 92) jjAddStates(0, 1); break; case 1: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21; break; case 4: if ((0xffffffffefffffffL & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(4); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21; break; case 0: case 4: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 55) kind = 55; jjCheckNAdd(4); break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 5 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
| 3,228,949
|
private final int jjMoveNfa_1(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 5; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((0xfc00ffffffffffffL & l) != 0L) { if (kind > 21) kind = 21; } if (curChar == 13) jjstateSet[jjnewStateCnt++] = 2; break; case 0: case 4: if ((0xffffffebffffdbffL & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(4); break; case 2: if (curChar == 10 && kind > 21) kind = 21; break; case 3: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 2; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21; break; case 0: if ((0xffffffffefffffffL & l) != 0L) { if (kind > 55) kind = 55; jjCheckNAdd(4); } else if (curChar == 92) jjAddStates(2, 3); break; case 4: if ((0xffffffffefffffffL & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(4); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21; break; case 0: case 4: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 55) kind = 55; jjCheckNAdd(4); break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 5 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
|
private final int jjMoveNfa_1(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 5; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((0xfc00ffffffffffffL & l) != 0L) { if (kind > 21) kind = 21; } if (curChar == 13) jjstateSet[jjnewStateCnt++] = 2; break; case 0: case 4: if ((0xffffffebffffdbffL & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(4); break; case 2: if (curChar == 10 && kind > 21) kind = 21; break; case 3: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 2; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21; break; case 0: if ((0xffffffffefffffffL & l) != 0L) { if (kind > 55) kind = 55; jjCheckNAdd(4); } else if (curChar == 92) jjAddStates(2, 3); break; case 4: if ((0xffffffffefffffffL & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(4); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21; break; case 0: case 4: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 55) kind = 55; jjCheckNAdd(4); break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 5 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
| 3,228,950
|
private final int jjMoveNfa_3(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 31; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 4: if ((0xfc00ffffffffffffL & l) != 0L) { if (kind > 21) kind = 21; } if (curChar == 13) jjstateSet[jjnewStateCnt++] = 5; break; case 2: if ((0x3ff000000000000L & l) != 0L) { if (kind > 53) kind = 53; jjCheckNAdd(30); } else if ((0x2400L & l) != 0L) { if (kind > 30) kind = 30; } else if ((0x100000200L & l) != 0L) { if (kind > 29) kind = 29; jjCheckNAdd(7); } else if (curChar == 33) { if (kind > 49) kind = 49; } else if (curChar == 38) jjstateSet[jjnewStateCnt++] = 15; else if (curChar == 60) jjstateSet[jjnewStateCnt++] = 13; else if (curChar == 35) jjstateSet[jjnewStateCnt++] = 0; if (curChar == 33) jjstateSet[jjnewStateCnt++] = 11; else if (curChar == 13) jjstateSet[jjnewStateCnt++] = 8; break; case 0: if (curChar != 35) break; if (kind > 16) kind = 16; jjCheckNAdd(1); break; case 1: if ((0xffffffffffffdbffL & l) == 0L) break; if (kind > 16) kind = 16; jjCheckNAdd(1); break; case 5: if (curChar == 10 && kind > 21) kind = 21; break; case 6: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 5; break; case 7: if ((0x100000200L & l) == 0L) break; if (kind > 29) kind = 29; jjCheckNAdd(7); break; case 8: if (curChar == 10 && kind > 30) kind = 30; break; case 9: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 8; break; case 10: if ((0x2400L & l) != 0L && kind > 30) kind = 30; break; case 11: if (curChar == 61 && kind > 42) kind = 42; break; case 12: if (curChar == 33) jjstateSet[jjnewStateCnt++] = 11; break; case 13: if (curChar == 62 && kind > 42) kind = 42; break; case 14: if (curChar == 60) jjstateSet[jjnewStateCnt++] = 13; break; case 15: if (curChar == 38 && kind > 47) kind = 47; break; case 16: if (curChar == 38) jjstateSet[jjnewStateCnt++] = 15; break; case 24: if (curChar == 33 && kind > 49) kind = 49; break; case 29: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 52) kind = 52; jjstateSet[jjnewStateCnt++] = 29; break; case 30: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 53) kind = 53; jjCheckNAdd(30); break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 4: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21; break; case 2: if ((0x7fffffe07fffffeL & l) != 0L) { if (kind > 52) kind = 52; jjCheckNAdd(29); } else if (curChar == 124) jjstateSet[jjnewStateCnt++] = 20; else if (curChar == 92) jjAddStates(4, 5); if (curChar == 78) jjstateSet[jjnewStateCnt++] = 26; else if (curChar == 79) jjstateSet[jjnewStateCnt++] = 22; else if (curChar == 65) jjstateSet[jjnewStateCnt++] = 18; break; case 1: if (kind > 16) kind = 16; jjstateSet[jjnewStateCnt++] = 1; break; case 3: if (curChar == 92) jjAddStates(4, 5); break; case 17: if (curChar == 68 && kind > 47) kind = 47; break; case 18: if (curChar == 78) jjstateSet[jjnewStateCnt++] = 17; break; case 19: if (curChar == 65) jjstateSet[jjnewStateCnt++] = 18; break; case 20: if (curChar == 124 && kind > 48) kind = 48; break; case 21: if (curChar == 124) jjstateSet[jjnewStateCnt++] = 20; break; case 22: if (curChar == 82 && kind > 48) kind = 48; break; case 23: if (curChar == 79) jjstateSet[jjnewStateCnt++] = 22; break; case 25: if (curChar == 84 && kind > 49) kind = 49; break; case 26: if (curChar == 79) jjstateSet[jjnewStateCnt++] = 25; break; case 27: if (curChar == 78) jjstateSet[jjnewStateCnt++] = 26; break; case 28: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 52) kind = 52; jjCheckNAdd(29); break; case 29: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 52) kind = 52; jjCheckNAdd(29); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 4: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21; break; case 1: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 16) kind = 16; jjstateSet[jjnewStateCnt++] = 1; break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 31 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
|
private final int jjMoveNfa_3(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 31; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 4: if ((0xfc00ffffffffffffL & l) != 0L) { if (kind > 21) kind = 21; } if (curChar == 13) jjstateSet[jjnewStateCnt++] = 5; break; case 2: if ((0x3ff000000000000L & l) != 0L) { if (kind > 53) kind = 53; jjCheckNAdd(30); } else if ((0x2400L & l) != 0L) { if (kind > 30) kind = 30; } else if ((0x100000200L & l) != 0L) { if (kind > 29) kind = 29; jjCheckNAdd(7); } else if (curChar == 33) { if (kind > 49) kind = 49; } else if (curChar == 38) jjstateSet[jjnewStateCnt++] = 15; else if (curChar == 60) jjstateSet[jjnewStateCnt++] = 13; else if (curChar == 35) jjstateSet[jjnewStateCnt++] = 0; if (curChar == 33) jjstateSet[jjnewStateCnt++] = 11; else if (curChar == 13) jjstateSet[jjnewStateCnt++] = 8; break; case 0: if (curChar != 35) break; if (kind > 16) kind = 16; jjCheckNAdd(1); break; case 1: if ((0xffffffffffffdbffL & l) == 0L) break; if (kind > 16) kind = 16; jjCheckNAdd(1); break; case 5: if (curChar == 10 && kind > 21) kind = 21; break; case 6: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 5; break; case 7: if ((0x100000200L & l) == 0L) break; if (kind > 29) kind = 29; jjCheckNAdd(7); break; case 8: if (curChar == 10 && kind > 30) kind = 30; break; case 9: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 8; break; case 10: if ((0x2400L & l) != 0L && kind > 30) kind = 30; break; case 11: if (curChar == 61 && kind > 42) kind = 42; break; case 12: if (curChar == 33) jjstateSet[jjnewStateCnt++] = 11; break; case 13: if (curChar == 62 && kind > 42) kind = 42; break; case 14: if (curChar == 60) jjstateSet[jjnewStateCnt++] = 13; break; case 15: if (curChar == 38 && kind > 47) kind = 47; break; case 16: if (curChar == 38) jjstateSet[jjnewStateCnt++] = 15; break; case 24: if (curChar == 33 && kind > 49) kind = 49; break; case 29: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 52) kind = 52; jjstateSet[jjnewStateCnt++] = 29; break; case 30: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 53) kind = 53; jjCheckNAdd(30); break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 4: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21; break; case 2: if ((0x7fffffe07fffffeL & l) != 0L) { if (kind > 52) kind = 52; jjCheckNAdd(29); } else if (curChar == 124) jjstateSet[jjnewStateCnt++] = 20; else if (curChar == 92) jjAddStates(2, 3); if (curChar == 78) jjstateSet[jjnewStateCnt++] = 26; else if (curChar == 79) jjstateSet[jjnewStateCnt++] = 22; else if (curChar == 65) jjstateSet[jjnewStateCnt++] = 18; break; case 1: if (kind > 16) kind = 16; jjstateSet[jjnewStateCnt++] = 1; break; case 3: if (curChar == 92) jjAddStates(2, 3); break; case 17: if (curChar == 68 && kind > 47) kind = 47; break; case 18: if (curChar == 78) jjstateSet[jjnewStateCnt++] = 17; break; case 19: if (curChar == 65) jjstateSet[jjnewStateCnt++] = 18; break; case 20: if (curChar == 124 && kind > 48) kind = 48; break; case 21: if (curChar == 124) jjstateSet[jjnewStateCnt++] = 20; break; case 22: if (curChar == 82 && kind > 48) kind = 48; break; case 23: if (curChar == 79) jjstateSet[jjnewStateCnt++] = 22; break; case 25: if (curChar == 84 && kind > 49) kind = 49; break; case 26: if (curChar == 79) jjstateSet[jjnewStateCnt++] = 25; break; case 27: if (curChar == 78) jjstateSet[jjnewStateCnt++] = 26; break; case 28: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 52) kind = 52; jjCheckNAdd(29); break; case 29: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 52) kind = 52; jjCheckNAdd(29); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 4: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21; break; case 1: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 16) kind = 16; jjstateSet[jjnewStateCnt++] = 1; break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 31 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
| 3,228,952
|
private final int jjMoveNfa_3(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 31; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 4: if ((0xfc00ffffffffffffL & l) != 0L) { if (kind > 21) kind = 21; } if (curChar == 13) jjstateSet[jjnewStateCnt++] = 5; break; case 2: if ((0x3ff000000000000L & l) != 0L) { if (kind > 53) kind = 53; jjCheckNAdd(30); } else if ((0x2400L & l) != 0L) { if (kind > 30) kind = 30; } else if ((0x100000200L & l) != 0L) { if (kind > 29) kind = 29; jjCheckNAdd(7); } else if (curChar == 33) { if (kind > 49) kind = 49; } else if (curChar == 38) jjstateSet[jjnewStateCnt++] = 15; else if (curChar == 60) jjstateSet[jjnewStateCnt++] = 13; else if (curChar == 35) jjstateSet[jjnewStateCnt++] = 0; if (curChar == 33) jjstateSet[jjnewStateCnt++] = 11; else if (curChar == 13) jjstateSet[jjnewStateCnt++] = 8; break; case 0: if (curChar != 35) break; if (kind > 16) kind = 16; jjCheckNAdd(1); break; case 1: if ((0xffffffffffffdbffL & l) == 0L) break; if (kind > 16) kind = 16; jjCheckNAdd(1); break; case 5: if (curChar == 10 && kind > 21) kind = 21; break; case 6: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 5; break; case 7: if ((0x100000200L & l) == 0L) break; if (kind > 29) kind = 29; jjCheckNAdd(7); break; case 8: if (curChar == 10 && kind > 30) kind = 30; break; case 9: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 8; break; case 10: if ((0x2400L & l) != 0L && kind > 30) kind = 30; break; case 11: if (curChar == 61 && kind > 42) kind = 42; break; case 12: if (curChar == 33) jjstateSet[jjnewStateCnt++] = 11; break; case 13: if (curChar == 62 && kind > 42) kind = 42; break; case 14: if (curChar == 60) jjstateSet[jjnewStateCnt++] = 13; break; case 15: if (curChar == 38 && kind > 47) kind = 47; break; case 16: if (curChar == 38) jjstateSet[jjnewStateCnt++] = 15; break; case 24: if (curChar == 33 && kind > 49) kind = 49; break; case 29: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 52) kind = 52; jjstateSet[jjnewStateCnt++] = 29; break; case 30: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 53) kind = 53; jjCheckNAdd(30); break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 4: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21; break; case 2: if ((0x7fffffe07fffffeL & l) != 0L) { if (kind > 52) kind = 52; jjCheckNAdd(29); } else if (curChar == 124) jjstateSet[jjnewStateCnt++] = 20; else if (curChar == 92) jjAddStates(4, 5); if (curChar == 78) jjstateSet[jjnewStateCnt++] = 26; else if (curChar == 79) jjstateSet[jjnewStateCnt++] = 22; else if (curChar == 65) jjstateSet[jjnewStateCnt++] = 18; break; case 1: if (kind > 16) kind = 16; jjstateSet[jjnewStateCnt++] = 1; break; case 3: if (curChar == 92) jjAddStates(4, 5); break; case 17: if (curChar == 68 && kind > 47) kind = 47; break; case 18: if (curChar == 78) jjstateSet[jjnewStateCnt++] = 17; break; case 19: if (curChar == 65) jjstateSet[jjnewStateCnt++] = 18; break; case 20: if (curChar == 124 && kind > 48) kind = 48; break; case 21: if (curChar == 124) jjstateSet[jjnewStateCnt++] = 20; break; case 22: if (curChar == 82 && kind > 48) kind = 48; break; case 23: if (curChar == 79) jjstateSet[jjnewStateCnt++] = 22; break; case 25: if (curChar == 84 && kind > 49) kind = 49; break; case 26: if (curChar == 79) jjstateSet[jjnewStateCnt++] = 25; break; case 27: if (curChar == 78) jjstateSet[jjnewStateCnt++] = 26; break; case 28: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 52) kind = 52; jjCheckNAdd(29); break; case 29: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 52) kind = 52; jjCheckNAdd(29); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 4: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21; break; case 1: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 16) kind = 16; jjstateSet[jjnewStateCnt++] = 1; break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 31 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
|
private final int jjMoveNfa_3(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 31; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 4: if ((0xfc00ffffffffffffL & l) != 0L) { if (kind > 21) kind = 21; } if (curChar == 13) jjstateSet[jjnewStateCnt++] = 5; break; case 2: if ((0x3ff000000000000L & l) != 0L) { if (kind > 53) kind = 53; jjCheckNAdd(30); } else if ((0x2400L & l) != 0L) { if (kind > 30) kind = 30; } else if ((0x100000200L & l) != 0L) { if (kind > 29) kind = 29; jjCheckNAdd(7); } else if (curChar == 33) { if (kind > 49) kind = 49; } else if (curChar == 38) jjstateSet[jjnewStateCnt++] = 15; else if (curChar == 60) jjstateSet[jjnewStateCnt++] = 13; else if (curChar == 35) jjstateSet[jjnewStateCnt++] = 0; if (curChar == 33) jjstateSet[jjnewStateCnt++] = 11; else if (curChar == 13) jjstateSet[jjnewStateCnt++] = 8; break; case 0: if (curChar != 35) break; if (kind > 16) kind = 16; jjCheckNAdd(1); break; case 1: if ((0xffffffffffffdbffL & l) == 0L) break; if (kind > 16) kind = 16; jjCheckNAdd(1); break; case 5: if (curChar == 10 && kind > 21) kind = 21; break; case 6: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 5; break; case 7: if ((0x100000200L & l) == 0L) break; if (kind > 29) kind = 29; jjCheckNAdd(7); break; case 8: if (curChar == 10 && kind > 30) kind = 30; break; case 9: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 8; break; case 10: if ((0x2400L & l) != 0L && kind > 30) kind = 30; break; case 11: if (curChar == 61 && kind > 42) kind = 42; break; case 12: if (curChar == 33) jjstateSet[jjnewStateCnt++] = 11; break; case 13: if (curChar == 62 && kind > 42) kind = 42; break; case 14: if (curChar == 60) jjstateSet[jjnewStateCnt++] = 13; break; case 15: if (curChar == 38 && kind > 47) kind = 47; break; case 16: if (curChar == 38) jjstateSet[jjnewStateCnt++] = 15; break; case 24: if (curChar == 33 && kind > 49) kind = 49; break; case 29: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 52) kind = 52; jjstateSet[jjnewStateCnt++] = 29; break; case 30: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 53) kind = 53; jjCheckNAdd(30); break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 4: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21; break; case 2: if ((0x7fffffe07fffffeL & l) != 0L) { if (kind > 52) kind = 52; jjCheckNAdd(29); } else if (curChar == 124) jjstateSet[jjnewStateCnt++] = 20; else if (curChar == 92) jjAddStates(2, 3); if (curChar == 78) jjstateSet[jjnewStateCnt++] = 26; else if (curChar == 79) jjstateSet[jjnewStateCnt++] = 22; else if (curChar == 65) jjstateSet[jjnewStateCnt++] = 18; break; case 1: if (kind > 16) kind = 16; jjstateSet[jjnewStateCnt++] = 1; break; case 3: if (curChar == 92) jjAddStates(2, 3); break; case 17: if (curChar == 68 && kind > 47) kind = 47; break; case 18: if (curChar == 78) jjstateSet[jjnewStateCnt++] = 17; break; case 19: if (curChar == 65) jjstateSet[jjnewStateCnt++] = 18; break; case 20: if (curChar == 124 && kind > 48) kind = 48; break; case 21: if (curChar == 124) jjstateSet[jjnewStateCnt++] = 20; break; case 22: if (curChar == 82 && kind > 48) kind = 48; break; case 23: if (curChar == 79) jjstateSet[jjnewStateCnt++] = 22; break; case 25: if (curChar == 84 && kind > 49) kind = 49; break; case 26: if (curChar == 79) jjstateSet[jjnewStateCnt++] = 25; break; case 27: if (curChar == 78) jjstateSet[jjnewStateCnt++] = 26; break; case 28: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 52) kind = 52; jjCheckNAdd(29); break; case 29: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 52) kind = 52; jjCheckNAdd(29); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 4: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21; break; case 1: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 16) kind = 16; jjstateSet[jjnewStateCnt++] = 1; break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 31 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
| 3,228,953
|
private final int jjMoveNfa_4(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 5; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 1: case 0: if ((0xffffffe7ffffffffL & l) == 0L) break; if (kind > 11) kind = 11; jjCheckNAdd(0); break; case 2: if ((0xfc00ffffffffffffL & l) != 0L) { if (kind > 21) kind = 21; } if (curChar == 13) jjstateSet[jjnewStateCnt++] = 3; break; case 3: if (curChar == 10 && kind > 21) kind = 21; break; case 4: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 3; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((0xd7ffffffefffffffL & l) != 0L) { if (kind > 11) kind = 11; jjCheckNAdd(0); } else if (curChar == 92) jjAddStates(0, 1); break; case 2: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21; break; case 0: if ((0xd7ffffffefffffffL & l) == 0L) break; if (kind > 11) kind = 11; jjCheckNAdd(0); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: case 0: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 11) kind = 11; jjCheckNAdd(0); break; case 2: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21; break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 5 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
|
private final int jjMoveNfa_4(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 5; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 1: case 0: if ((0xffffffe7ffffffffL & l) == 0L) break; if (kind > 11) kind = 11; jjCheckNAdd(0); break; case 2: if ((0xfc00ffffffffffffL & l) != 0L) { if (kind > 21) kind = 21; } if (curChar == 13) jjstateSet[jjnewStateCnt++] = 3; break; case 3: if (curChar == 10 && kind > 21) kind = 21; break; case 4: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 3; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((0xd7ffffffefffffffL & l) != 0L) { if (kind > 11) kind = 11; jjCheckNAdd(0); } else if (curChar == 92) jjAddStates(0, 1); break; case 2: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21; break; case 0: if ((0xd7ffffffefffffffL & l) == 0L) break; if (kind > 11) kind = 11; jjCheckNAdd(0); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: case 0: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 11) kind = 11; jjCheckNAdd(0); break; case 2: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21; break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 5 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
| 3,228,954
|
private final int jjMoveNfa_4(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 5; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 1: case 0: if ((0xffffffe7ffffffffL & l) == 0L) break; if (kind > 11) kind = 11; jjCheckNAdd(0); break; case 2: if ((0xfc00ffffffffffffL & l) != 0L) { if (kind > 21) kind = 21; } if (curChar == 13) jjstateSet[jjnewStateCnt++] = 3; break; case 3: if (curChar == 10 && kind > 21) kind = 21; break; case 4: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 3; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((0xd7ffffffefffffffL & l) != 0L) { if (kind > 11) kind = 11; jjCheckNAdd(0); } else if (curChar == 92) jjAddStates(0, 1); break; case 2: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21; break; case 0: if ((0xd7ffffffefffffffL & l) == 0L) break; if (kind > 11) kind = 11; jjCheckNAdd(0); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: case 0: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 11) kind = 11; jjCheckNAdd(0); break; case 2: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21; break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 5 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
|
private final int jjMoveNfa_4(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 5; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 1: case 0: if ((0xffffffe7ffffffffL & l) == 0L) break; if (kind > 11) kind = 11; jjCheckNAdd(0); break; case 2: if ((0xfc00ffffffffffffL & l) != 0L) { if (kind > 21) kind = 21; } if (curChar == 13) jjstateSet[jjnewStateCnt++] = 3; break; case 3: if (curChar == 10 && kind > 21) kind = 21; break; case 4: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 3; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((0xd7ffffffefffffffL & l) != 0L) { if (kind > 11) kind = 11; jjCheckNAdd(0); } else if (curChar == 92) jjAddStates(0, 1); break; case 2: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21; break; case 0: if ((0xd7ffffffefffffffL & l) == 0L) break; if (kind > 11) kind = 11; jjCheckNAdd(0); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: case 0: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 11) kind = 11; jjCheckNAdd(0); break; case 2: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21; break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 5 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
| 3,228,955
|
private final int jjMoveNfa_4(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 5; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 1: case 0: if ((0xffffffe7ffffffffL & l) == 0L) break; if (kind > 11) kind = 11; jjCheckNAdd(0); break; case 2: if ((0xfc00ffffffffffffL & l) != 0L) { if (kind > 21) kind = 21; } if (curChar == 13) jjstateSet[jjnewStateCnt++] = 3; break; case 3: if (curChar == 10 && kind > 21) kind = 21; break; case 4: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 3; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((0xd7ffffffefffffffL & l) != 0L) { if (kind > 11) kind = 11; jjCheckNAdd(0); } else if (curChar == 92) jjAddStates(0, 1); break; case 2: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21; break; case 0: if ((0xd7ffffffefffffffL & l) == 0L) break; if (kind > 11) kind = 11; jjCheckNAdd(0); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: case 0: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 11) kind = 11; jjCheckNAdd(0); break; case 2: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21; break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 5 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
|
private final int jjMoveNfa_4(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 5; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 1: case 0: if ((0xffffffe7ffffffffL & l) == 0L) break; if (kind > 11) kind = 11; jjCheckNAdd(0); break; case 2: if ((0xfc00ffffffffffffL & l) != 0L) { if (kind > 21) kind = 21; } if (curChar == 13) jjstateSet[jjnewStateCnt++] = 3; break; case 3: if (curChar == 10 && kind > 21) kind = 21; break; case 4: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 3; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((0xd7ffffffefffffffL & l) != 0L) { if (kind > 11) kind = 11; jjCheckNAdd(0); } else if (curChar == 92) jjAddStates(0, 1); break; case 2: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21; break; case 0: if ((0xd7ffffffefffffffL & l) == 0L) break; if (kind > 11) kind = 11; jjCheckNAdd(0); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: case 0: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 11) kind = 11; jjCheckNAdd(0); break; case 2: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21; break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 5 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
| 3,228,956
|
private final int jjStopStringLiteralDfa_3(int pos, long active0){ switch (pos) { case 0: if ((active0 & 0x400000L) != 0L) return 4; if ((active0 & 0x804000L) != 0L) return 0; if ((active0 & 0x1c000000L) != 0L) { jjmatchedKind = 52; return 29; } if ((active0 & 0x3000000000L) != 0L) return 13; return -1; case 1: if ((active0 & 0x1c000000L) != 0L) { jjmatchedKind = 52; jjmatchedPos = 1; return 29; } return -1; case 2: if ((active0 & 0x1c000000L) != 0L) { jjmatchedKind = 52; jjmatchedPos = 2; return 29; } return -1; case 3: if ((active0 & 0x10000000L) != 0L) { jjmatchedKind = 52; jjmatchedPos = 3; return 29; } if ((active0 & 0xc000000L) != 0L) return 29; return -1; case 4: if ((active0 & 0x10000000L) != 0L) return 29; return -1; default : return -1; }}
|
private final int jjStopStringLiteralDfa_3(int pos, long active0){ switch (pos) { case 0: if ((active0 & 0x400000L) != 0L) return 4; if ((active0 & 0x804000L) != 0L) return 0; if ((active0 & 0x1c000000L) != 0L) { jjmatchedKind = 52; return 29; } if ((active0 & 0x3000000000L) != 0L) return 13; return -1; case 1: if ((active0 & 0x1c000000L) != 0L) { jjmatchedKind = 52; jjmatchedPos = 1; return 29; } return -1; case 2: if ((active0 & 0x1c000000L) != 0L) { jjmatchedKind = 52; jjmatchedPos = 2; return 29; } return -1; case 3: if ((active0 & 0x10000000L) != 0L) { jjmatchedKind = 52; jjmatchedPos = 3; return 29; } if ((active0 & 0xc000000L) != 0L) return 29; return -1; case 4: if ((active0 & 0x10000000L) != 0L) return 29; return -1; default : return -1; }}
| 3,228,957
|
private final int jjStopStringLiteralDfa_3(int pos, long active0){ switch (pos) { case 0: if ((active0 & 0x400000L) != 0L) return 4; if ((active0 & 0x804000L) != 0L) return 0; if ((active0 & 0x1c000000L) != 0L) { jjmatchedKind = 52; return 29; } if ((active0 & 0x3000000000L) != 0L) return 13; return -1; case 1: if ((active0 & 0x1c000000L) != 0L) { jjmatchedKind = 52; jjmatchedPos = 1; return 29; } return -1; case 2: if ((active0 & 0x1c000000L) != 0L) { jjmatchedKind = 52; jjmatchedPos = 2; return 29; } return -1; case 3: if ((active0 & 0x10000000L) != 0L) { jjmatchedKind = 52; jjmatchedPos = 3; return 29; } if ((active0 & 0xc000000L) != 0L) return 29; return -1; case 4: if ((active0 & 0x10000000L) != 0L) return 29; return -1; default : return -1; }}
|
private final int jjStopStringLiteralDfa_3(int pos, long active0){ switch (pos) { case 0: if ((active0 & 0x400000L) != 0L) return 4; if ((active0 & 0x804000L) != 0L) return 0; if ((active0 & 0x1c000000L) != 0L) { jjmatchedKind = 52; return 29; } if ((active0 & 0x3000000000L) != 0L) return 13; return -1; case 1: if ((active0 & 0x1c000000L) != 0L) { jjmatchedKind = 52; jjmatchedPos = 1; return 29; } return -1; case 2: if ((active0 & 0x1c000000L) != 0L) { jjmatchedKind = 52; jjmatchedPos = 2; return 29; } return -1; case 3: if ((active0 & 0x10000000L) != 0L) { jjmatchedKind = 52; jjmatchedPos = 3; return 29; } if ((active0 & 0xc000000L) != 0L) return 29; return -1; case 4: if ((active0 & 0x10000000L) != 0L) return 29; return -1; default : return -1; }}
| 3,228,958
|
private ThemeManager() { emoticonManager = EmoticonManager.getInstance(); BrowserEngineManager bem = BrowserEngineManager.instance(); //specific engine if you want and the engine you specified will return bem.setActiveEngine(BrowserEngineManager.MOZILLA); //IBrowserEngine be = bem.setActiveEngine(...); IBrowserEngine be = bem.getActiveEngine();//default or specified engine is returned // Note that the install directory is my name for temporary files and // not about mozilla. Me love Mozilla. be.setEnginePath("C:\\crapola\\mozilla\\mozilla.exe"); THEMES_DIRECTORY = new File(Spark.getBinDirectory().getParent(), "xtra/themes").getAbsoluteFile(); // For Testing THEMES_DIRECTORY = new File("c:\\xtra\\themes"); expandNewThemes(); final LocalPreferences pref = SettingsManager.getLocalPreferences(); String themeName = pref.getTheme(); File theme = new File(THEMES_DIRECTORY, themeName); try { setTheme(theme); } catch (Exception e) { e.printStackTrace(); } // Add Preference SparkManager.getPreferenceManager().addPreference(new ThemePreference()); }
|
private ThemeManager() { emoticonManager = EmoticonManager.getInstance(); BrowserEngineManager bem = BrowserEngineManager.instance(); //specific engine if you want and the engine you specified will return bem.setActiveEngine(BrowserEngineManager.MOZILLA); //IBrowserEngine be = bem.setActiveEngine(...); IBrowserEngine be = bem.getActiveEngine();//default or specified engine is returned // Note that the install directory is my name for temporary files and // not about mozilla. Me love Mozilla. be.setEnginePath("C:\\crapola\\mozilla\\mozilla.exe"); THEMES_DIRECTORY = new File(Spark.getBinDirectory().getParent(), "xtra/themes").getAbsoluteFile(); // For Testing expandNewThemes(); final LocalPreferences pref = SettingsManager.getLocalPreferences(); String themeName = pref.getTheme(); File theme = new File(THEMES_DIRECTORY, themeName); try { setTheme(theme); } catch (Exception e) { e.printStackTrace(); } // Add Preference SparkManager.getPreferenceManager().addPreference(new ThemePreference()); }
| 3,228,959
|
public synchronized void addContactItem(ContactItem item) { if (model.getSize() == 1 && model.getElementAt(0) == noContacts) { model.remove(0); } if ("Offline Group".equals(groupName)) { item.getNicknameLabel().setFont(new Font("Dialog", Font.PLAIN, 11)); item.getNicknameLabel().setForeground(Color.GRAY); } item.setGroupName(getGroupName()); contactItems.add(item); Collections.sort(contactItems, itemComparator); int index = contactItems.indexOf(item); Object[] objs = list.getSelectedValues(); model.insertElementAt(item, index); int[] intList = new int[objs.length]; for (int i = 0; i < objs.length; i++) { ContactItem contact = (ContactItem)objs[i]; intList[i] = model.indexOf(contact); } if (intList.length > 0) { list.setSelectedIndices(intList); } fireContactItemAdded(item); }
|
public synchronized void addContactItem(ContactItem item) { if (model.getSize() == 1 && model.getElementAt(0) == noContacts) { model.remove(0); } if ("Offline Group".equals(groupName)) { item.getNicknameLabel().setFont(new Font("Dialog", Font.PLAIN, 11)); item.getNicknameLabel().setForeground(Color.GRAY); } item.setGroupName(getGroupName()); contactItems.add(item); List<ContactItem> tempItems = getContactItems(); int index = contactItems.indexOf(item); Object[] objs = list.getSelectedValues(); model.insertElementAt(item, index); int[] intList = new int[objs.length]; for (int i = 0; i < objs.length; i++) { ContactItem contact = (ContactItem)objs[i]; intList[i] = model.indexOf(contact); } if (intList.length > 0) { list.setSelectedIndices(intList); } fireContactItemAdded(item); }
| 3,228,960
|
public synchronized void addContactItem(ContactItem item) { if (model.getSize() == 1 && model.getElementAt(0) == noContacts) { model.remove(0); } if ("Offline Group".equals(groupName)) { item.getNicknameLabel().setFont(new Font("Dialog", Font.PLAIN, 11)); item.getNicknameLabel().setForeground(Color.GRAY); } item.setGroupName(getGroupName()); contactItems.add(item); Collections.sort(contactItems, itemComparator); int index = contactItems.indexOf(item); Object[] objs = list.getSelectedValues(); model.insertElementAt(item, index); int[] intList = new int[objs.length]; for (int i = 0; i < objs.length; i++) { ContactItem contact = (ContactItem)objs[i]; intList[i] = model.indexOf(contact); } if (intList.length > 0) { list.setSelectedIndices(intList); } fireContactItemAdded(item); }
|
public synchronized void addContactItem(ContactItem item) { if (model.getSize() == 1 && model.getElementAt(0) == noContacts) { model.remove(0); } if ("Offline Group".equals(groupName)) { item.getNicknameLabel().setFont(new Font("Dialog", Font.PLAIN, 11)); item.getNicknameLabel().setForeground(Color.GRAY); } item.setGroupName(getGroupName()); contactItems.add(item); Collections.sort(contactItems, itemComparator); Collections.sort(tempItems, itemComparator); int index = tempItems.indexOf(item); Object[] objs = list.getSelectedValues(); model.insertElementAt(item, index); int[] intList = new int[objs.length]; for (int i = 0; i < objs.length; i++) { ContactItem contact = (ContactItem)objs[i]; intList[i] = model.indexOf(contact); } if (intList.length > 0) { list.setSelectedIndices(intList); } fireContactItemAdded(item); }
| 3,228,961
|
public RubyClass getRuntimeError() { return runtimeError; }
|
public RubyClass getRuntimeError() { return runtimeError; }
| 3,228,962
|
public void openInternal(String newPath, IOModes newModes) { this.path = newPath; this.modes = newModes; try { handler = new IOHandlerSeekable(getRuntime(), newPath, newModes); registerIOHandler(handler); } catch (InvalidValueException e) { throw getRuntime().newErrnoEINVALError(); } catch (FileNotFoundException e) { throw getRuntime().newErrnoENOENTError(); } catch (IOException e) { throw getRuntime().newIOError(e.getMessage()); } }
|
public void openInternal(String newPath, IOModes newModes) { this.path = newPath; this.modes = newModes; try { handler = new IOHandlerSeekable(getRuntime(), newPath, newModes); registerIOHandler(handler); } catch (InvalidValueException e) { throw getRuntime().newErrnoEINVALError(); } catch (FileNotFoundException e) { throw getRuntime().newErrnoENOENTError(); } catch (IOException e) { throw getRuntime().newIOError(e.getMessage()); } }
| 3,228,963
|
public void openInternal(String newPath, IOModes newModes) { this.path = newPath; this.modes = newModes; try { handler = new IOHandlerSeekable(getRuntime(), newPath, newModes); registerIOHandler(handler); } catch (InvalidValueException e) { throw getRuntime().newErrnoEINVALError(); } catch (FileNotFoundException e) { throw getRuntime().newErrnoENOENTError(); } catch (IOException e) { throw getRuntime().newIOError(e.getMessage()); } }
|
public void openInternal(String newPath, IOModes newModes) { this.path = newPath; this.modes = newModes; try { if (newPath.equals("/dev/null")) { handler = new IOHandlerNull(getRuntime(), newModes); } else { handler = new IOHandlerSeekable(getRuntime(), newPath, newModes); } registerIOHandler(handler); } catch (InvalidValueException e) { throw getRuntime().newErrnoEINVALError(); } catch (FileNotFoundException e) { throw getRuntime().newErrnoENOENTError(); } catch (IOException e) { throw getRuntime().newIOError(e.getMessage()); } }
| 3,228,964
|
private void prepareArguments(IRuby runtime, Scope scope, IRubyObject receiver, IRubyObject[] args) { int expectedArgsCount = argsNode.getArgsCount(); if (expectedArgsCount > args.length) { throw runtime.newArgumentError("Wrong # of arguments(" + args.length + " for " + expectedArgsCount + ")"); } if (argsNode.getRestArg() == -1 && argsNode.getOptArgs() != null) { int opt = expectedArgsCount + argsNode.getOptArgs().size(); if (opt < args.length) { throw runtime.newArgumentError("wrong # of arguments(" + args.length + " for " + opt + ")"); } runtime.getCurrentContext().getCurrentFrame().setArgs(args); } if (scope.hasLocalVariables()) { if (expectedArgsCount > 0) { for (int i = 0; i < expectedArgsCount; i++) { scope.setValue(i + 2, args[i]); } } if (argsNode.getOptArgs() != null) { ListNode optArgs = argsNode.getOptArgs(); Iterator iter = optArgs.iterator(); for (int i = expectedArgsCount; i < args.length && iter.hasNext(); i++) { //new AssignmentVisitor(new EvaluationState(runtime, receiver)).assign((Node)iter.next(), args[i], true);// in-frame EvalState should already have receiver set as self, continue to use it new AssignmentVisitor(runtime.getCurrentContext().getCurrentFrame().getEvalState()).assign((Node)iter.next(), args[i], true);; expectedArgsCount++; } // assign the default values. while (iter.hasNext()) { //new EvaluationState(runtime, receiver).begin((Node)iter.next()); //EvaluateVisitor.getInstance().eval(receiver.getRuntime(), receiver, (Node)iter.next()); // in-frame EvalState should already have receiver set as self, continue to use it runtime.getCurrentContext().getCurrentFrame().getEvalState().begin((Node)iter.next()); } } if (argsNode.getRestArg() >= 0) { RubyArray array = runtime.newArray(args.length - expectedArgsCount); for (int i = expectedArgsCount; i < args.length; i++) { array.append(args[i]); } scope.setValue(argsNode.getRestArg(), array); } } }
|
private void prepareArguments(IRuby runtime, Scope scope, IRubyObject receiver, IRubyObject[] args) { int expectedArgsCount = argsNode.getArgsCount(); if (expectedArgsCount > args.length) { throw runtime.newArgumentError("Wrong # of arguments(" + args.length + " for " + expectedArgsCount + ")"); } if (argsNode.getRestArg() == -1 && argsNode.getOptArgs() != null) { int opt = expectedArgsCount + argsNode.getOptArgs().size(); if (opt < args.length) { throw runtime.newArgumentError("wrong # of arguments(" + args.length + " for " + opt + ")"); } } int count = expectedArgsCount; if (argsNode.getOptArgs() != null) { count += argsNode.getOptArgs().size(); } ArrayList allArgs = new ArrayList(); for (int i = 0; i < count && i < args.length; i++) { allArgs.add(args[i]); } if (scope.hasLocalVariables()) { if (expectedArgsCount > 0) { for (int i = 0; i < expectedArgsCount; i++) { scope.setValue(i + 2, args[i]); } } if (argsNode.getOptArgs() != null) { ListNode optArgs = argsNode.getOptArgs(); Iterator iter = optArgs.iterator(); for (int i = expectedArgsCount; i < args.length && iter.hasNext(); i++) { //new AssignmentVisitor(new EvaluationState(runtime, receiver)).assign((Node)iter.next(), args[i], true);// in-frame EvalState should already have receiver set as self, continue to use it new AssignmentVisitor(runtime.getCurrentContext().getCurrentFrame().getEvalState()).assign((Node)iter.next(), args[i], true);; expectedArgsCount++; } // assign the default values. while (iter.hasNext()) { //new EvaluationState(runtime, receiver).begin((Node)iter.next()); //EvaluateVisitor.getInstance().eval(receiver.getRuntime(), receiver, (Node)iter.next()); // in-frame EvalState should already have receiver set as self, continue to use it runtime.getCurrentContext().getCurrentFrame().getEvalState().begin((Node)iter.next()); } } if (argsNode.getRestArg() >= 0) { RubyArray array = runtime.newArray(args.length - expectedArgsCount); for (int i = expectedArgsCount; i < args.length; i++) { array.append(args[i]); } scope.setValue(argsNode.getRestArg(), array); } } }
| 3,228,965
|
private void prepareArguments(IRuby runtime, Scope scope, IRubyObject receiver, IRubyObject[] args) { int expectedArgsCount = argsNode.getArgsCount(); if (expectedArgsCount > args.length) { throw runtime.newArgumentError("Wrong # of arguments(" + args.length + " for " + expectedArgsCount + ")"); } if (argsNode.getRestArg() == -1 && argsNode.getOptArgs() != null) { int opt = expectedArgsCount + argsNode.getOptArgs().size(); if (opt < args.length) { throw runtime.newArgumentError("wrong # of arguments(" + args.length + " for " + opt + ")"); } runtime.getCurrentContext().getCurrentFrame().setArgs(args); } if (scope.hasLocalVariables()) { if (expectedArgsCount > 0) { for (int i = 0; i < expectedArgsCount; i++) { scope.setValue(i + 2, args[i]); } } if (argsNode.getOptArgs() != null) { ListNode optArgs = argsNode.getOptArgs(); Iterator iter = optArgs.iterator(); for (int i = expectedArgsCount; i < args.length && iter.hasNext(); i++) { //new AssignmentVisitor(new EvaluationState(runtime, receiver)).assign((Node)iter.next(), args[i], true);// in-frame EvalState should already have receiver set as self, continue to use it new AssignmentVisitor(runtime.getCurrentContext().getCurrentFrame().getEvalState()).assign((Node)iter.next(), args[i], true);; expectedArgsCount++; } // assign the default values. while (iter.hasNext()) { //new EvaluationState(runtime, receiver).begin((Node)iter.next()); //EvaluateVisitor.getInstance().eval(receiver.getRuntime(), receiver, (Node)iter.next()); // in-frame EvalState should already have receiver set as self, continue to use it runtime.getCurrentContext().getCurrentFrame().getEvalState().begin((Node)iter.next()); } } if (argsNode.getRestArg() >= 0) { RubyArray array = runtime.newArray(args.length - expectedArgsCount); for (int i = expectedArgsCount; i < args.length; i++) { array.append(args[i]); } scope.setValue(argsNode.getRestArg(), array); } } }
|
private void prepareArguments(IRuby runtime, Scope scope, IRubyObject receiver, IRubyObject[] args) { int expectedArgsCount = argsNode.getArgsCount(); if (expectedArgsCount > args.length) { throw runtime.newArgumentError("Wrong # of arguments(" + args.length + " for " + expectedArgsCount + ")"); } if (argsNode.getRestArg() == -1 && argsNode.getOptArgs() != null) { int opt = expectedArgsCount + argsNode.getOptArgs().size(); if (opt < args.length) { throw runtime.newArgumentError("wrong # of arguments(" + args.length + " for " + opt + ")"); } runtime.getCurrentContext().getCurrentFrame().setArgs(args); } if (scope.hasLocalVariables()) { if (expectedArgsCount > 0) { for (int i = 0; i < expectedArgsCount; i++) { scope.setValue(i + 2, args[i]); } } if (argsNode.getOptArgs() != null) { ListNode optArgs = argsNode.getOptArgs(); Iterator iter = optArgs.iterator(); for (int i = expectedArgsCount; i < args.length && iter.hasNext(); i++) { //new AssignmentVisitor(new EvaluationState(runtime, receiver)).assign((Node)iter.next(), args[i], true);// in-frame EvalState should already have receiver set as self, continue to use it new AssignmentVisitor(runtime.getCurrentContext().getCurrentFrame().getEvalState()).assign((Node)iter.next(), args[i], true); expectedArgsCount++; } // assign the default values. while (iter.hasNext()) { //new EvaluationState(runtime, receiver).begin((Node)iter.next()); //EvaluateVisitor.getInstance().eval(receiver.getRuntime(), receiver, (Node)iter.next()); // in-frame EvalState should already have receiver set as self, continue to use it runtime.getCurrentContext().getCurrentFrame().getEvalState().begin((Node)iter.next()); } } if (argsNode.getRestArg() >= 0) { RubyArray array = runtime.newArray(args.length - expectedArgsCount); for (int i = expectedArgsCount; i < args.length; i++) { array.append(args[i]); } scope.setValue(argsNode.getRestArg(), array); } } }
| 3,228,966
|
private void prepareArguments(IRuby runtime, Scope scope, IRubyObject receiver, IRubyObject[] args) { int expectedArgsCount = argsNode.getArgsCount(); if (expectedArgsCount > args.length) { throw runtime.newArgumentError("Wrong # of arguments(" + args.length + " for " + expectedArgsCount + ")"); } if (argsNode.getRestArg() == -1 && argsNode.getOptArgs() != null) { int opt = expectedArgsCount + argsNode.getOptArgs().size(); if (opt < args.length) { throw runtime.newArgumentError("wrong # of arguments(" + args.length + " for " + opt + ")"); } runtime.getCurrentContext().getCurrentFrame().setArgs(args); } if (scope.hasLocalVariables()) { if (expectedArgsCount > 0) { for (int i = 0; i < expectedArgsCount; i++) { scope.setValue(i + 2, args[i]); } } if (argsNode.getOptArgs() != null) { ListNode optArgs = argsNode.getOptArgs(); Iterator iter = optArgs.iterator(); for (int i = expectedArgsCount; i < args.length && iter.hasNext(); i++) { //new AssignmentVisitor(new EvaluationState(runtime, receiver)).assign((Node)iter.next(), args[i], true);// in-frame EvalState should already have receiver set as self, continue to use it new AssignmentVisitor(runtime.getCurrentContext().getCurrentFrame().getEvalState()).assign((Node)iter.next(), args[i], true);; expectedArgsCount++; } // assign the default values. while (iter.hasNext()) { //new EvaluationState(runtime, receiver).begin((Node)iter.next()); //EvaluateVisitor.getInstance().eval(receiver.getRuntime(), receiver, (Node)iter.next()); // in-frame EvalState should already have receiver set as self, continue to use it runtime.getCurrentContext().getCurrentFrame().getEvalState().begin((Node)iter.next()); } } if (argsNode.getRestArg() >= 0) { RubyArray array = runtime.newArray(args.length - expectedArgsCount); for (int i = expectedArgsCount; i < args.length; i++) { array.append(args[i]); } scope.setValue(argsNode.getRestArg(), array); } } }
|
private void prepareArguments(IRuby runtime, Scope scope, IRubyObject receiver, IRubyObject[] args) { int expectedArgsCount = argsNode.getArgsCount(); if (expectedArgsCount > args.length) { throw runtime.newArgumentError("Wrong # of arguments(" + args.length + " for " + expectedArgsCount + ")"); } if (argsNode.getRestArg() == -1 && argsNode.getOptArgs() != null) { int opt = expectedArgsCount + argsNode.getOptArgs().size(); if (opt < args.length) { throw runtime.newArgumentError("wrong # of arguments(" + args.length + " for " + opt + ")"); } runtime.getCurrentContext().getCurrentFrame().setArgs(args); } if (scope.hasLocalVariables()) { if (expectedArgsCount > 0) { for (int i = 0; i < expectedArgsCount; i++) { scope.setValue(i + 2, args[i]); } } if (argsNode.getOptArgs() != null) { ListNode optArgs = argsNode.getOptArgs(); Iterator iter = optArgs.iterator(); for (int i = expectedArgsCount; i < args.length && iter.hasNext(); i++) { //new AssignmentVisitor(new EvaluationState(runtime, receiver)).assign((Node)iter.next(), args[i], true);// in-frame EvalState should already have receiver set as self, continue to use it new AssignmentVisitor(runtime.getCurrentContext().getCurrentFrame().getEvalState()).assign((Node)iter.next(), args[i], true);; expectedArgsCount++; } // assign the default values. while (iter.hasNext()) { //new EvaluationState(runtime, receiver).begin((Node)iter.next()); //EvaluateVisitor.getInstance().eval(receiver.getRuntime(), receiver, (Node)iter.next()); // in-frame EvalState should already have receiver set as self, continue to use it runtime.getCurrentContext().getCurrentFrame().getEvalState().begin((Node)iter.next()); } } if (argsNode.getRestArg() >= 0) { RubyArray array = runtime.newArray(args.length - expectedArgsCount); for (int i = expectedArgsCount; i < args.length; i++) { array.append(args[i]); } scope.setValue(argsNode.getRestArg(), array); } } }
| 3,228,967
|
private void prepareArguments(IRuby runtime, Scope scope, IRubyObject receiver, IRubyObject[] args) { int expectedArgsCount = argsNode.getArgsCount(); if (expectedArgsCount > args.length) { throw runtime.newArgumentError("Wrong # of arguments(" + args.length + " for " + expectedArgsCount + ")"); } if (argsNode.getRestArg() == -1 && argsNode.getOptArgs() != null) { int opt = expectedArgsCount + argsNode.getOptArgs().size(); if (opt < args.length) { throw runtime.newArgumentError("wrong # of arguments(" + args.length + " for " + opt + ")"); } runtime.getCurrentContext().getCurrentFrame().setArgs(args); } if (scope.hasLocalVariables()) { if (expectedArgsCount > 0) { for (int i = 0; i < expectedArgsCount; i++) { scope.setValue(i + 2, args[i]); } } if (argsNode.getOptArgs() != null) { ListNode optArgs = argsNode.getOptArgs(); Iterator iter = optArgs.iterator(); for (int i = expectedArgsCount; i < args.length && iter.hasNext(); i++) { //new AssignmentVisitor(new EvaluationState(runtime, receiver)).assign((Node)iter.next(), args[i], true);// in-frame EvalState should already have receiver set as self, continue to use it new AssignmentVisitor(runtime.getCurrentContext().getCurrentFrame().getEvalState()).assign((Node)iter.next(), args[i], true);; expectedArgsCount++; } // assign the default values. while (iter.hasNext()) { //new EvaluationState(runtime, receiver).begin((Node)iter.next()); //EvaluateVisitor.getInstance().eval(receiver.getRuntime(), receiver, (Node)iter.next()); // in-frame EvalState should already have receiver set as self, continue to use it runtime.getCurrentContext().getCurrentFrame().getEvalState().begin((Node)iter.next()); } } if (argsNode.getRestArg() >= 0) { RubyArray array = runtime.newArray(args.length - expectedArgsCount); for (int i = expectedArgsCount; i < args.length; i++) { array.append(args[i]); } scope.setValue(argsNode.getRestArg(), array); } } }
|
private void prepareArguments(IRuby runtime, Scope scope, IRubyObject receiver, IRubyObject[] args) { int expectedArgsCount = argsNode.getArgsCount(); if (expectedArgsCount > args.length) { throw runtime.newArgumentError("Wrong # of arguments(" + args.length + " for " + expectedArgsCount + ")"); } if (argsNode.getRestArg() == -1 && argsNode.getOptArgs() != null) { int opt = expectedArgsCount + argsNode.getOptArgs().size(); if (opt < args.length) { throw runtime.newArgumentError("wrong # of arguments(" + args.length + " for " + opt + ")"); } runtime.getCurrentContext().getCurrentFrame().setArgs(args); } if (scope.hasLocalVariables()) { if (expectedArgsCount > 0) { for (int i = 0; i < expectedArgsCount; i++) { scope.setValue(i + 2, args[i]); } } if (argsNode.getOptArgs() != null) { ListNode optArgs = argsNode.getOptArgs(); Iterator iter = optArgs.iterator(); for (int i = expectedArgsCount; i < args.length && iter.hasNext(); i++) { //new AssignmentVisitor(new EvaluationState(runtime, receiver)).assign((Node)iter.next(), args[i], true);// in-frame EvalState should already have receiver set as self, continue to use it new AssignmentVisitor(runtime.getCurrentContext().getCurrentFrame().getEvalState()).assign((Node)iter.next(), args[i], true);; expectedArgsCount++; } // assign the default values. while (iter.hasNext()) { //new EvaluationState(runtime, receiver).begin((Node)iter.next()); //EvaluateVisitor.getInstance().eval(receiver.getRuntime(), receiver, (Node)iter.next()); // in-frame EvalState should already have receiver set as self, continue to use it allArgs.add(runtime.getCurrentContext().getCurrentFrame().getEvalState().begin((Node)iter.next())); } } if (argsNode.getRestArg() >= 0) { RubyArray array = runtime.newArray(args.length - expectedArgsCount); for (int i = expectedArgsCount; i < args.length; i++) { array.append(args[i]); } scope.setValue(argsNode.getRestArg(), array); } } }
| 3,228,968
|
public void checkArity(Ruby runtime, IRubyObject[] args) { if (isFixed()) { if (args.length != required()) { throw runtime.newArgumentError( "wrong # of arguments(" + args.length + " for " + required() + ")"); } } else { if (args.length < required()) { throw runtime.newArgumentError("wrong # of arguments(at least " + required() + ")"); } } }
|
public void checkArity(Ruby runtime, IRubyObject[] args) { if (isFixed()) { if (args.length != required()) { throw runtime.newArgumentError( "wrong # of arguments(" + args.length + " for " + required() + ")"); } } else { if (args.length < required()) { throw runtime.newArgumentError("wrong # of arguments(at least " + required() + ")"); } } }
| 3,228,970
|
public void checkArity(Ruby runtime, IRubyObject[] args) { if (isFixed()) { if (args.length != required()) { throw runtime.newArgumentError( "wrong # of arguments(" + args.length + " for " + required() + ")"); } } else { if (args.length < required()) { throw runtime.newArgumentError("wrong # of arguments(at least " + required() + ")"); } } }
|
public void checkArity(Ruby runtime, IRubyObject[] args) { if (isFixed()) { if (args.length != required()) { throw runtime.newArgumentError( "wrong # of arguments(" + args.length + " for " + required() + ")"); } } else { if (args.length < required()) { throw runtime.newArgumentError("wrong number of arguments(" + args.length + " for " + required() + ")"); } } }
| 3,228,971
|
public Iterator iterator() { return list == null ? Collections.EMPTY_LIST.iterator() : list.iterator(); }
|
public Iterator iterator() { return list == null ? Collections.EMPTY_LIST.iterator() : list.iterator(); }
| 3,228,972
|
public Collection getStatusList() { return dndList; }
|
public Collection getStatusList() { return statusList; }
| 3,228,973
|
private void populateDndList() { final ImageIcon availableIcon = SparkRes.getImageIcon(SparkRes.GREEN_BALL); final ImageIcon awayIcon = SparkRes.getImageIcon(SparkRes.IM_AWAY); final ImageIcon dndIcon = SparkRes.getImageIcon(SparkRes.IM_DND); final ImageIcon phoneIcon = SparkRes.getImageIcon(SparkRes.ON_PHONE_IMAGE); StatusItem online = new StatusItem(new Presence(Presence.Type.available, "Online", -1, Presence.Mode.available), availableIcon); StatusItem freeToChat = new StatusItem(new Presence(Presence.Type.available, "Free To Chat", -1, Presence.Mode.chat), SparkRes.getImageIcon(SparkRes.FREE_TO_CHAT_IMAGE)); StatusItem away = new StatusItem(new Presence(Presence.Type.available, "Away", -1, Presence.Mode.away), awayIcon); StatusItem phone = new StatusItem(new Presence(Presence.Type.available, "On Phone", -1, Presence.Mode.away), phoneIcon); StatusItem dnd = new StatusItem(new Presence(Presence.Type.available, "Do Not Disturb", -1, Presence.Mode.dnd), dndIcon); StatusItem extendedAway = new StatusItem(new Presence(Presence.Type.available, "Extended Away", -1, Presence.Mode.xa), awayIcon); dndList.add(freeToChat); dndList.add(online); dndList.add(away); dndList.add(phone); dndList.add(extendedAway); dndList.add(dnd); // Set default presence icon (Avaialble) statusPanel.setIcon(availableIcon); }
|
private void populateDndList() { final ImageIcon availableIcon = SparkRes.getImageIcon(SparkRes.GREEN_BALL); final ImageIcon awayIcon = SparkRes.getImageIcon(SparkRes.IM_AWAY); final ImageIcon dndIcon = SparkRes.getImageIcon(SparkRes.IM_DND); final ImageIcon phoneIcon = SparkRes.getImageIcon(SparkRes.ON_PHONE_IMAGE); StatusItem online = new StatusItem(new Presence(Presence.Type.available, "Online", -1, Presence.Mode.available), availableIcon); StatusItem freeToChat = new StatusItem(new Presence(Presence.Type.available, "Free To Chat", -1, Presence.Mode.chat), SparkRes.getImageIcon(SparkRes.FREE_TO_CHAT_IMAGE)); StatusItem away = new StatusItem(new Presence(Presence.Type.available, "Away", -1, Presence.Mode.away), awayIcon); StatusItem phone = new StatusItem(new Presence(Presence.Type.available, "On Phone", -1, Presence.Mode.away), phoneIcon); StatusItem dnd = new StatusItem(new Presence(Presence.Type.available, "Do Not Disturb", -1, Presence.Mode.dnd), dndIcon); StatusItem extendedAway = new StatusItem(new Presence(Presence.Type.available, "Extended Away", -1, Presence.Mode.xa), awayIcon); dndList.add(freeToChat); dndList.add(online); dndList.add(away); dndList.add(phone); dndList.add(extendedAway); dndList.add(dnd); // Set default presence icon (Avaialble) statusPanel.setIcon(availableIcon); }
| 3,228,974
|
public void showPopup(MouseEvent e) { final JPopupMenu popup = new JPopupMenu(); List custom = CustomMessages.load(); if (custom == null) { custom = new ArrayList(); } // Build menu from dndList Iterator statusIterator = dndList.iterator(); while (statusIterator.hasNext()) { final StatusItem statusItem = (StatusItem)statusIterator.next(); final Action statusAction = new AbstractAction() { public void actionPerformed(ActionEvent actionEvent) { final String text = statusItem.getText(); final StatusItem si = getStatusItem(text); if (si == null) { // Custom status return; } SwingWorker worker = new SwingWorker() { public Object construct() { SparkManager.getSessionManager().changePresence(si.getPresence()); return "ok"; } public void finished() { setStatus(text); } }; worker.start(); } }; statusAction.putValue(Action.NAME, statusItem.getText()); statusAction.putValue(Action.SMALL_ICON, statusItem.getIcon()); // Has Children boolean hasChildren = false; Iterator customItemIterator = custom.iterator(); while (customItemIterator.hasNext()) { final CustomStatusItem cItem = (CustomStatusItem)customItemIterator.next(); String type = cItem.getType(); if (type.equals(statusItem.getText())) { hasChildren = true; } } if (!hasChildren) { // Add as Menu Item popup.add(statusAction); } else { final JMenu mainStatusItem = new JMenu(statusAction); popup.add(mainStatusItem); // Add Custom Messages customItemIterator = custom.iterator(); while (customItemIterator.hasNext()) { final CustomStatusItem customItem = (CustomStatusItem)customItemIterator.next(); String type = customItem.getType(); if (type.equals(statusItem.getText())) { // Add Child Menu Action action = new AbstractAction() { public void actionPerformed(ActionEvent actionEvent) { final String text = mainStatusItem.getText(); final StatusItem si = getStatusItem(text); if (si == null) { // Custom status return; } SwingWorker worker = new SwingWorker() { public Object construct() { Presence oldPresence = si.getPresence(); Presence presence = copyPresence(oldPresence); presence.setStatus(customItem.getStatus()); presence.setPriority(customItem.getPriority()); SparkManager.getSessionManager().changePresence(presence); return "ok"; } public void finished() { String status = customItem.getType() + " - " + customItem.getStatus(); setStatus(status); } }; worker.start(); } }; action.putValue(Action.NAME, customItem.getStatus()); action.putValue(Action.SMALL_ICON, statusItem.getIcon()); mainStatusItem.add(action); } } // If menu has children, allow it to still be clickable. mainStatusItem.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent mouseEvent) { statusAction.actionPerformed(null); popup.setVisible(false); } }); } } // Add change message final JMenuItem changeStatusMenu = new JMenuItem(Res.getString("menuitem.set.status.message"), SparkRes.getImageIcon(SparkRes.BLANK_IMAGE)); popup.addSeparator(); popup.add(changeStatusMenu); changeStatusMenu.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { CustomMessages.addCustomMessage(); } }); Action editMessagesAction = new AbstractAction() { public void actionPerformed(ActionEvent actionEvent) { CustomMessages.editCustomMessages(); } }; editMessagesAction.putValue(Action.NAME, Res.getString("menuitem.edit.status.message")); popup.add(editMessagesAction); popup.show(statusPanel, 0, statusPanel.getHeight()); }
|
public void showPopup(MouseEvent e) { final JPopupMenu popup = new JPopupMenu(); List custom = CustomMessages.load(); if (custom == null) { custom = new ArrayList(); } // Build menu from dndList Iterator statusIterator = dndList.iterator(); while (statusIterator.hasNext()) { final StatusItem statusItem = (StatusItem)statusIterator.next(); final Action statusAction = new AbstractAction() { public void actionPerformed(ActionEvent actionEvent) { final String text = statusItem.getText(); final StatusItem si = getStatusItem(text); if (si == null) { // Custom status return; } SwingWorker worker = new SwingWorker() { public Object construct() { SparkManager.getSessionManager().changePresence(si.getPresence()); return "ok"; } public void finished() { setStatus(text); } }; worker.start(); } }; statusAction.putValue(Action.NAME, statusItem.getText()); statusAction.putValue(Action.SMALL_ICON, statusItem.getIcon()); // Has Children boolean hasChildren = false; Iterator customItemIterator = custom.iterator(); while (customItemIterator.hasNext()) { final CustomStatusItem cItem = (CustomStatusItem)customItemIterator.next(); String type = cItem.getType(); if (type.equals(statusItem.getText())) { hasChildren = true; } } if (!hasChildren) { // Add as Menu Item popup.add(statusAction); } else { final JMenu mainStatusItem = new JMenu(statusAction); popup.add(mainStatusItem); // Add Custom Messages customItemIterator = custom.iterator(); while (customItemIterator.hasNext()) { final CustomStatusItem customItem = (CustomStatusItem)customItemIterator.next(); String type = customItem.getType(); if (type.equals(statusItem.getText())) { // Add Child Menu Action action = new AbstractAction() { public void actionPerformed(ActionEvent actionEvent) { final String text = mainStatusItem.getText(); final StatusItem si = getStatusItem(text); if (si == null) { // Custom status return; } SwingWorker worker = new SwingWorker() { public Object construct() { Presence oldPresence = si.getPresence(); Presence presence = copyPresence(oldPresence); presence.setStatus(customItem.getStatus()); presence.setPriority(customItem.getPriority()); SparkManager.getSessionManager().changePresence(presence); return "ok"; } public void finished() { String status = customItem.getType() + " - " + customItem.getStatus(); setStatus(status); } }; worker.start(); } }; action.putValue(Action.NAME, customItem.getStatus()); action.putValue(Action.SMALL_ICON, statusItem.getIcon()); mainStatusItem.add(action); } } // If menu has children, allow it to still be clickable. mainStatusItem.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent mouseEvent) { statusAction.actionPerformed(null); popup.setVisible(false); } }); } } // Add change message final JMenuItem changeStatusMenu = new JMenuItem(Res.getString("menuitem.set.status.message"), SparkRes.getImageIcon(SparkRes.BLANK_IMAGE)); popup.addSeparator(); popup.add(changeStatusMenu); changeStatusMenu.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { CustomMessages.addCustomMessage(); } }); Action editMessagesAction = new AbstractAction() { public void actionPerformed(ActionEvent actionEvent) { CustomMessages.editCustomMessages(); } }; editMessagesAction.putValue(Action.NAME, Res.getString("menuitem.edit.status.message")); popup.add(editMessagesAction); popup.show(statusPanel, 0, statusPanel.getHeight()); }
| 3,228,975
|
CategoryEditorManager(CategoryEditor view, DataManagerCtrl agentCtrl, CategoryData model) { this.view = view; this.agentCtrl = agentCtrl; this.model = model; nameChange = false; isName = false; imagesToRemove = new ArrayList(); imagesToAdd = new ArrayList(); imagesToAddToRemove = new ArrayList(); }
|
CategoryEditorManager(CategoryEditor view, DataManagerCtrl agentCtrl, CategoryData model) { this.view = view; this.agentCtrl = agentCtrl; this.model = model; nameChange = false; isName = false; imagesToRemove = new ArrayList(); imagesToAdd = new ArrayList(); imagesToAddToRemove = new ArrayList(); }
| 3,228,977
|
void initListeners() { //buttons attachButtonListener(view.getViewButton(), VIEW); attachButtonListener(view.getSaveButton(), SAVE); attachButtonListener(view.getAddButton(), ADD); attachButtonListener(view.getRemoveButton(), REMOVE); attachButtonListener(view.getResetButton(), RESET); attachButtonListener(view.getRemoveToAddButton(), REMOVE_ADDED); attachButtonListener(view.getResetToAddButton(), RESET_ADDED); //textfields JTextArea nameField = view.getNameField(); nameField.getDocument().addDocumentListener(this); nameField.addMouseListener(this); JTextArea descriptionArea = view.getDescriptionArea(); descriptionArea.getDocument().addDocumentListener(this); }
|
void initListeners() { //buttons attachButtonListener(view.getViewButton(), VIEW); attachButtonListener(view.getSaveButton(), SAVE); attachButtonListener(view.getAddButton(), ADD); attachButtonListener(view.getRemoveButton(), REMOVE); attachButtonListener(view.getResetButton(), RESET); attachButtonListener(view.getRemoveToAddButton(), REMOVE_ADDED); attachButtonListener(view.getResetToAddButton(), RESET_ADDED); //textfields JTextArea nameField = view.getNameField(); nameField.getDocument().addDocumentListener(this); nameField.addMouseListener(this); JTextArea descriptionArea = view.getDescriptionArea(); descriptionArea.getDocument().addDocumentListener(this); }
| 3,228,978
|
public void insertUpdate(DocumentEvent e) { view.getSaveButton().setEnabled(isName); }
|
public void insertUpdate(DocumentEvent e) { view.getSaveButton().setEnabled(isName); }
| 3,228,979
|
public void removeUpdate(DocumentEvent e) { view.getSaveButton().setEnabled(isName); }
|
public void removeUpdate(DocumentEvent e) { view.getSaveButton().setEnabled(isName); }
| 3,228,980
|
private List sort(List nodes, final boolean ascending) { Comparator c; switch (sortType) { case Browser.SORT_NODES_BY_DATE: c = new Comparator() { public int compare(Object o1, Object o2) { ImageData i1 = (ImageData) (((TreeImageDisplay) o1).getUserObject()); ImageData i2 = (ImageData) (((TreeImageDisplay) o2).getUserObject()); Timestamp t1 = i1.getInserted(); Timestamp t2 = i2.getInserted(); if (t1 == null) t1 = TreeViewerTranslator.getDefaultTimestamp(); if (t2 == null) t2 = TreeViewerTranslator.getDefaultTimestamp(); int r = t1.compareTo(t2); int v = 0; if (r < 0) v = -1; else if (r > 0) v = 1; if (ascending) return v; return -v; } }; break; case Browser.SORT_NODES_BY_NAME: default: c = new Comparator() { public int compare(Object o1, Object o2) { String s1 = o1.toString().toLowerCase(); String s2 = o2.toString().toLowerCase(); int result = s1.compareTo(s2); int v = 0; if (result < 0) v = -1; else if (result > 0) v = 1; if (ascending) return v; return -v; } }; } Collections.sort(nodes, c); return nodes; }
|
private List sort(List nodes, final boolean ascending) { Comparator c; switch (sortType) { case Browser.SORT_NODES_BY_DATE: c = new Comparator() { public int compare(Object o1, Object o2) { ImageData i1 = (ImageData) (((TreeImageDisplay) o1).getUserObject()); ImageData i2 = (ImageData) (((TreeImageDisplay) o2).getUserObject()); Timestamp t1 = i1.getInserted(); Timestamp t2 = i2.getInserted(); if (t1 == null) t1 = TreeViewerTranslator.getDefaultTimestamp(); if (t2 == null) t2 = TreeViewerTranslator.getDefaultTimestamp(); int r = t1.compareTo(t2); int v = 0; if (r < 0) v = -1; else if (r > 0) v = 1; if (ascending) return v; return -v; } }; break; case Browser.SORT_NODES_BY_NAME: default: c = new Comparator() { public int compare(Object o1, Object o2) { String s1 = o1.toString().toLowerCase(); String s2 = o2.toString().toLowerCase(); int result = s1.compareTo(s2); int v = 0; if (result < 0) v = -1; else if (result > 0) v = 1; if (ascending) return v; return -v; } }; } Collections.sort(nodes, c); return nodes; }
| 3,228,981
|
public int compare(Object o1, Object o2) { ImageData i1 = (ImageData) (((TreeImageDisplay) o1).getUserObject()); ImageData i2 = (ImageData) (((TreeImageDisplay) o2).getUserObject()); Timestamp t1 = i1.getInserted(); Timestamp t2 = i2.getInserted(); if (t1 == null) t1 = TreeViewerTranslator.getDefaultTimestamp(); if (t2 == null) t2 = TreeViewerTranslator.getDefaultTimestamp(); int r = t1.compareTo(t2); int v = 0; if (r < 0) v = -1; else if (r > 0) v = 1; if (ascending) return v; return -v; }
|
public int compare(Object o1, Object o2) { ImageData i1 = (ImageData) (((TreeImageDisplay) o1).getUserObject()); ImageData i2 = (ImageData) (((TreeImageDisplay) o2).getUserObject()); Timestamp t1 = i1.getInserted(); Timestamp t2 = i2.getInserted(); if (t1 == null) t1 = TreeViewerTranslator.getDefaultTimestamp(); if (t2 == null) t2 = TreeViewerTranslator.getDefaultTimestamp(); int r = t1.compareTo(t2); int v = 0; if (r < 0) v = -1; else if (r > 0) v = 1; if (ascending) return v; return -v; }
| 3,228,982
|
public static boolean isCompatible(RubyObject arg, Class javaClass) { if (arg.isNil()) { return true; } if (javaClass == Boolean.TYPE || javaClass == Boolean.class) { return arg instanceof RubyBoolean; } if (javaClass == Integer.TYPE || javaClass == Integer.class || javaClass == Long.TYPE || javaClass == Long.class) { return arg instanceof RubyFixnum; } if (javaClass == Float.TYPE || javaClass == Float.class || javaClass == Double.TYPE || javaClass == Double.class) { return arg instanceof RubyFloat; } if (javaClass == String.class) { return arg instanceof RubyString; } return javaClass.isAssignableFrom(((RubyJavaObject)arg).getValue().getClass()); }
|
public static boolean isCompatible(RubyObject arg, Class javaClass) { if (arg.isNil()) { return true; } if (javaClass == Boolean.TYPE || javaClass == Boolean.class) { return arg instanceof RubyBoolean; } if (javaClass == Integer.TYPE || javaClass == Integer.class || javaClass == Long.TYPE || javaClass == Long.class) { return arg instanceof RubyFixnum; } if (javaClass == Float.TYPE || javaClass == Float.class || javaClass == Double.TYPE || javaClass == Double.class) { return arg instanceof RubyFloat; } if (javaClass == String.class) { return arg instanceof RubyString; } return javaClass.isAssignableFrom(((RubyJavaObject)arg).getValue().getClass()); }
| 3,228,985
|
public static boolean isCompatible(RubyObject arg, Class javaClass) { if (arg.isNil()) { return true; } if (javaClass == Boolean.TYPE || javaClass == Boolean.class) { return arg instanceof RubyBoolean; } if (javaClass == Integer.TYPE || javaClass == Integer.class || javaClass == Long.TYPE || javaClass == Long.class) { return arg instanceof RubyFixnum; } if (javaClass == Float.TYPE || javaClass == Float.class || javaClass == Double.TYPE || javaClass == Double.class) { return arg instanceof RubyFloat; } if (javaClass == String.class) { return arg instanceof RubyString; } return javaClass.isAssignableFrom(((RubyJavaObject)arg).getValue().getClass()); }
|
public static boolean isCompatible(RubyObject arg, Class javaClass) { if (arg.isNil()) { return true; } if (javaClass == Boolean.TYPE || javaClass == Boolean.class) { return arg instanceof RubyBoolean; } if (javaClass == Integer.TYPE || javaClass == Integer.class || javaClass == Long.TYPE || javaClass == Long.class) { return arg instanceof RubyFixnum; } if (javaClass == Float.TYPE || javaClass == Float.class || javaClass == Double.TYPE || javaClass == Double.class) { return arg instanceof RubyFloat; } if (javaClass == String.class) { return arg instanceof RubyString; } return javaClass.isAssignableFrom(((RubyJavaObject)arg).getValue().getClass()); }
| 3,228,986
|
public static boolean isCompatible(RubyObject arg, Class javaClass) { if (arg.isNil()) { return true; } if (javaClass == Boolean.TYPE || javaClass == Boolean.class) { return arg instanceof RubyBoolean; } if (javaClass == Integer.TYPE || javaClass == Integer.class || javaClass == Long.TYPE || javaClass == Long.class) { return arg instanceof RubyFixnum; } if (javaClass == Float.TYPE || javaClass == Float.class || javaClass == Double.TYPE || javaClass == Double.class) { return arg instanceof RubyFloat; } if (javaClass == String.class) { return arg instanceof RubyString; } return javaClass.isAssignableFrom(((RubyJavaObject)arg).getValue().getClass()); }
|
public static boolean isCompatible(RubyObject arg, Class javaClass) { if (arg.isNil()) { return true; } if (javaClass == Boolean.TYPE || javaClass == Boolean.class) { return arg instanceof RubyBoolean; } if (javaClass == Integer.TYPE || javaClass == Integer.class || javaClass == Long.TYPE || javaClass == Long.class) { return arg instanceof RubyFixnum; } if (javaClass == Float.TYPE || javaClass == Float.class || javaClass == Double.TYPE || javaClass == Double.class) { return arg instanceof RubyFloat; } if (javaClass == String.class) { return arg instanceof RubyString; } return javaClass.isAssignableFrom(((RubyJavaObject)arg).getValue().getClass()); }
| 3,228,987
|
public void messageReceived(final ChatRoom room, final Message message) { if (!SparkManager.getMainWindow().isFocused()) { SwingUtilities.invokeLater(new Runnable() { public void run() { try { String name = SparkManager.getUserManager().getUserNicknameFromJID(message.getFrom()); // Since it looks the method can return null do this in case if (name == null) { name = StringUtils.parseName(message.getFrom()); } VCard vCard = null; try { vCard = SparkManager.getVCardManager().getVCard( StringUtils.parseBareAddress(message.getFrom())); } catch (Exception e) { // vcard can time out so ignore } NSImage image = null; if (vCard != null) { byte[] bytes = vCard.getAvatar(); if (bytes != null) { try { NSData data = new NSData(bytes); image = new NSImage(data); } catch (Exception e) { // just incase there is an error i didn't intend } } } if (image == null) { image = getImage("/images/message-32x32.png"); } growl.notifyGrowlOf("Message Received", image, name, message.getBody(), null); } catch (Exception e) { Logger.logError(e.getMessage(), e); } } }); } }
|
public void messageReceived(final ChatRoom room, final Message message) { if (!SparkManager.getMainWindow().isFocused()) { SwingUtilities.invokeLater(new Runnable() { public void run() { try { String name = SparkManager.getUserManager().getUserNicknameFromJID(message.getFrom()); // Since it looks the method can return null do this in case if (name == null) { name = StringUtils.parseName(message.getFrom()); } VCard vCard = null; try { vCard = SparkManager.getVCardManager().getVCard( StringUtils.parseBareAddress(message.getFrom())); } catch (Exception e) { // vcard can time out so ignore } NSImage image = null; if (vCard != null) { byte[] bytes = vCard.getAvatar(); if (bytes != null) { try { NSData data = new NSData(bytes); image = new NSImage(data); } catch (Exception e) { // just incase there is an error i didn't intend } } } if (image == null) { image = getImage("/images/message-32x32.png"); } growl.notifyGrowlOf("Message Received", image, name, message.getBody(), null); } catch (Exception e) { Log.error(e.getMessage(), e); } } }); } }
| 3,228,988
|
public void run() { try { String name = SparkManager.getUserManager().getUserNicknameFromJID(message.getFrom()); // Since it looks the method can return null do this in case if (name == null) { name = StringUtils.parseName(message.getFrom()); } VCard vCard = null; try { vCard = SparkManager.getVCardManager().getVCard( StringUtils.parseBareAddress(message.getFrom())); } catch (Exception e) { // vcard can time out so ignore } NSImage image = null; if (vCard != null) { byte[] bytes = vCard.getAvatar(); if (bytes != null) { try { NSData data = new NSData(bytes); image = new NSImage(data); } catch (Exception e) { // just incase there is an error i didn't intend } } } if (image == null) { image = getImage("/images/message-32x32.png"); } growl.notifyGrowlOf("Message Received", image, name, message.getBody(), null); } catch (Exception e) { Logger.logError(e.getMessage(), e); } }
|
public void run() { try { String name = SparkManager.getUserManager().getUserNicknameFromJID(message.getFrom()); // Since it looks the method can return null do this in case if (name == null) { name = StringUtils.parseName(message.getFrom()); } VCard vCard = null; try { vCard = SparkManager.getVCardManager().getVCard( StringUtils.parseBareAddress(message.getFrom())); } catch (Exception e) { // vcard can time out so ignore } NSImage image = null; if (vCard != null) { byte[] bytes = vCard.getAvatar(); if (bytes != null) { try { NSData data = new NSData(bytes); image = new NSImage(data); } catch (Exception e) { // just incase there is an error i didn't intend } } } if (image == null) { image = getImage("/images/message-32x32.png"); } growl.notifyGrowlOf("Message Received", image, name, message.getBody(), null); } catch (Exception e) { Log.error(e.getMessage(), e); } }
| 3,228,989
|
void findPuck() { float h = (control.getHue()*360.0f); float s = (control.getSaturation()); double x = s*Math.cos(Math.toRadians(h)); double y = s*Math.sin(Math.toRadians(h)); if (h != 0 && s != 0) { puck.x1 = x*radius+radius; puck.x2 = y*radius+radius; } else { puck.x1 = radius; puck.x2 = radius; } }
|
void findPuck() { float h = (control.getHue()*360.0f); float s = (control.getSaturation()); double x = s*Math.cos(Math.toRadians(h)); double y = s*Math.sin(Math.toRadians(h)); if (h != 0 && s != 0) { puck.x1 = x*radius+radius; puck.x2 = y*radius+radius; } else { puck.x1 = radius; puck.x2 = radius; } }
| 3,228,990
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.