bugged
stringlengths 6
599k
| fixed
stringlengths 6
40.8M
| __index_level_0__
int64 0
3.24M
|
---|---|---|
final protected void execute(Template tmpl, WebContext c) { Writer out = null; boolean timing = Flags.PROFILE && c.isTiming(); try { if (timing) c.startTiming("Template.write", tmpl); FastWriter fw; try { HttpServletResponse resp= c.getResponse(); fw = FastWriter.getInstance( resp.getOutputStream(), resp.getCharacterEncoding()); tmpl.write(fw, c); } finally { if (timing) c.stopTiming(); } if (timing) c.startTiming("FastWriter.close()"); try { fw.close(); } finally { if (timing) c.stopTiming(); } } catch (IOException e) { // ignore disconnect } catch (Exception e) { String error = "WebMacro encountered an error while executing a template:\n" + ((tmpl != null) ? (tmpl + ": " + e + "\n") : ("The template failed to load; double check the " + "TemplatePath in your webmacro.properties file.")); _log.warning(error,e); try { out.write(error); } catch (Exception ignore) { } } finally { try { if (out != null) { out.flush(); out.close(); } } catch (Exception e3) { // ignore disconnect } } }
|
final protected void execute(Template tmpl, WebContext c) { Writer out = null; boolean timing = Flags.PROFILE && c.isTiming(); try { if (timing) c.startTiming("Template.write", tmpl); try { HttpServletResponse resp= c.getResponse(); fw = FastWriter.getInstance( resp.getOutputStream(), resp.getCharacterEncoding()); tmpl.write(fw, c); } finally { if (timing) c.stopTiming(); } if (timing) c.startTiming("FastWriter.close()"); try { fw.close(); } finally { if (timing) c.stopTiming(); } } catch (IOException e) { // ignore disconnect } catch (Exception e) { String error = "WebMacro encountered an error while executing a template:\n" + ((tmpl != null) ? (tmpl + ": " + e + "\n") : ("The template failed to load; double check the " + "TemplatePath in your webmacro.properties file.")); _log.warning(error,e); try { out.write(error); } catch (Exception ignore) { } } finally { try { if (out != null) { out.flush(); out.close(); } } catch (Exception e3) { // ignore disconnect } } }
| 3,238,116 |
final protected void execute(Template tmpl, WebContext c) { Writer out = null; boolean timing = Flags.PROFILE && c.isTiming(); try { if (timing) c.startTiming("Template.write", tmpl); FastWriter fw; try { HttpServletResponse resp= c.getResponse(); fw = FastWriter.getInstance( resp.getOutputStream(), resp.getCharacterEncoding()); tmpl.write(fw, c); } finally { if (timing) c.stopTiming(); } if (timing) c.startTiming("FastWriter.close()"); try { fw.close(); } finally { if (timing) c.stopTiming(); } } catch (IOException e) { // ignore disconnect } catch (Exception e) { String error = "WebMacro encountered an error while executing a template:\n" + ((tmpl != null) ? (tmpl + ": " + e + "\n") : ("The template failed to load; double check the " + "TemplatePath in your webmacro.properties file.")); _log.warning(error,e); try { out.write(error); } catch (Exception ignore) { } } finally { try { if (out != null) { out.flush(); out.close(); } } catch (Exception e3) { // ignore disconnect } } }
|
final protected void execute(Template tmpl, WebContext c) { Writer out = null; boolean timing = Flags.PROFILE && c.isTiming(); try { if (timing) c.startTiming("Template.write", tmpl); FastWriter fw; try { HttpServletResponse resp= c.getResponse(); Locale locale = (Locale) tmpl.getParam( WMConstants.TEMPLATE_LOCALE); _log.debug("TemplateLocale="+locale); if (locale != null) { setLocale(resp, locale); } String encoding = (String) tmpl.getParam( WMConstants.TEMPLATE_OUTPUT_ENCODING); if (encoding==null) { encoding = resp.getCharacterEncoding(); } _log.debug("Using output encoding "+encoding); fw = FastWriter.getInstance( resp.getOutputStream(), resp.getCharacterEncoding()); tmpl.write(fw, c); } finally { if (timing) c.stopTiming(); } if (timing) c.startTiming("FastWriter.close()"); try { fw.close(); } finally { if (timing) c.stopTiming(); } } catch (IOException e) { // ignore disconnect } catch (Exception e) { String error = "WebMacro encountered an error while executing a template:\n" + ((tmpl != null) ? (tmpl + ": " + e + "\n") : ("The template failed to load; double check the " + "TemplatePath in your webmacro.properties file.")); _log.warning(error,e); try { out.write(error); } catch (Exception ignore) { } } finally { try { if (out != null) { out.flush(); out.close(); } } catch (Exception e3) { // ignore disconnect } } }
| 3,238,117 |
final protected void execute(Template tmpl, WebContext c) { Writer out = null; boolean timing = Flags.PROFILE && c.isTiming(); try { if (timing) c.startTiming("Template.write", tmpl); FastWriter fw; try { HttpServletResponse resp= c.getResponse(); fw = FastWriter.getInstance( resp.getOutputStream(), resp.getCharacterEncoding()); tmpl.write(fw, c); } finally { if (timing) c.stopTiming(); } if (timing) c.startTiming("FastWriter.close()"); try { fw.close(); } finally { if (timing) c.stopTiming(); } } catch (IOException e) { // ignore disconnect } catch (Exception e) { String error = "WebMacro encountered an error while executing a template:\n" + ((tmpl != null) ? (tmpl + ": " + e + "\n") : ("The template failed to load; double check the " + "TemplatePath in your webmacro.properties file.")); _log.warning(error,e); try { out.write(error); } catch (Exception ignore) { } } finally { try { if (out != null) { out.flush(); out.close(); } } catch (Exception e3) { // ignore disconnect } } }
|
final protected void execute(Template tmpl, WebContext c) { Writer out = null; boolean timing = Flags.PROFILE && c.isTiming(); try { if (timing) c.startTiming("Template.write", tmpl); FastWriter fw; try { HttpServletResponse resp= c.getResponse(); fw = FastWriter.getInstance( resp.getOutputStream(), encoding); tmpl.write(fw, c); } finally { if (timing) c.stopTiming(); } if (timing) c.startTiming("FastWriter.close()"); try { fw.close(); } finally { if (timing) c.stopTiming(); } } catch (IOException e) { // ignore disconnect } catch (Exception e) { String error = "WebMacro encountered an error while executing a template:\n" + ((tmpl != null) ? (tmpl + ": " + e + "\n") : ("The template failed to load; double check the " + "TemplatePath in your webmacro.properties file.")); _log.warning(error,e); try { out.write(error); } catch (Exception ignore) { } } finally { try { if (out != null) { out.flush(); out.close(); } } catch (Exception e3) { // ignore disconnect } } }
| 3,238,118 |
final protected void execute(Template tmpl, WebContext c) { Writer out = null; boolean timing = Flags.PROFILE && c.isTiming(); try { if (timing) c.startTiming("Template.write", tmpl); FastWriter fw; try { HttpServletResponse resp= c.getResponse(); fw = FastWriter.getInstance( resp.getOutputStream(), resp.getCharacterEncoding()); tmpl.write(fw, c); } finally { if (timing) c.stopTiming(); } if (timing) c.startTiming("FastWriter.close()"); try { fw.close(); } finally { if (timing) c.stopTiming(); } } catch (IOException e) { // ignore disconnect } catch (Exception e) { String error = "WebMacro encountered an error while executing a template:\n" + ((tmpl != null) ? (tmpl + ": " + e + "\n") : ("The template failed to load; double check the " + "TemplatePath in your webmacro.properties file.")); _log.warning(error,e); try { out.write(error); } catch (Exception ignore) { } } finally { try { if (out != null) { out.flush(); out.close(); } } catch (Exception e3) { // ignore disconnect } } }
|
final protected void execute(Template tmpl, WebContext c) { Writer out = null; boolean timing = Flags.PROFILE && c.isTiming(); try { if (timing) c.startTiming("Template.write", tmpl); FastWriter fw; try { HttpServletResponse resp= c.getResponse(); fw = FastWriter.getInstance( resp.getOutputStream(), resp.getCharacterEncoding()); tmpl.write(fw, c); } finally { if (timing) c.stopTiming(); } if (timing) c.startTiming("FastWriter.close()"); try { fw.close(); } finally { if (timing) c.stopTiming(); } } catch (IOException e) { // ignore disconnect } catch (Exception e) { String error = "WebMacro encountered an error while executing a template:\n" + ((tmpl != null) ? (tmpl + ": " + e + "\n") : ("The template failed to load; double check the " + "TemplatePath in your webmacro.properties file.")); _log.warning(error,e); try { fw.write(error); } catch (Exception ignore) { } } finally { try { if (out != null) { out.flush(); out.close(); } } catch (Exception e3) { // ignore disconnect } } }
| 3,238,119 |
final protected void execute(Template tmpl, WebContext c) { Writer out = null; boolean timing = Flags.PROFILE && c.isTiming(); try { if (timing) c.startTiming("Template.write", tmpl); FastWriter fw; try { HttpServletResponse resp= c.getResponse(); fw = FastWriter.getInstance( resp.getOutputStream(), resp.getCharacterEncoding()); tmpl.write(fw, c); } finally { if (timing) c.stopTiming(); } if (timing) c.startTiming("FastWriter.close()"); try { fw.close(); } finally { if (timing) c.stopTiming(); } } catch (IOException e) { // ignore disconnect } catch (Exception e) { String error = "WebMacro encountered an error while executing a template:\n" + ((tmpl != null) ? (tmpl + ": " + e + "\n") : ("The template failed to load; double check the " + "TemplatePath in your webmacro.properties file.")); _log.warning(error,e); try { out.write(error); } catch (Exception ignore) { } } finally { try { if (out != null) { out.flush(); out.close(); } } catch (Exception e3) { // ignore disconnect } } }
|
final protected void execute(Template tmpl, WebContext c) { Writer out = null; boolean timing = Flags.PROFILE && c.isTiming(); try { if (timing) c.startTiming("Template.write", tmpl); FastWriter fw; try { HttpServletResponse resp= c.getResponse(); fw = FastWriter.getInstance( resp.getOutputStream(), resp.getCharacterEncoding()); tmpl.write(fw, c); } finally { if (timing) c.stopTiming(); } if (timing) c.startTiming("FastWriter.close()"); try { fw.close(); } finally { if (timing) c.stopTiming(); } } catch (IOException e) { // ignore disconnect } catch (Exception e) { String error = "WebMacro encountered an error while executing a template:\n" + ((tmpl != null) ? (tmpl + ": " + e + "\n") : ("The template failed to load; double check the " + "TemplatePath in your webmacro.properties file.")); _log.warning(error,e); try { out.write(error); } catch (Exception ignore) { } } finally { try { if (out != null) { out.flush(); out.close(); } } catch (Exception e3) { // ignore disconnect } } }
| 3,238,120 |
public Node cond(Node node) { return cond1(node, 0); }
|
public Node cond(Node node) { if (node == null) { return null; } if (node.getType() == Constants.NODE_NEWLINE) { node.setNextNode(cond0(node.getNextNode()/*, logop*/)); return node; } return cond0(node/*, logop*/); }
| 3,238,121 |
private Node cond0(Node node, int logop) { int type = node.getType(); // enum node_type assign_in_cond(node); switch (type) { case Constants.NODE_DSTR : case Constants.NODE_STR : if (logop != 0) { break; } rb_warn("string literal in condition"); break; case Constants.NODE_DREGX : case Constants.NODE_DREGX_ONCE : warning_unless_e_option("regex literal in condition"); getLocalIndex("_"); getLocalIndex("~"); return nf.newMatch2(node, nf.newGVar("$_")); case Constants.NODE_DOT2 : case Constants.NODE_DOT3 : node.setBeginNode(range_op(node.getBeginNode(), logop)); node.setEndNode(range_op(node.getEndNode(), logop)); ((DotNode) node).setFlip(true); node.setCount(registerLocal(null)); warning_unless_e_option("range literal in condition"); break; case Constants.NODE_LIT : if (node.getLiteral() instanceof RubyRegexp) { warning_unless_e_option("regex literal in condition"); // +++ // node.nd_set_type(Constants.NODE_MATCH); throw new RuntimeException("[BUG] node.nd_set_type(Constants.NODE_MATCH)"); // local_cnt("_"); // local_cnt("~"); // --- } } return node; }
|
private Node cond0(Node node /*, int logop*/) { int type = node.getType(); // enum node_type assign_in_cond(node); switch (type) { case Constants.NODE_DSTR : case Constants.NODE_STR : if (logop != 0) { break; } rb_warn("string literal in condition"); break; case Constants.NODE_DREGX : case Constants.NODE_DREGX_ONCE : warning_unless_e_option("regex literal in condition"); getLocalIndex("_"); getLocalIndex("~"); return nf.newMatch2(node, nf.newGVar("$_")); case Constants.NODE_DOT2 : case Constants.NODE_DOT3 : node.setBeginNode(range_op(node.getBeginNode(), logop)); node.setEndNode(range_op(node.getEndNode(), logop)); ((DotNode) node).setFlip(true); node.setCount(registerLocal(null)); warning_unless_e_option("range literal in condition"); break; case Constants.NODE_LIT : if (node.getLiteral() instanceof RubyRegexp) { warning_unless_e_option("regex literal in condition"); // +++ // node.nd_set_type(Constants.NODE_MATCH); throw new RuntimeException("[BUG] node.nd_set_type(Constants.NODE_MATCH)"); // local_cnt("_"); // local_cnt("~"); // --- } } return node; }
| 3,238,122 |
private Node cond0(Node node, int logop) { int type = node.getType(); // enum node_type assign_in_cond(node); switch (type) { case Constants.NODE_DSTR : case Constants.NODE_STR : if (logop != 0) { break; } rb_warn("string literal in condition"); break; case Constants.NODE_DREGX : case Constants.NODE_DREGX_ONCE : warning_unless_e_option("regex literal in condition"); getLocalIndex("_"); getLocalIndex("~"); return nf.newMatch2(node, nf.newGVar("$_")); case Constants.NODE_DOT2 : case Constants.NODE_DOT3 : node.setBeginNode(range_op(node.getBeginNode(), logop)); node.setEndNode(range_op(node.getEndNode(), logop)); ((DotNode) node).setFlip(true); node.setCount(registerLocal(null)); warning_unless_e_option("range literal in condition"); break; case Constants.NODE_LIT : if (node.getLiteral() instanceof RubyRegexp) { warning_unless_e_option("regex literal in condition"); // +++ // node.nd_set_type(Constants.NODE_MATCH); throw new RuntimeException("[BUG] node.nd_set_type(Constants.NODE_MATCH)"); // local_cnt("_"); // local_cnt("~"); // --- } } return node; }
|
private Node cond0(Node node, int logop) { int type = node.getType(); // enum node_type assign_in_cond(node); switch (type) { /*case Constants.NODE_DSTR : case Constants.NODE_STR : if (logop != 0) { break; } rb_warn("string literal in condition"); break; case Constants.NODE_DREGX : case Constants.NODE_DREGX_ONCE : warning_unless_e_option("regex literal in condition"); getLocalIndex("_"); getLocalIndex("~"); return nf.newMatch2(node, nf.newGVar("$_")); case Constants.NODE_DOT2 : case Constants.NODE_DOT3 : node.setBeginNode(range_op(node.getBeginNode(), logop)); node.setEndNode(range_op(node.getEndNode(), logop)); ((DotNode) node).setFlip(true); node.setCount(registerLocal(null)); warning_unless_e_option("range literal in condition"); break; case Constants.NODE_LIT : if (node.getLiteral() instanceof RubyRegexp) { warning_unless_e_option("regex literal in condition"); // +++ // node.nd_set_type(Constants.NODE_MATCH); throw new RuntimeException("[BUG] node.nd_set_type(Constants.NODE_MATCH)"); // local_cnt("_"); // local_cnt("~"); // --- } } return node; }
| 3,238,123 |
private Node cond0(Node node, int logop) { int type = node.getType(); // enum node_type assign_in_cond(node); switch (type) { case Constants.NODE_DSTR : case Constants.NODE_STR : if (logop != 0) { break; } rb_warn("string literal in condition"); break; case Constants.NODE_DREGX : case Constants.NODE_DREGX_ONCE : warning_unless_e_option("regex literal in condition"); getLocalIndex("_"); getLocalIndex("~"); return nf.newMatch2(node, nf.newGVar("$_")); case Constants.NODE_DOT2 : case Constants.NODE_DOT3 : node.setBeginNode(range_op(node.getBeginNode(), logop)); node.setEndNode(range_op(node.getEndNode(), logop)); ((DotNode) node).setFlip(true); node.setCount(registerLocal(null)); warning_unless_e_option("range literal in condition"); break; case Constants.NODE_LIT : if (node.getLiteral() instanceof RubyRegexp) { warning_unless_e_option("regex literal in condition"); // +++ // node.nd_set_type(Constants.NODE_MATCH); throw new RuntimeException("[BUG] node.nd_set_type(Constants.NODE_MATCH)"); // local_cnt("_"); // local_cnt("~"); // --- } } return node; }
|
private Node cond0(Node node, int logop) { int type = node.getType(); // enum node_type assign_in_cond(node); switch (type) { case Constants.NODE_DSTR : case Constants.NODE_STR : if (logop != 0) { break;*/ } rb_warn("string literal in condition"); break;*/ case Constants.NODE_DREGX : case Constants.NODE_DREGX_ONCE : warning_unless_e_option("regex literal in condition"); getLocalIndex("_"); getLocalIndex("~"); return nf.newMatch2(node, nf.newGVar("$_")); case Constants.NODE_DOT2 : case Constants.NODE_DOT3 : node.setBeginNode(range_op(node.getBeginNode(), logop)); node.setEndNode(range_op(node.getEndNode(), logop)); ((DotNode) node).setFlip(true); node.setCount(registerLocal(null)); warning_unless_e_option("range literal in condition"); break;*/ case Constants.NODE_LIT : if (node.getLiteral() instanceof RubyRegexp) { warning_unless_e_option("regex literal in condition"); // +++ // node.nd_set_type(Constants.NODE_MATCH); throw new RuntimeException("[BUG] node.nd_set_type(Constants.NODE_MATCH)"); // local_cnt("_"); // local_cnt("~"); // --- } } return node; }
| 3,238,124 |
private Node cond0(Node node, int logop) { int type = node.getType(); // enum node_type assign_in_cond(node); switch (type) { case Constants.NODE_DSTR : case Constants.NODE_STR : if (logop != 0) { break; } rb_warn("string literal in condition"); break; case Constants.NODE_DREGX : case Constants.NODE_DREGX_ONCE : warning_unless_e_option("regex literal in condition"); getLocalIndex("_"); getLocalIndex("~"); return nf.newMatch2(node, nf.newGVar("$_")); case Constants.NODE_DOT2 : case Constants.NODE_DOT3 : node.setBeginNode(range_op(node.getBeginNode(), logop)); node.setEndNode(range_op(node.getEndNode(), logop)); ((DotNode) node).setFlip(true); node.setCount(registerLocal(null)); warning_unless_e_option("range literal in condition"); break; case Constants.NODE_LIT : if (node.getLiteral() instanceof RubyRegexp) { warning_unless_e_option("regex literal in condition"); // +++ // node.nd_set_type(Constants.NODE_MATCH); throw new RuntimeException("[BUG] node.nd_set_type(Constants.NODE_MATCH)"); // local_cnt("_"); // local_cnt("~"); // --- } } return node; }
|
private Node cond0(Node node, int logop) { int type = node.getType(); // enum node_type assign_in_cond(node); switch (type) { case Constants.NODE_DSTR : case Constants.NODE_STR : if (logop != 0) { break; } rb_warn("string literal in condition"); break; case Constants.NODE_DREGX : case Constants.NODE_DREGX_ONCE : getLocalIndex("_"); getLocalIndex("~"); return nf.newMatch2(node, nf.newGVar("$_")); case Constants.NODE_DOT2 : case Constants.NODE_DOT3 : node.setBeginNode(range_op(node.getBeginNode(), logop)); node.setEndNode(range_op(node.getEndNode(), logop)); ((DotNode) node).setFlip(true); node.setCount(registerLocal(null)); warning_unless_e_option("range literal in condition"); break; case Constants.NODE_LIT : if (node.getLiteral() instanceof RubyRegexp) { // +++ // node.nd_set_type(Constants.NODE_MATCH); throw new RuntimeException("[BUG] node.nd_set_type(Constants.NODE_MATCH)"); // local_cnt("_"); // local_cnt("~"); // --- } } return node; }
| 3,238,125 |
private Node cond0(Node node, int logop) { int type = node.getType(); // enum node_type assign_in_cond(node); switch (type) { case Constants.NODE_DSTR : case Constants.NODE_STR : if (logop != 0) { break; } rb_warn("string literal in condition"); break; case Constants.NODE_DREGX : case Constants.NODE_DREGX_ONCE : warning_unless_e_option("regex literal in condition"); getLocalIndex("_"); getLocalIndex("~"); return nf.newMatch2(node, nf.newGVar("$_")); case Constants.NODE_DOT2 : case Constants.NODE_DOT3 : node.setBeginNode(range_op(node.getBeginNode(), logop)); node.setEndNode(range_op(node.getEndNode(), logop)); ((DotNode) node).setFlip(true); node.setCount(registerLocal(null)); warning_unless_e_option("range literal in condition"); break; case Constants.NODE_LIT : if (node.getLiteral() instanceof RubyRegexp) { warning_unless_e_option("regex literal in condition"); // +++ // node.nd_set_type(Constants.NODE_MATCH); throw new RuntimeException("[BUG] node.nd_set_type(Constants.NODE_MATCH)"); // local_cnt("_"); // local_cnt("~"); // --- } } return node; }
|
private Node cond0(Node node, int logop) { int type = node.getType(); // enum node_type assign_in_cond(node); switch (type) { case Constants.NODE_DSTR : case Constants.NODE_STR : if (logop != 0) { break; } rb_warn("string literal in condition"); break; case Constants.NODE_DREGX : case Constants.NODE_DREGX_ONCE : warning_unless_e_option("regex literal in condition"); getLocalIndex("_"); getLocalIndex("~"); return nf.newMatch2(node, nf.newGVar("$_")); case Constants.NODE_DOT2 : case Constants.NODE_DOT3 : node.setBeginNode(range_op(node.getBeginNode(), logop)); node.setEndNode(range_op(node.getEndNode(), logop)); ((DotNode) node).setFlip(true); node.setCount(registerLocal(null)); warning_unless_e_option("range literal in condition"); break; case Constants.NODE_LIT : if (node.getLiteral() instanceof RubyRegexp) { warning_unless_e_option("regex literal in condition"); // +++ // node.nd_set_type(Constants.NODE_MATCH); throw new RuntimeException("[BUG] node.nd_set_type(Constants.NODE_MATCH)"); // local_cnt("_"); // local_cnt("~"); // --- } } return node; }
| 3,238,126 |
private Node cond0(Node node, int logop) { int type = node.getType(); // enum node_type assign_in_cond(node); switch (type) { case Constants.NODE_DSTR : case Constants.NODE_STR : if (logop != 0) { break; } rb_warn("string literal in condition"); break; case Constants.NODE_DREGX : case Constants.NODE_DREGX_ONCE : warning_unless_e_option("regex literal in condition"); getLocalIndex("_"); getLocalIndex("~"); return nf.newMatch2(node, nf.newGVar("$_")); case Constants.NODE_DOT2 : case Constants.NODE_DOT3 : node.setBeginNode(range_op(node.getBeginNode(), logop)); node.setEndNode(range_op(node.getEndNode(), logop)); ((DotNode) node).setFlip(true); node.setCount(registerLocal(null)); warning_unless_e_option("range literal in condition"); break; case Constants.NODE_LIT : if (node.getLiteral() instanceof RubyRegexp) { warning_unless_e_option("regex literal in condition"); // +++ // node.nd_set_type(Constants.NODE_MATCH); throw new RuntimeException("[BUG] node.nd_set_type(Constants.NODE_MATCH)"); // local_cnt("_"); // local_cnt("~"); // --- } } return node; }
|
private Node cond0(Node node, int logop) { int type = node.getType(); // enum node_type assign_in_cond(node); switch (type) { case Constants.NODE_DSTR : case Constants.NODE_STR : if (logop != 0) { break; } rb_warn("string literal in condition"); break; case Constants.NODE_DREGX : case Constants.NODE_DREGX_ONCE : warning_unless_e_option("regex literal in condition"); getLocalIndex("_"); getLocalIndex("~"); return nf.newMatch2(node, nf.newGVar("$_")); case Constants.NODE_DOT2 : case Constants.NODE_DOT3 : node.setBeginNode(range_op(node.getBeginNode(), logop)); node.setEndNode(range_op(node.getEndNode(), logop)); ((DotNode) node).setFlip(true); node.setCount(registerLocal(null)); warning_unless_e_option("range literal in condition"); break; case Constants.NODE_LIT : if (node.getLiteral() instanceof RubyRegexp) { warning_unless_e_option("regex literal in condition"); // +++ // node.nd_set_type(Constants.NODE_MATCH); throw new RuntimeException("[BUG] node.nd_set_type(Constants.NODE_MATCH)"); // local_cnt("_"); // local_cnt("~"); // --- } } return node; }
| 3,238,127 |
private Node cond0(Node node, int logop) { int type = node.getType(); // enum node_type assign_in_cond(node); switch (type) { case Constants.NODE_DSTR : case Constants.NODE_STR : if (logop != 0) { break; } rb_warn("string literal in condition"); break; case Constants.NODE_DREGX : case Constants.NODE_DREGX_ONCE : warning_unless_e_option("regex literal in condition"); getLocalIndex("_"); getLocalIndex("~"); return nf.newMatch2(node, nf.newGVar("$_")); case Constants.NODE_DOT2 : case Constants.NODE_DOT3 : node.setBeginNode(range_op(node.getBeginNode(), logop)); node.setEndNode(range_op(node.getEndNode(), logop)); ((DotNode) node).setFlip(true); node.setCount(registerLocal(null)); warning_unless_e_option("range literal in condition"); break; case Constants.NODE_LIT : if (node.getLiteral() instanceof RubyRegexp) { warning_unless_e_option("regex literal in condition"); // +++ // node.nd_set_type(Constants.NODE_MATCH); throw new RuntimeException("[BUG] node.nd_set_type(Constants.NODE_MATCH)"); // local_cnt("_"); // local_cnt("~"); // --- } } return node; }
|
private Node cond0(Node node, int logop) { int type = node.getType(); // enum node_type assign_in_cond(node); switch (type) { case Constants.NODE_DSTR : case Constants.NODE_STR : if (logop != 0) { break; } rb_warn("string literal in condition"); break; case Constants.NODE_DREGX : case Constants.NODE_DREGX_ONCE : warning_unless_e_option("regex literal in condition"); getLocalIndex("_"); getLocalIndex("~"); return nf.newMatch2(node, nf.newGVar("$_")); case Constants.NODE_DOT2 : case Constants.NODE_DOT3 : node.setBeginNode(range_op(node.getBeginNode(), logop)); node.setEndNode(range_op(node.getEndNode(), logop)); ((DotNode) node).setFlip(true); node.setCount(registerLocal(null)); warning_unless_e_option("range literal in condition"); break; case Constants.NODE_LIT : if (node.getLiteral() instanceof RubyRegexp) { warning_unless_e_option("regex literal in condition"); // +++ // node.nd_set_type(Constants.NODE_MATCH); throw new RuntimeException("[BUG] node.nd_set_type(Constants.NODE_MATCH)"); // local_cnt("_"); // local_cnt("~"); // --- } } return node; }
| 3,238,128 |
private Node cond0(Node node, int logop) { int type = node.getType(); // enum node_type assign_in_cond(node); switch (type) { case Constants.NODE_DSTR : case Constants.NODE_STR : if (logop != 0) { break; } rb_warn("string literal in condition"); break; case Constants.NODE_DREGX : case Constants.NODE_DREGX_ONCE : warning_unless_e_option("regex literal in condition"); getLocalIndex("_"); getLocalIndex("~"); return nf.newMatch2(node, nf.newGVar("$_")); case Constants.NODE_DOT2 : case Constants.NODE_DOT3 : node.setBeginNode(range_op(node.getBeginNode(), logop)); node.setEndNode(range_op(node.getEndNode(), logop)); ((DotNode) node).setFlip(true); node.setCount(registerLocal(null)); warning_unless_e_option("range literal in condition"); break; case Constants.NODE_LIT : if (node.getLiteral() instanceof RubyRegexp) { warning_unless_e_option("regex literal in condition"); // +++ // node.nd_set_type(Constants.NODE_MATCH); throw new RuntimeException("[BUG] node.nd_set_type(Constants.NODE_MATCH)"); // local_cnt("_"); // local_cnt("~"); // --- } } return node; }
|
private Node cond0(Node node, int logop) { int type = node.getType(); // enum node_type assign_in_cond(node); switch (type) { case Constants.NODE_DSTR : case Constants.NODE_STR : if (logop != 0) { break; } rb_warn("string literal in condition"); break; case Constants.NODE_DREGX : case Constants.NODE_DREGX_ONCE : warning_unless_e_option("regex literal in condition"); getLocalIndex("_"); getLocalIndex("~"); return nf.newMatch2(node, nf.newGVar("$_")); case Constants.NODE_DOT2 : case Constants.NODE_DOT3 : node.setBeginNode(range_op(node.getBeginNode(), logop)); node.setEndNode(range_op(node.getEndNode(), logop)); ((DotNode) node).setFlip(true); node.setCount(registerLocal(null)); warning_unless_e_option("range literal in condition"); break; case Constants.NODE_LIT : if (node.getLiteral() instanceof RubyRegexp) { warning_unless_e_option("regex literal in condition"); // +++ // node.nd_set_type(Constants.NODE_MATCH); throw new RuntimeException("[BUG] node.nd_set_type(Constants.NODE_MATCH)"); // local_cnt("_"); // local_cnt("~"); // --- } } }
| 3,238,129 |
public Node logop(int type, Node left, Node right) { value_expr(left); switch (type) { case Constants.NODE_AND : return new AndNode(cond1(left, 1), cond1(right, 1)); case Constants.NODE_OR : return new OrNode(cond1(left, 1), cond1(right, 1)); default : throw new RuntimeException("[BUG] ParserHelper#logop: Nodetype=" + type); } // return nf.newDefaultNode(type, cond1(left, 1), cond1(right, 1), null); }
|
public Node logop(int type, Node left, Node right) { value_expr(left); switch (type) { case Constants.NODE_AND : return new AndNode(cond(left), cond(right)); case Constants.NODE_OR : return new OrNode(cond1(left, 1), cond1(right, 1)); default : throw new RuntimeException("[BUG] ParserHelper#logop: Nodetype=" + type); } // return nf.newDefaultNode(type, cond1(left, 1), cond1(right, 1), null); }
| 3,238,130 |
public Node logop(int type, Node left, Node right) { value_expr(left); switch (type) { case Constants.NODE_AND : return new AndNode(cond1(left, 1), cond1(right, 1)); case Constants.NODE_OR : return new OrNode(cond1(left, 1), cond1(right, 1)); default : throw new RuntimeException("[BUG] ParserHelper#logop: Nodetype=" + type); } // return nf.newDefaultNode(type, cond1(left, 1), cond1(right, 1), null); }
|
public Node logop(int type, Node left, Node right) { value_expr(left); switch (type) { case Constants.NODE_AND : return new AndNode(cond1(left, 1), cond1(right, 1)); case Constants.NODE_OR : return new OrNode(cond(left), cond(right)); default : throw new RuntimeException("[BUG] ParserHelper#logop: Nodetype=" + type); } // return nf.newDefaultNode(type, cond1(left, 1), cond1(right, 1), null); }
| 3,238,131 |
private int registerLocal(String name) { name = name.intern(); if (lvtbl.tbl == null) { lvtbl.tbl = new ArrayList(); lvtbl.tbl.add("_"); lvtbl.tbl.add("~"); if (name == "_") { return 0; } else if (name == "~") { return 1; } } lvtbl.tbl.add(name); return lvtbl.cnt() - 1; }
|
private int registerLocal(String name) { name = name != null ? name.intern() : null; if (lvtbl.tbl == null) { lvtbl.tbl = new ArrayList(); lvtbl.tbl.add("_"); lvtbl.tbl.add("~"); if (name == "_") { return 0; } else if (name == "~") { return 1; } } lvtbl.tbl.add(name); return lvtbl.cnt() - 1; }
| 3,238,132 |
private void addDefaultModules(RubyClass rubyClass) { if (rubyClass.isMethodDefined("hasNext") && rubyClass.isMethodDefined("next")) { rubyClass.includeModule(ruby.getClasses().getEnumerableModule()); rubyClass.defineMethod("each", new JavaEachMethod("hasNext", "next")); } else if (rubyClass.isMethodDefined("hasNext") && rubyClass.isMethodDefined("next")) { rubyClass.includeModule(ruby.getClasses().getEnumerableModule()); rubyClass.defineMethod("each", new JavaEachMethod("hasMoreElements", "nextElement")); } if (rubyClass.isMethodDefined("compareTo")) { rubyClass.includeModule(ruby.getClasses().getComparableModule()); if (!rubyClass.isMethodDefined("<=>")) { rubyClass.defineAlias("<=>", "compareTo"); } } }
|
private void addDefaultModules(RubyClass rubyClass) { if (rubyClass.isMethodDefined("hasNext") && rubyClass.isMethodDefined("next")) { rubyClass.includeModule(ruby.getClasses().getEnumerableModule()); rubyClass.defineMethod("each", new JavaEachMethod("hasNext", "next")); } else if (rubyClass.isMethodDefined("hasNext") && rubyClass.isMethodDefined("next")) { rubyClass.includeModule(ruby.getClasses().getEnumerableModule()); rubyClass.defineMethod("each", new JavaEachMethod("hasMoreElements", "nextElement")); } if (rubyClass.isMethodDefined("compareTo")) { rubyClass.includeModule(ruby.getClasses().getComparableModule()); if (!rubyClass.isMethodDefined("<=>")) { rubyClass.defineAlias("<=>", "compareTo"); } } }
| 3,238,133 |
private RubyModule createRubyInterface(Class javaInterface, String rubyName) { RubyModule newInterface = ruby.defineModule(rubyName); Map methods = sortMethodsByName(Arrays.asList(javaInterface.getMethods())); for (Iterator iter = methods.entrySet().iterator(); iter.hasNext();) { Map.Entry entry = (Map.Entry)iter.next(); newInterface.defineModuleFunction((String)entry.getKey(), new JavaInterfaceMethod((String)entry.getKey(), (Set)entry.getValue())); } newInterface.defineModuleFunction("new" + rubyName, new JavaInterfaceConstructor(javaInterface)); return newInterface; }
|
private RubyModule createRubyInterface(Class javaInterface, String rubyName) { RubyModule newInterface = ruby.defineModule(rubyName); Map methods = sortMethodsByName(Arrays.asList(javaInterface.getMethods())); for (Iterator iter = methods.entrySet().iterator(); iter.hasNext();) { Map.Entry entry = (Map.Entry)iter.next(); newInterface.defineModuleFunction((String)entry.getKey(), new JavaInterfaceMethod((String)entry.getKey(), (Set)entry.getValue())); } newInterface.defineModuleFunction("new" + rubyName, new JavaInterfaceConstructor(javaInterface)); return newInterface; }
| 3,238,135 |
private RubyModule createRubyInterface(Class javaInterface, String rubyName) { RubyModule newInterface = ruby.defineModule(rubyName); Map methods = sortMethodsByName(Arrays.asList(javaInterface.getMethods())); for (Iterator iter = methods.entrySet().iterator(); iter.hasNext();) { Map.Entry entry = (Map.Entry)iter.next(); newInterface.defineModuleFunction((String)entry.getKey(), new JavaInterfaceMethod((String)entry.getKey(), (Set)entry.getValue())); } newInterface.defineModuleFunction("new" + rubyName, new JavaInterfaceConstructor(javaInterface)); return newInterface; }
|
private RubyModule createRubyInterface(Class javaInterface, String rubyName) { RubyModule newInterface = ruby.defineModule(rubyName); Map methods = sortMethodsByName(Arrays.asList(javaInterface.getMethods())); for (Iterator iter = methods.entrySet().iterator(); iter.hasNext();) { Map.Entry entry = (Map.Entry)iter.next(); newInterface.defineModuleFunction((String)entry.getKey(), new JavaInterfaceMethod((String)entry.getKey(), (Set)entry.getValue())); } newInterface.defineModuleFunction("new" + rubyName, new JavaInterfaceConstructor(javaInterface)); return newInterface; }
| 3,238,136 |
private RubyModule createRubyInterface(Class javaInterface, String rubyName) { RubyModule newInterface = ruby.defineModule(rubyName); Map methods = sortMethodsByName(Arrays.asList(javaInterface.getMethods())); for (Iterator iter = methods.entrySet().iterator(); iter.hasNext();) { Map.Entry entry = (Map.Entry)iter.next(); newInterface.defineModuleFunction((String)entry.getKey(), new JavaInterfaceMethod((String)entry.getKey(), (Set)entry.getValue())); } newInterface.defineModuleFunction("new" + rubyName, new JavaInterfaceConstructor(javaInterface)); return newInterface; }
|
private RubyModule createRubyInterface(Class javaInterface, String rubyName) { RubyModule newInterface = ruby.defineModule(rubyName); Map methods = sortMethodsByName(Arrays.asList(javaInterface.getMethods())); for (Iterator iter = methods.entrySet().iterator(); iter.hasNext();) { Map.Entry entry = (Map.Entry)iter.next(); newInterface.defineModuleFunction((String)entry.getKey(), new JavaInterfaceMethod((String)entry.getKey(), (Set)entry.getValue())); } newInterface.defineModuleFunction("new" + rubyName, new JavaInterfaceConstructor(javaInterface)); return newInterface; }
| 3,238,137 |
private void defineConstants(Class javaClass, RubyClass rubyClass) { // add constants Field[] fields = javaClass.getFields(); for (int i = 0; i < fields.length; i++) { int modifiers = fields[i].getModifiers(); if (Modifier.isStatic(modifiers) && Modifier.isFinal(modifiers)) { try { String name = fields[i].getName(); // Uppercase first character of the constant name name = Character.toUpperCase(name.charAt(0)) + name.substring(1); rubyClass.defineConstant(name, JavaUtil.convertJavaToRuby(ruby, fields[i].get(null), fields[i].getType())); } catch (IllegalAccessException iaExcptn) { } } } }
|
private void defineConstants(Class javaClass, RubyClass rubyClass) { // add constants Field[] fields = javaClass.getFields(); for (int i = 0; i < fields.length; i++) { int modifiers = fields[i].getModifiers(); if (Modifier.isStatic(modifiers) && Modifier.isFinal(modifiers)) { try { String name = fields[i].getName(); // Uppercase first character of the constant name name = Character.toUpperCase(name.charAt(0)) + name.substring(1); rubyClass.defineConstant(name, JavaUtil.convertJavaToRuby(ruby, fields[i].get(null), fields[i].getType())); } catch (IllegalAccessException iaExcptn) { } } } }
| 3,238,138 |
private void defineConstants(Class javaClass, RubyClass rubyClass) { // add constants Field[] fields = javaClass.getFields(); for (int i = 0; i < fields.length; i++) { int modifiers = fields[i].getModifiers(); if (Modifier.isStatic(modifiers) && Modifier.isFinal(modifiers)) { try { String name = fields[i].getName(); // Uppercase first character of the constant name name = Character.toUpperCase(name.charAt(0)) + name.substring(1); rubyClass.defineConstant(name, JavaUtil.convertJavaToRuby(ruby, fields[i].get(null), fields[i].getType())); } catch (IllegalAccessException iaExcptn) { } } } }
|
private void defineConstants(Class javaClass, RubyClass rubyClass) { // add constants Field[] fields = javaClass.getFields(); for (int i = 0; i < fields.length; i++) { int modifiers = fields[i].getModifiers(); if (Modifier.isStatic(modifiers) && Modifier.isFinal(modifiers)) { try { String name = fields[i].getName(); // Uppercase first character of the constant name name = Character.toUpperCase(name.charAt(0)) + name.substring(1); rubyClass.defineConstant(name, JavaUtil.convertJavaToRuby(ruby, fields[i].get(null), fields[i].getType())); } catch (IllegalAccessException iaExcptn) { } } } }
| 3,238,139 |
private void defineConstants(Class javaClass, RubyClass rubyClass) { // add constants Field[] fields = javaClass.getFields(); for (int i = 0; i < fields.length; i++) { int modifiers = fields[i].getModifiers(); if (Modifier.isStatic(modifiers) && Modifier.isFinal(modifiers)) { try { String name = fields[i].getName(); // Uppercase first character of the constant name name = Character.toUpperCase(name.charAt(0)) + name.substring(1); rubyClass.defineConstant(name, JavaUtil.convertJavaToRuby(ruby, fields[i].get(null), fields[i].getType())); } catch (IllegalAccessException iaExcptn) { } } } }
|
private void defineConstants(Class javaClass, RubyClass rubyClass) { // add constants Field[] fields = javaClass.getFields(); for (int i = 0; i < fields.length; i++) { int modifiers = fields[i].getModifiers(); if (Modifier.isStatic(modifiers) && Modifier.isFinal(modifiers)) { try { String name = fields[i].getName(); // Uppercase first character of the constant name name = Character.toUpperCase(name.charAt(0)) + name.substring(1); rubyClass.defineConstant(name, JavaUtil.convertJavaToRuby(ruby, fields[i].get(null), fields[i].getType())); } catch (IllegalAccessException iaExcptn) { } } } }
| 3,238,140 |
private void defineConstants(Class javaClass, RubyClass rubyClass) { // add constants Field[] fields = javaClass.getFields(); for (int i = 0; i < fields.length; i++) { int modifiers = fields[i].getModifiers(); if (Modifier.isStatic(modifiers) && Modifier.isFinal(modifiers)) { try { String name = fields[i].getName(); // Uppercase first character of the constant name name = Character.toUpperCase(name.charAt(0)) + name.substring(1); rubyClass.defineConstant(name, JavaUtil.convertJavaToRuby(ruby, fields[i].get(null), fields[i].getType())); } catch (IllegalAccessException iaExcptn) { } } } }
|
private void defineConstants(Class javaClass, RubyClass rubyClass) { // add constants Field[] fields = javaClass.getFields(); for (int i = 0; i < fields.length; i++) { int modifiers = fields[i].getModifiers(); if (Modifier.isStatic(modifiers) && Modifier.isFinal(modifiers)) { try { String name = fields[i].getName(); // Uppercase first character of the constant name name = Character.toUpperCase(name.charAt(0)) + name.substring(1); rubyClass.defineConstant(name, JavaUtil.convertJavaToRuby(ruby, fields[i].get(null), fields[i].getType())); } catch (IllegalAccessException iaExcptn) { } } } }
| 3,238,141 |
private void defineWrapperMethods(Class javaClass, RubyClass rubyClass, boolean searchSuper) { Map methodMap = new HashMap(); Map singletonMethodMap = new HashMap(); Method[] methods = javaClass.getDeclaredMethods(); for (int i = 0; i < methods.length; i++) { String methodName = methods[i].getName(); if (Modifier.isStatic(methods[i].getModifiers())) { if (singletonMethodMap.get(methods[i].getName()) == null) { singletonMethodMap.put(methods[i].getName(), new LinkedList()); } ((List) singletonMethodMap.get(methods[i].getName())).add(methods[i]); } else { if (methodMap.get(methods[i].getName()) == null) { methodMap.put(methods[i].getName(), new LinkedList()); } ((List) methodMap.get(methods[i].getName())).add(methods[i]); } } if (javaClass.getConstructors().length > 0) { rubyClass.defineSingletonMethod("new", new JavaConstructor(javaClass.getConstructors())); } else { rubyClass.getSingletonClass().undefMethod("new"); } Iterator iter = methodMap.entrySet().iterator(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry) iter.next(); methods = (Method[]) ((List) entry.getValue()).toArray(new Method[((List) entry.getValue()).size()]); String javaName = (String)entry.getKey(); String rubyName = toRubyName(javaName); rubyClass.defineMethod(javaName, new JavaMethod(methods, searchSuper)); if (!rubyClass.isMethodDefined(rubyName)) { rubyClass.defineAlias(rubyName, javaName); } } iter = singletonMethodMap.entrySet().iterator(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry) iter.next(); methods = (Method[]) ((List) entry.getValue()).toArray(new Method[((List) entry.getValue()).size()]); rubyClass.defineSingletonMethod((String)entry.getKey(), new JavaMethod(methods, searchSuper, true)); } }
|
private void defineWrapperMethods(Class javaClass, RubyClass rubyClass, boolean searchSuper) { Map methodMap = new HashMap(); Map singletonMethodMap = new HashMap(); Method[] methods = javaClass.getDeclaredMethods(); for (int i = 0; i < methods.length; i++) { String methodName = methods[i].getName(); if (Modifier.isStatic(methods[i].getModifiers())) { if (singletonMethodMap.get(methods[i].getName()) == null) { singletonMethodMap.put(methods[i].getName(), new LinkedList()); } ((List) singletonMethodMap.get(methods[i].getName())).add(methods[i]); } else { if (methodMap.get(methods[i].getName()) == null) { methodMap.put(methods[i].getName(), new LinkedList()); } ((List) methodMap.get(methods[i].getName())).add(methods[i]); } } if (javaClass.getConstructors().length > 0) { rubyClass.defineSingletonMethod("new", new JavaConstructor(javaClass.getConstructors())); } else { rubyClass.getSingletonClass().undefMethod("new"); } Iterator iter = methodMap.entrySet().iterator(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry) iter.next(); methods = (Method[]) ((List) entry.getValue()).toArray(new Method[((List) entry.getValue()).size()]); String javaName = (String) entry.getKey(); String rubyName = toRubyName(javaName); rubyClass.defineMethod(javaName, new JavaMethod(methods, searchSuper)); if (!rubyClass.isMethodDefined(rubyName)) { rubyClass.defineAlias(rubyName, javaName); } } iter = singletonMethodMap.entrySet().iterator(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry) iter.next(); methods = (Method[]) ((List) entry.getValue()).toArray(new Method[((List) entry.getValue()).size()]); rubyClass.defineSingletonMethod((String)entry.getKey(), new JavaMethod(methods, searchSuper, true)); } }
| 3,238,142 |
private void defineWrapperMethods(Class javaClass, RubyClass rubyClass, boolean searchSuper) { Map methodMap = new HashMap(); Map singletonMethodMap = new HashMap(); Method[] methods = javaClass.getDeclaredMethods(); for (int i = 0; i < methods.length; i++) { String methodName = methods[i].getName(); if (Modifier.isStatic(methods[i].getModifiers())) { if (singletonMethodMap.get(methods[i].getName()) == null) { singletonMethodMap.put(methods[i].getName(), new LinkedList()); } ((List) singletonMethodMap.get(methods[i].getName())).add(methods[i]); } else { if (methodMap.get(methods[i].getName()) == null) { methodMap.put(methods[i].getName(), new LinkedList()); } ((List) methodMap.get(methods[i].getName())).add(methods[i]); } } if (javaClass.getConstructors().length > 0) { rubyClass.defineSingletonMethod("new", new JavaConstructor(javaClass.getConstructors())); } else { rubyClass.getSingletonClass().undefMethod("new"); } Iterator iter = methodMap.entrySet().iterator(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry) iter.next(); methods = (Method[]) ((List) entry.getValue()).toArray(new Method[((List) entry.getValue()).size()]); String javaName = (String)entry.getKey(); String rubyName = toRubyName(javaName); rubyClass.defineMethod(javaName, new JavaMethod(methods, searchSuper)); if (!rubyClass.isMethodDefined(rubyName)) { rubyClass.defineAlias(rubyName, javaName); } } iter = singletonMethodMap.entrySet().iterator(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry) iter.next(); methods = (Method[]) ((List) entry.getValue()).toArray(new Method[((List) entry.getValue()).size()]); rubyClass.defineSingletonMethod((String)entry.getKey(), new JavaMethod(methods, searchSuper, true)); } }
|
private void defineWrapperMethods(Class javaClass, RubyClass rubyClass, boolean searchSuper) { Map methodMap = new HashMap(); Map singletonMethodMap = new HashMap(); Method[] methods = javaClass.getDeclaredMethods(); for (int i = 0; i < methods.length; i++) { String methodName = methods[i].getName(); if (Modifier.isStatic(methods[i].getModifiers())) { if (singletonMethodMap.get(methods[i].getName()) == null) { singletonMethodMap.put(methods[i].getName(), new LinkedList()); } ((List) singletonMethodMap.get(methods[i].getName())).add(methods[i]); } else { if (methodMap.get(methods[i].getName()) == null) { methodMap.put(methods[i].getName(), new LinkedList()); } ((List) methodMap.get(methods[i].getName())).add(methods[i]); } } if (javaClass.getConstructors().length > 0) { rubyClass.defineSingletonMethod("new", new JavaConstructor(javaClass.getConstructors())); } else { rubyClass.getSingletonClass().undefMethod("new"); } Iterator iter = methodMap.entrySet().iterator(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry) iter.next(); methods = (Method[]) ((List) entry.getValue()).toArray(new Method[((List) entry.getValue()).size()]); String javaName = (String)entry.getKey(); String rubyName = toRubyName(javaName); rubyClass.defineMethod(javaName, new JavaMethod(methods, searchSuper)); if (!rubyClass.isMethodDefined(rubyName)) { rubyClass.defineAlias(rubyName, javaName); } } iter = singletonMethodMap.entrySet().iterator(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry) iter.next(); methods = (Method[]) ((List) entry.getValue()).toArray(new Method[((List) entry.getValue()).size()]); rubyClass.defineSingletonMethod((String) entry.getKey(), new JavaMethod(methods, searchSuper, true)); } }
| 3,238,143 |
public RubyModule loadClass(Class javaClass, String rubyName) { if (javaClass == Object.class) { return ruby.getClasses().getJavaObjectClass(); } else if (loadedJavaClasses.get(javaClass) != null) { return (RubyModule) loadedJavaClasses.get(javaClass); } else { if (rubyName == null) { String javaName = javaClass.getName(); rubyName = javaName.substring(javaName.lastIndexOf('.') + 1); } if (javaClass.isInterface()) { return createRubyInterface(javaClass, rubyName); } else { return createRubyClass(javaClass, rubyName); } } }
|
public RubyModule loadClass(Class javaClass, String rubyName) { if (javaClass == Object.class) { return ruby.getClasses().getJavaObjectClass(); } else if (loadedJavaClasses.get(javaClass) != null) { return (RubyModule) loadedJavaClasses.get(javaClass); } else { if (rubyName == null) { String javaName = javaClass.getName(); rubyName = javaName.substring(javaName.lastIndexOf('.') + 1); } if (javaClass.isInterface()) { return createRubyInterface(javaClass, rubyName); } else { return createRubyClass(javaClass, rubyName); } } }
| 3,238,144 |
private static Map sortMethodsByName(List methodList) { Map methodMap = new HashMap(); Iterator iter = methodList.iterator(); while (iter.hasNext()) { Method method = (Method) iter.next(); if (!methodMap.containsKey(method.getName())) { methodMap.put(method.getName(), new HashSet()); } ((Set)methodMap.get(method.getName())).add(method); } return methodMap; }
|
private static Map sortMethodsByName(List methodList) { Map methodMap = new HashMap(); Iterator iter = methodList.iterator(); while (iter.hasNext()) { Method method = (Method) iter.next(); if (!methodMap.containsKey(method.getName())) { methodMap.put(method.getName(), new HashSet()); } ((Set)methodMap.get(method.getName())).add(method); } return methodMap; }
| 3,238,145 |
private static Map sortMethodsByName(List methodList) { Map methodMap = new HashMap(); Iterator iter = methodList.iterator(); while (iter.hasNext()) { Method method = (Method) iter.next(); if (!methodMap.containsKey(method.getName())) { methodMap.put(method.getName(), new HashSet()); } ((Set)methodMap.get(method.getName())).add(method); } return methodMap; }
|
private static Map sortMethodsByName(List methodList) { Map methodMap = new HashMap(); Iterator iter = methodList.iterator(); while (iter.hasNext()) { Method method = (Method) iter.next(); if (!methodMap.containsKey(method.getName())) { methodMap.put(method.getName(), new HashSet()); } ((Set)methodMap.get(method.getName())).add(method); } return methodMap; }
| 3,238,146 |
private static Map sortMethodsByName(List methodList) { Map methodMap = new HashMap(); Iterator iter = methodList.iterator(); while (iter.hasNext()) { Method method = (Method) iter.next(); if (!methodMap.containsKey(method.getName())) { methodMap.put(method.getName(), new HashSet()); } ((Set)methodMap.get(method.getName())).add(method); } return methodMap; }
|
private static Map sortMethodsByName(List methodList) { Map methodMap = new HashMap(); Iterator iter = methodList.iterator(); while (iter.hasNext()) { Method method = (Method) iter.next(); if (!methodMap.containsKey(method.getName())) { methodMap.put(method.getName(), new HashSet()); } ((Set) methodMap.get(method.getName())).add(method); } return methodMap; }
| 3,238,147 |
private static Map sortMethodsByName(List methodList) { Map methodMap = new HashMap(); Iterator iter = methodList.iterator(); while (iter.hasNext()) { Method method = (Method) iter.next(); if (!methodMap.containsKey(method.getName())) { methodMap.put(method.getName(), new HashSet()); } ((Set)methodMap.get(method.getName())).add(method); } return methodMap; }
|
private static Map sortMethodsByName(List methodList) { Map methodMap = new HashMap(); Iterator iter = methodList.iterator(); while (iter.hasNext()) { Method method = (Method) iter.next(); if (!methodMap.containsKey(method.getName())) { methodMap.put(method.getName(), new HashSet()); } ((Set)methodMap.get(method.getName())).add(method); } return methodMap; }
| 3,238,148 |
private static void copyResourceFromJar(String resourceName, File directory) throws IOException { int n; byte[] buf = new byte[1024]; InputStream in = null; FileOutputStream out = null; directory.mkdirs(); try { in = CopyFiles.class.getResourceAsStream(resourceName); if (in == null) throw new IllegalArgumentException("Resource " + resourceName + " does not exist in this package."); out = new FileOutputStream(new File(directory, resourceName)); while ((n = in.read(buf, 0, buf.length)) != -1) { out.write(buf, 0, n); } } finally { if (in != null) { in.close(); } if (out != null) { out.close(); } } }
|
private static void copyResourceFromJar(String resourceName, File directory) throws IOException { int n; byte[] buf = new byte[1024]; InputStream in = null; FileOutputStream out = null; directory.mkdirs(); try { in = CopyFiles.class.getResourceAsStream(resourceName); if (in == null) throw new IllegalArgumentException("Resource " + resourceName + " does not exist in this package."); out = new FileOutputStream(new File(directory, resourceName)); while ((n = in.read(buf, 0, buf.length)) != -1) { out.write(buf, 0, n); } } finally { if (in != null) { in.close(); } if (out != null) { out.close(); } } }
| 3,238,149 |
private static void copyResourceFromJar(String resourceName, File directory) throws IOException { int n; byte[] buf = new byte[1024]; InputStream in = null; FileOutputStream out = null; directory.mkdirs(); try { in = CopyFiles.class.getResourceAsStream(resourceName); if (in == null) throw new IllegalArgumentException("Resource " + resourceName + " does not exist in this package."); out = new FileOutputStream(new File(directory, resourceName)); while ((n = in.read(buf, 0, buf.length)) != -1) { out.write(buf, 0, n); } } finally { if (in != null) { in.close(); } if (out != null) { out.close(); } } }
|
private static void copyResourceFromJar(String resourceName, File directory) throws IOException { int n; byte[] buf = new byte[1024]; InputStream in = null; FileOutputStream out = null; directory.mkdirs(); try { in = CopyFiles.class.getResourceAsStream(resourceName); if (in == null) throw new IllegalArgumentException("Resource " + resourceName + " does not exist in this package."); out = new FileOutputStream(new File(directory, resourceName)); while ((n = in.read(buf, 0, buf.length)) != -1) { out.write(buf, 0, n); } } finally { if (in != null) { in.close(); } if (out != null) { out.close(); } } }
| 3,238,150 |
private void buildGUI() { JProgressBar progressBar = new JProgressBar(); progressBar.setVisible(true); progressBar.setIndeterminate(true); JPanel p = new JPanel(); p.setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); p. setBorder(BorderFactory.createEtchedBorder()); add(UIUtilities.buildComponentPanelRight(progressBar)); uiDelegate.setCanvas(p); }
|
private void buildGUI() { JProgressBar progressBar = new JProgressBar(); progressBar.setVisible(true); progressBar.setIndeterminate(true); JPanel p = new JPanel(); p.setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); p. setBorder(BorderFactory.createEtchedBorder()); add(UIUtilities.buildComponentPanelRight(progressBar)); uiDelegate.setCanvas(p); }
| 3,238,151 |
public void testAndSaveSomtheingWithParents() throws Exception { DatasetData dd = simpleDatasetData(); Set dss = new HashSet(); dss.add(dd); imgData = simpleImageData(); imgData.setDatasets(dss); img = (Image) reverse.map(imgData); img = (Image) iUpdate.saveAndReturnObject(img); assertTrue("It better have a dataset link", img.sizeOfDatasetLinks()>0); ds = (Dataset) img.iterateOverDatasetLinks().next(); Long id = ds.getId(); // another copy Image img2 = (Image) iQuery.queryUnique( "select i from Image i " + "left outer join fetch i.datasetLinks " + "where i.id = ?", new Object[]{img.getId()}); assertTrue("It better have a dataset link too", img2.sizeOfDatasetLinks()>0); Dataset ds2 = (Dataset) img2.iterateOverDatasetLinks().next(); assertTrue("And the ids have to be the same",id.equals(ds2.getId())); }
|
public void testAndSaveSomtheingWithParents() throws Exception { DatasetData dd = simpleDatasetData(); Set dss = new HashSet(); dss.add(dd); imgData = simpleImageData(); imgData.setDatasets(dss); img = (Image) reverse.map(imgData); img = (Image) iUpdate.saveAndReturnObject(img); assertTrue("It better have a dataset link", img.sizeOfDatasetLinks()>0); ds = (Dataset) img.iterateOverDatasetLinks().next(); Long id = ds.getId(); // another copy Image img2 = (Image) iQuery.queryUnique( "select i from Image i " + "left outer join fetch i.datasetLinks " + "where i.id = ?", new Object[]{img.getId()}); assertTrue("It better have a dataset link too", img2.sizeOfDatasetLinks()>0); Dataset ds2 = (Dataset) img2.iterateOverDatasetLinks().next(); assertTrue("And the ids have to be the same",id.equals(ds2.getId())); }
| 3,238,152 |
public void init(Broker broker,Settings config) throws InitException { super.init(broker,config); this.broker = broker; log = broker.getLog("resource","DelegatingTemplateProvider"); String factoryClass = config.getSetting("TemplateLoaderFactory",""); log.info("DelegatingTemplateProvider: Using TemplateLoaderFactory "+factoryClass); factory = createFactory(factoryClass); List loaders = new ArrayList(); // for compatability reasons, check old TemplatePath setting if (config.getBooleanSetting("DelegatingTemplateProvider.EmulateTemplatePath",false)) { if (config.getSetting("TemplatePath").length() > 0) { TemplateLoader loader = new TemplatePathTemplateLoader(); loader.init(broker,config); loader.setConfig(""); loaders.add(loader); } } int i = 0; String loader = config.getSetting("TemplateLoaderPath.".concat(String.valueOf(i+1))); while (loader != null) { loaders.add(factory.getTemplateLoader(broker,loader)); i++; loader = config.getSetting("TemplateLoaderPath.".concat(String.valueOf(i+1))); } templateLoaders = new TemplateLoader[loaders.size()]; loaders.toArray(templateLoaders); }
|
public void init(Broker broker,Settings config) throws InitException { super.init(broker,config); this.broker = broker; log = broker.getLog("resource","DelegatingTemplateProvider"); String factoryClass = config.getSetting("TemplateLoaderFactory",""); log.info("DelegatingTemplateProvider: Using TemplateLoaderFactory "+factoryClass); factory = createFactory(factoryClass); List loaders = new ArrayList(); // for compatability reasons, check old TemplatePath setting if (config.getBooleanSetting("DelegatingTemplateProvider.EmulateTemplatePath",false)) { if (config.getSetting("TemplatePath","").length() > 0) { TemplateLoader loader = new TemplatePathTemplateLoader(); loader.init(broker,config); loader.setConfig(""); loaders.add(loader); } } int i = 0; String loader = config.getSetting("TemplateLoaderPath.".concat(String.valueOf(i+1))); while (loader != null) { loaders.add(factory.getTemplateLoader(broker,loader)); i++; loader = config.getSetting("TemplateLoaderPath.".concat(String.valueOf(i+1))); } templateLoaders = new TemplateLoader[loaders.size()]; loaders.toArray(templateLoaders); }
| 3,238,154 |
public IRubyObject getConstant(IRubyObject self, String name) { for (Namespace ns = this; ns != null && ns.getParent() != null; ns = ns.getParent()) { if (ns.getNamespaceModule() == null) { return self.getInternalClass().getConstant(name); } else if (! ns.getNamespaceModule().getInstanceVariable(name).isNil()) { return (IRubyObject) ns.getNamespaceModule().getInstanceVariable(name); } } return getNamespaceModule().getConstant(name); }
|
public IRubyObject getConstant(IRubyObject self, String name) { for (Namespace ns = this; ns != null && ns.getParent() != null; ns = ns.getParent()) { if (ns.getNamespaceModule() == null) { return self.getInternalClass().getConstant(name); } else if (ns.getNamespaceModule().hasInstanceVariable(name)) { return (IRubyObject) ns.getNamespaceModule().getInstanceVariable(name); } } return getNamespaceModule().getConstant(name); }
| 3,238,155 |
protected void createServiceForFile(String name, File file, ClassLoader classLoader, ApplicationContext parentContext) throws ServiceAlreadyExistsException, ServiceRegistrationException, BeansException, IOException { if (isSpringConfigFile(file)) { // make the current directory available to spring files System.setProperty("xbean.current.file", file.getAbsolutePath()); System.setProperty("xbean.current.dir", file.getParent()); // we have to set the context class loader while loading the spring // file // so we can auto-discover xbean configurations // and perform introspection ClassLoader oldClassLoader = Thread.currentThread().getContextClassLoader(); Thread.currentThread().setContextClassLoader(classLoader); log.debug("Loading file: " + file + " using classLoader: " + classLoader); try { SpringApplicationContext applicationContext = new ResourceXmlApplicationContext(new FileSystemResource(file), xmlPreprocessors, parentContext, beanFactoryPostProcessors); applicationContext.setDisplayName(name); ServiceFactory serviceFactory = new SpringConfigurationServiceFactory(applicationContext); log.info("Registering spring services service: " + name + " from: " + file.getAbsolutePath() + " into the Kernel"); kernel.registerService(new StringServiceName(name), serviceFactory); } finally { Thread.currentThread().setContextClassLoader(oldClassLoader); } } else { if (showIgnoredFiles) { log.info("Ignoring file: " + file.getName() + " in directory: " + file.getParent()); } } }
|
protected void createServiceForFile(String name, File file, ClassLoader classLoader, ApplicationContext parentContext) throws ServiceAlreadyExistsException, ServiceRegistrationException, BeansException, IOException { if (isSpringConfigFile(file)) { // make the current directory available to spring files System.setProperty("xbean.current.file", file.getAbsolutePath()); System.setProperty("xbean.current.dir", file.getParent()); // we have to set the context class loader while loading the spring // file // so we can auto-discover xbean configurations // and perform introspection ClassLoader oldClassLoader = Thread.currentThread().getContextClassLoader(); Thread.currentThread().setContextClassLoader(classLoader); log.debug("Loading file: " + file + " using classLoader: " + classLoader); try { SpringApplicationContext applicationContext = new ResourceXmlApplicationContext(new FileSystemResource(file), xmlPreprocessors, parentContext, beanFactoryPostProcessors, false); applicationContext.setDisplayName(name); ServiceFactory serviceFactory = new SpringConfigurationServiceFactory(applicationContext); log.info("Registering spring services service: " + name + " from: " + file.getAbsolutePath() + " into the Kernel"); kernel.registerService(new StringServiceName(name), serviceFactory); } finally { Thread.currentThread().setContextClassLoader(oldClassLoader); } } else { if (showIgnoredFiles) { log.info("Ignoring file: " + file.getName() + " in directory: " + file.getParent()); } } }
| 3,238,157 |
private void initComponents(Registry registry, int maxZ, int maxT) { //buttons IconManager im = IconManager.getInstance(registry); viewer3D = new JButton(im.getIcon(IconManager.VIEWER3D)); viewer3D.setToolTipText( UIUtilities.formatToolTipText("Bring up the image3D viewer.")); viewer3D.setEnabled(maxZ == 0); saveAs = new JButton(im.getIcon(IconManager.SAVEAS)); saveAs.setToolTipText( UIUtilities.formatToolTipText("Bring up the save image window.")); inspector = new JButton(im.getIcon(IconManager.INSPECTOR)); inspector.setToolTipText( UIUtilities.formatToolTipText("Bring up the inspector panel.")); render = new JButton(im.getIcon(IconManager.RENDER)); render.setToolTipText( UIUtilities.formatToolTipText("Bring up the rendering panel.")); movie = new JButton(im.getIcon(IconManager.MOVIE)); movie.setToolTipText( UIUtilities.formatToolTipText("Bring up the movie panel.")); roi = new JButton(im.getIcon(IconManager.ROI)); roi.setToolTipText( UIUtilities.formatToolTipText("Bring up the roi panel.")); if (maxT == 0 && maxZ == 0) movie.setEnabled(false); }
|
private void initComponents(Registry registry, int maxZ, int maxT) { //buttons IconManager im = IconManager.getInstance(registry); viewer3D = new JButton(im.getIcon(IconManager.VIEWER3D)); viewer3D.setToolTipText( UIUtilities.formatToolTipText("Bring up the image3D viewer.")); viewer3D.setEnabled(maxZ != 0); saveAs = new JButton(im.getIcon(IconManager.SAVEAS)); saveAs.setToolTipText( UIUtilities.formatToolTipText("Bring up the save image window.")); inspector = new JButton(im.getIcon(IconManager.INSPECTOR)); inspector.setToolTipText( UIUtilities.formatToolTipText("Bring up the inspector panel.")); render = new JButton(im.getIcon(IconManager.RENDER)); render.setToolTipText( UIUtilities.formatToolTipText("Bring up the rendering panel.")); movie = new JButton(im.getIcon(IconManager.MOVIE)); movie.setToolTipText( UIUtilities.formatToolTipText("Bring up the movie panel.")); roi = new JButton(im.getIcon(IconManager.ROI)); roi.setToolTipText( UIUtilities.formatToolTipText("Bring up the roi panel.")); if (maxT == 0 && maxZ == 0) movie.setEnabled(false); }
| 3,238,159 |
private void initComponents(Registry registry, int maxZ, int maxT) { //buttons IconManager im = IconManager.getInstance(registry); viewer3D = new JButton(im.getIcon(IconManager.VIEWER3D)); viewer3D.setToolTipText( UIUtilities.formatToolTipText("Bring up the image3D viewer.")); viewer3D.setEnabled(maxZ == 0); saveAs = new JButton(im.getIcon(IconManager.SAVEAS)); saveAs.setToolTipText( UIUtilities.formatToolTipText("Bring up the save image window.")); inspector = new JButton(im.getIcon(IconManager.INSPECTOR)); inspector.setToolTipText( UIUtilities.formatToolTipText("Bring up the inspector panel.")); render = new JButton(im.getIcon(IconManager.RENDER)); render.setToolTipText( UIUtilities.formatToolTipText("Bring up the rendering panel.")); movie = new JButton(im.getIcon(IconManager.MOVIE)); movie.setToolTipText( UIUtilities.formatToolTipText("Bring up the movie panel.")); roi = new JButton(im.getIcon(IconManager.ROI)); roi.setToolTipText( UIUtilities.formatToolTipText("Bring up the roi panel.")); if (maxT == 0 && maxZ == 0) movie.setEnabled(false); }
|
privatevoidinitComponents(Registryregistry,intmaxZ,intmaxT){//buttonsIconManagerim=IconManager.getInstance(registry);viewer3D=newJButton(im.getIcon(IconManager.VIEWER3D));viewer3D.setToolTipText(UIUtilities.formatToolTipText("Bringuptheimage3Dviewer."));viewer3D.setEnabled(maxZ==0);saveAs=newJButton(im.getIcon(IconManager.SAVEAS));saveAs.setToolTipText(UIUtilities.formatToolTipText("Bringupthesaveimagewindow."));inspector=newJButton(im.getIcon(IconManager.INSPECTOR));inspector.setToolTipText(UIUtilities.formatToolTipText("Bringuptheinspectorpanel."));render=newJButton(im.getIcon(IconManager.RENDER));render.setToolTipText(UIUtilities.formatToolTipText("Bringuptherenderingpanel."));movie=newJButton(im.getIcon(IconManager.MOVIE));movie.setToolTipText(UIUtilities.formatToolTipText("Bringupthemoviepanel."));roi=newJButton(im.getIcon(IconManager.ROI));roi.setToolTipText(UIUtilities.formatToolTipText("Bringuptheroipanel."));if(maxT==0&&maxZ==0)movie.setEnabled(false);}
| 3,238,160 |
private void initComponents(Registry registry, int maxZ, int maxT) { //buttons IconManager im = IconManager.getInstance(registry); viewer3D = new JButton(im.getIcon(IconManager.VIEWER3D)); viewer3D.setToolTipText( UIUtilities.formatToolTipText("Bring up the image3D viewer.")); viewer3D.setEnabled(maxZ == 0); saveAs = new JButton(im.getIcon(IconManager.SAVEAS)); saveAs.setToolTipText( UIUtilities.formatToolTipText("Bring up the save image window.")); inspector = new JButton(im.getIcon(IconManager.INSPECTOR)); inspector.setToolTipText( UIUtilities.formatToolTipText("Bring up the inspector panel.")); render = new JButton(im.getIcon(IconManager.RENDER)); render.setToolTipText( UIUtilities.formatToolTipText("Bring up the rendering panel.")); movie = new JButton(im.getIcon(IconManager.MOVIE)); movie.setToolTipText( UIUtilities.formatToolTipText("Bring up the movie panel.")); roi = new JButton(im.getIcon(IconManager.ROI)); roi.setToolTipText( UIUtilities.formatToolTipText("Bring up the roi panel.")); if (maxT == 0 && maxZ == 0) movie.setEnabled(false); }
|
private void initComponents(Registry registry, int maxZ, int maxT) { //buttons IconManager im = IconManager.getInstance(registry); viewer3D = new JButton(im.getIcon(IconManager.VIEWER3D)); viewer3D.setToolTipText( UIUtilities.formatToolTipText("Bring up the image3D viewer.")); viewer3D.setEnabled(maxZ == 0); saveAs = new JButton(im.getIcon(IconManager.SAVEAS)); saveAs.setToolTipText( UIUtilities.formatToolTipText("Bring up the save image window.")); inspector = new JButton(im.getIcon(IconManager.INSPECTOR)); inspector.setToolTipText( UIUtilities.formatToolTipText("Bring up the inspector panel.")); render = new JButton(im.getIcon(IconManager.RENDER)); render.setToolTipText( UIUtilities.formatToolTipText("Bring up the rendering panel.")); movie = new JButton(im.getIcon(IconManager.MOVIE)); movie.setToolTipText( UIUtilities.formatToolTipText("Bring up the movie panel.")); roi = new JButton(im.getIcon(IconManager.ROI)); roi.setToolTipText( UIUtilities.formatToolTipText("Bring up the roi panel.")); }
| 3,238,161 |
private void initTextFields(int t, int z, int maxT, int maxZ) { zLabel = new JLabel("/"+maxZ); tLabel = new JLabel("/"+maxT); tField = new JTextField(""+t, (""+maxT).length()); //if (maxT == 0) tField.setEditable(false); tField.setEditable(maxT != 0); tField.setForeground(Viewer.STEELBLUE); tField.setToolTipText( UIUtilities.formatToolTipText("Enter a timepoint.")); zField = new JTextField(""+z, (""+maxZ).length()); zField.setForeground(Viewer.STEELBLUE); zField.setToolTipText( UIUtilities.formatToolTipText("Enter a Z point")); //if (maxZ-1 == 0) zField.setEditable(maxZ != 0); zField.setEditable(maxZ != 0); ztPanel = textFieldsPanel((""+maxZ).length(), (""+maxT).length()); }
|
privatevoidinitTextFields(intt,intz,intmaxT,intmaxZ){zLabel=newJLabel("/"+maxZ);tLabel=newJLabel("/"+maxT);tField=newJTextField(""+t,(""+maxT).length());//if(maxT==0)tField.setEditable(false);tField.setEditable(maxT!=0);tField.setForeground(Viewer.STEELBLUE);tField.setToolTipText(UIUtilities.formatToolTipText("Enteratimepoint."));zField=newJTextField(""+z,(""+maxZ).length());zField.setForeground(Viewer.STEELBLUE);zField.setToolTipText(UIUtilities.formatToolTipText("EnteraZpoint"));//if(maxZ-1==0)zField.setEditable(maxZ!=0);zField.setEditable(maxZ!=0);ztPanel=textFieldsPanel((""+maxZ).length(),(""+maxT).length());}
| 3,238,162 |
private void initTextFields(int t, int z, int maxT, int maxZ) { zLabel = new JLabel("/"+maxZ); tLabel = new JLabel("/"+maxT); tField = new JTextField(""+t, (""+maxT).length()); //if (maxT == 0) tField.setEditable(false); tField.setEditable(maxT != 0); tField.setForeground(Viewer.STEELBLUE); tField.setToolTipText( UIUtilities.formatToolTipText("Enter a timepoint.")); zField = new JTextField(""+z, (""+maxZ).length()); zField.setForeground(Viewer.STEELBLUE); zField.setToolTipText( UIUtilities.formatToolTipText("Enter a Z point")); //if (maxZ-1 == 0) zField.setEditable(maxZ != 0); zField.setEditable(maxZ != 0); ztPanel = textFieldsPanel((""+maxZ).length(), (""+maxT).length()); }
|
privatevoidinitTextFields(intt,intz,intmaxT,intmaxZ){zLabel=newJLabel("/"+maxZ);tLabel=newJLabel("/"+maxT);tField=newJTextField(""+t,(""+maxT).length());//if(maxT==0)tField.setEditable(false);tField.setEditable(maxT!=0);tField.setForeground(Viewer.STEELBLUE);tField.setToolTipText(UIUtilities.formatToolTipText("Enteratimepoint."));zField=newJTextField(""+z,(""+maxZ).length());zField.setForeground(Viewer.STEELBLUE);zField.setToolTipText(UIUtilities.formatToolTipText("EnteraZpoint"));//if(maxZ-1==0)zField.setEditable(maxZ!=0);zField.setEditable(maxZ!=0);ztPanel=textFieldsPanel((""+maxZ).length(),(""+maxT).length());}
| 3,238,163 |
public Object build(DirectiveBuilder builder, BuildContext bc) throws BuildException { try { target = (Variable) builder.getArg(ALTERNATE_TARGET, bc); } catch (ClassCastException e) { throw new NotVariableBuildException(myDescr.name, e); } list = builder.getArg(ALTERNATE_LIST, bc); return this; }
|
public Object build(DirectiveBuilder builder, BuildContext bc) throws BuildException { try { target = (Variable) builder.getArg(ALTERNATE_TARGET, bc); } catch (ClassCastException e) { throw new NotVariableBuildException(myDescr.name, e); } list = builder.getArg(ALTERNATE_LIST, bc); return this; }
| 3,238,164 |
public void write(FastWriter out, Context context) throws PropertyException, IOException { Object[] arr; try { if (list instanceof Macro) arr = (Object[]) ((Macro) list).evaluate(context); else arr = (Object[]) list; target.setValue(context, (Object) new Alternator(arr)); } catch (ClassCastException e) { String errorText = "#alternate: target is not a list: " + list; context.getBroker().getLog("engine").error(errorText); writeWarning(errorText, context, out); } catch (PropertyException e) { String errorText = "#alternate: Unable to set value: " + target + "\n" + e.toString(); context.getBroker().getLog("engine").error(errorText); writeWarning(errorText, context, out); } }
|
public void write(FastWriter out, Context context) throws PropertyException, IOException { Object l = null; try { if (list instanceof Macro) arr = (Object[]) ((Macro) list).evaluate(context); else arr = (Object[]) list; target.setValue(context, (Object) new Alternator(arr)); } catch (ClassCastException e) { String errorText = "#alternate: target is not a list: " + list; context.getBroker().getLog("engine").error(errorText); writeWarning(errorText, context, out); } catch (PropertyException e) { String errorText = "#alternate: Unable to set value: " + target + "\n" + e.toString(); context.getBroker().getLog("engine").error(errorText); writeWarning(errorText, context, out); } }
| 3,238,165 |
public void write(FastWriter out, Context context) throws PropertyException, IOException { Object[] arr; try { if (list instanceof Macro) arr = (Object[]) ((Macro) list).evaluate(context); else arr = (Object[]) list; target.setValue(context, (Object) new Alternator(arr)); } catch (ClassCastException e) { String errorText = "#alternate: target is not a list: " + list; context.getBroker().getLog("engine").error(errorText); writeWarning(errorText, context, out); } catch (PropertyException e) { String errorText = "#alternate: Unable to set value: " + target + "\n" + e.toString(); context.getBroker().getLog("engine").error(errorText); writeWarning(errorText, context, out); } }
|
public void write(FastWriter out, Context context) throws PropertyException, IOException { Object[] arr; try { if (list instanceof Macro) l = ((Macro) list).evaluate(context); else arr = (Object[]) list; target.setValue(context, (Object) new Alternator(arr)); } catch (ClassCastException e) { String errorText = "#alternate: target is not a list: " + list; context.getBroker().getLog("engine").error(errorText); writeWarning(errorText, context, out); } catch (PropertyException e) { String errorText = "#alternate: Unable to set value: " + target + "\n" + e.toString(); context.getBroker().getLog("engine").error(errorText); writeWarning(errorText, context, out); } }
| 3,238,166 |
public void write(FastWriter out, Context context) throws PropertyException, IOException { Object[] arr; try { if (list instanceof Macro) arr = (Object[]) ((Macro) list).evaluate(context); else arr = (Object[]) list; target.setValue(context, (Object) new Alternator(arr)); } catch (ClassCastException e) { String errorText = "#alternate: target is not a list: " + list; context.getBroker().getLog("engine").error(errorText); writeWarning(errorText, context, out); } catch (PropertyException e) { String errorText = "#alternate: Unable to set value: " + target + "\n" + e.toString(); context.getBroker().getLog("engine").error(errorText); writeWarning(errorText, context, out); } }
|
public void write(FastWriter out, Context context) throws PropertyException, IOException { Object[] arr; try { if (list instanceof Macro) arr = (Object[]) ((Macro) list).evaluate(context); else l = list; Iterator itr = context.getBroker()._propertyOperators.getIterator(l); target.setValue(context, (Object) new Alternator(arr)); } catch (ClassCastException e) { String errorText = "#alternate: target is not a list: " + list; context.getBroker().getLog("engine").error(errorText); writeWarning(errorText, context, out); } catch (PropertyException e) { String errorText = "#alternate: Unable to set value: " + target + "\n" + e.toString(); context.getBroker().getLog("engine").error(errorText); writeWarning(errorText, context, out); } }
| 3,238,167 |
public void write(FastWriter out, Context context) throws PropertyException, IOException { Object[] arr; try { if (list instanceof Macro) arr = (Object[]) ((Macro) list).evaluate(context); else arr = (Object[]) list; target.setValue(context, (Object) new Alternator(arr)); } catch (ClassCastException e) { String errorText = "#alternate: target is not a list: " + list; context.getBroker().getLog("engine").error(errorText); writeWarning(errorText, context, out); } catch (PropertyException e) { String errorText = "#alternate: Unable to set value: " + target + "\n" + e.toString(); context.getBroker().getLog("engine").error(errorText); writeWarning(errorText, context, out); } }
|
public void write(FastWriter out, Context context) throws PropertyException, IOException { Object[] arr; try { if (list instanceof Macro) arr = (Object[]) ((Macro) list).evaluate(context); else arr = (Object[]) list; target.setValue(context, (Object) new Alternator(arr)); } catch (ClassCastException e) { String errorText = "#alternate: target is not a list: " + list; context.getBroker().getLog("engine").error(errorText); writeWarning(errorText, context, out); } catch (PropertyException e) { String errorText = "#alternate: Unable to set value: " + target + "\n" + e.toString(); context.getBroker().getLog("engine").error(errorText); writeWarning(errorText, context, out); } }
| 3,238,168 |
public Object evaluate(Context context) { Object o = list[index++]; if (index == list.length) index = 0; return o; }
|
public Object evaluate(Context context) { Object o = list[index++]; if (index == list.length) index = 0; return o; }
| 3,238,169 |
public void write(FastWriter out, Context context) throws PropertyException, IOException { Object o = evaluate(context); if (o != null) out.write(o.toString()); }
|
public void write(FastWriter out, Context context) throws PropertyException, IOException { Object o = evaluate(context); if (o != null) out.write(o.toString()); }
| 3,238,170 |
public void setUp() { runtime = Ruby.getDefaultInstance(); }
|
public void setUp() throws Exception { super.setUp(); runtime = Ruby.getDefaultInstance(); }
| 3,238,171 |
public void testObjectSpace() { ObjectSpace os = new ObjectSpace(); IRubyObject o1 = runtime.newFixnum(10); IRubyObject o2 = runtime.newFixnum(20); IRubyObject o3 = runtime.newFixnum(30); IRubyObject o4 = runtime.newString("hello"); os.add(o1); os.add(o2); os.add(o3); os.add(o4); List storedFixnums = new ArrayList(3); storedFixnums.add(o1); storedFixnums.add(o2); storedFixnums.add(o3); Iterator strings = os.iterator(runtime.getString()); assertSame(o4, strings.next()); assertEquals(null, strings.next()); Iterator numerics = os.iterator(runtime.getClass("Numeric")); for (int i = 0; i < 3; i++) { Object item = numerics.next(); assertTrue(storedFixnums.contains(item)); } assertEquals(null, numerics.next()); }
|
public void testObjectSpace() { IRubyObject o1 = runtime.newFixnum(10); IRubyObject o2 = runtime.newFixnum(20); IRubyObject o3 = runtime.newFixnum(30); IRubyObject o4 = runtime.newString("hello"); os.add(o1); os.add(o2); os.add(o3); os.add(o4); List storedFixnums = new ArrayList(3); storedFixnums.add(o1); storedFixnums.add(o2); storedFixnums.add(o3); Iterator strings = os.iterator(runtime.getString()); assertSame(o4, strings.next()); assertEquals(null, strings.next()); Iterator numerics = os.iterator(runtime.getClass("Numeric")); for (int i = 0; i < 3; i++) { Object item = numerics.next(); assertTrue(storedFixnums.contains(item)); } assertEquals(null, numerics.next()); }
| 3,238,173 |
public void testObjectSpace() { ObjectSpace os = new ObjectSpace(); IRubyObject o1 = runtime.newFixnum(10); IRubyObject o2 = runtime.newFixnum(20); IRubyObject o3 = runtime.newFixnum(30); IRubyObject o4 = runtime.newString("hello"); os.add(o1); os.add(o2); os.add(o3); os.add(o4); List storedFixnums = new ArrayList(3); storedFixnums.add(o1); storedFixnums.add(o2); storedFixnums.add(o3); Iterator strings = os.iterator(runtime.getString()); assertSame(o4, strings.next()); assertEquals(null, strings.next()); Iterator numerics = os.iterator(runtime.getClass("Numeric")); for (int i = 0; i < 3; i++) { Object item = numerics.next(); assertTrue(storedFixnums.contains(item)); } assertEquals(null, numerics.next()); }
|
public void testObjectSpace() { ObjectSpace os = new ObjectSpace(); IRubyObject o1 = runtime.newFixnum(10); IRubyObject o2 = runtime.newFixnum(20); IRubyObject o3 = runtime.newFixnum(30); IRubyObject o4 = runtime.newString("hello"); os.add(o1); os.add(o2); os.add(o3); os.add(o4); List storedFixnums = new ArrayList(3); storedFixnums.add(o1); storedFixnums.add(o2); storedFixnums.add(o3); Iterator strings = os.iterator(runtime.getString()); assertSame(o4, strings.next()); assertEquals(null, strings.next()); Iterator numerics = os.iterator(runtime.getClass("Numeric")); for (int i = 0; i < 3; i++) { Object item = numerics.next(); assertTrue(storedFixnums.contains(item)); } assertEquals(null, numerics.next()); }
| 3,238,174 |
public void testObjectSpace() { ObjectSpace os = new ObjectSpace(); IRubyObject o1 = runtime.newFixnum(10); IRubyObject o2 = runtime.newFixnum(20); IRubyObject o3 = runtime.newFixnum(30); IRubyObject o4 = runtime.newString("hello"); os.add(o1); os.add(o2); os.add(o3); os.add(o4); List storedFixnums = new ArrayList(3); storedFixnums.add(o1); storedFixnums.add(o2); storedFixnums.add(o3); Iterator strings = os.iterator(runtime.getString()); assertSame(o4, strings.next()); assertEquals(null, strings.next()); Iterator numerics = os.iterator(runtime.getClass("Numeric")); for (int i = 0; i < 3; i++) { Object item = numerics.next(); assertTrue(storedFixnums.contains(item)); } assertEquals(null, numerics.next()); }
|
public void testObjectSpace() { ObjectSpace os = new ObjectSpace(); IRubyObject o1 = runtime.newFixnum(10); IRubyObject o2 = runtime.newFixnum(20); IRubyObject o3 = runtime.newFixnum(30); IRubyObject o4 = runtime.newString("hello"); os.add(o1); os.add(o2); os.add(o3); os.add(o4); List storedFixnums = new ArrayList(3); storedFixnums.add(o1); storedFixnums.add(o2); storedFixnums.add(o3); Iterator strings = target.iterator(runtime.getString()); assertSame(o4, strings.next()); assertEquals(null, strings.next()); Iterator numerics = os.iterator(runtime.getClass("Numeric")); for (int i = 0; i < 3; i++) { Object item = numerics.next(); assertTrue(storedFixnums.contains(item)); } assertEquals(null, numerics.next()); }
| 3,238,175 |
public void testObjectSpace() { ObjectSpace os = new ObjectSpace(); IRubyObject o1 = runtime.newFixnum(10); IRubyObject o2 = runtime.newFixnum(20); IRubyObject o3 = runtime.newFixnum(30); IRubyObject o4 = runtime.newString("hello"); os.add(o1); os.add(o2); os.add(o3); os.add(o4); List storedFixnums = new ArrayList(3); storedFixnums.add(o1); storedFixnums.add(o2); storedFixnums.add(o3); Iterator strings = os.iterator(runtime.getString()); assertSame(o4, strings.next()); assertEquals(null, strings.next()); Iterator numerics = os.iterator(runtime.getClass("Numeric")); for (int i = 0; i < 3; i++) { Object item = numerics.next(); assertTrue(storedFixnums.contains(item)); } assertEquals(null, numerics.next()); }
|
public void testObjectSpace() { ObjectSpace os = new ObjectSpace(); IRubyObject o1 = runtime.newFixnum(10); IRubyObject o2 = runtime.newFixnum(20); IRubyObject o3 = runtime.newFixnum(30); IRubyObject o4 = runtime.newString("hello"); os.add(o1); os.add(o2); os.add(o3); os.add(o4); List storedFixnums = new ArrayList(3); storedFixnums.add(o1); storedFixnums.add(o2); storedFixnums.add(o3); Iterator strings = os.iterator(runtime.getString()); assertSame(o4, strings.next()); assertEquals(null, strings.next()); Iterator numerics = target.iterator(runtime.getClass("Numeric")); for (int i = 0; i < 3; i++) { Object item = numerics.next(); assertTrue(storedFixnums.contains(item)); } assertEquals(null, numerics.next()); }
| 3,238,176 |
public void visitAliasNode(AliasNode iVisited) { iVisited.accept(_Payload); }
|
public void visitAliasNode(AliasNode iVisited) { iVisited.accept(_Payload); }
| 3,238,177 |
public void visitAndNode(AndNode iVisited) { iVisited.getFirstNode().accept(this); iVisited.accept(_Payload); iVisited.getSecondNode().accept(this); }
|
public void visitAndNode(AndNode iVisited) { iVisited.getFirstNode().accept(this); iVisited.accept(_Payload); iVisited.getSecondNode().accept(this); }
| 3,238,178 |
public void visitArgsCatNode(ArgsCatNode iVisited) { iVisited.accept(_Payload); }
|
public void visitArgsCatNode(ArgsCatNode iVisited) { iVisited.accept(_Payload); }
| 3,238,179 |
public void visitArgsNode(ArgsNode iVisited) { iVisited.accept(_Payload); Node lOptNode = iVisited.getOptNode(); if (lOptNode != null) { lOptNode.accept(this); } }
|
public void visitArgsNode(ArgsNode iVisited) { iVisited.accept(_Payload); Node lOptNode = iVisited.getOptNode(); if (lOptNode != null) { lOptNode.accept(this); } }
| 3,238,180 |
public void visitArgsPushNode(ArgsPushNode iVisited) { iVisited.accept(_Payload); }
|
public void visitArgsPushNode(ArgsPushNode iVisited) { iVisited.accept(_Payload); }
| 3,238,181 |
public void visitArrayNode(ArrayNode iVisited) { iVisited.accept(_Payload); for (Node node = iVisited; node != null; node = node.getNextNode()) { node.getHeadNode().accept(this); } }
|
public void visitArrayNode(ArrayNode iVisited) { iVisited.accept(_Payload); for (Node node = iVisited; node != null; node = node.getNextNode()) { node.getHeadNode().accept(this); } }
| 3,238,182 |
public void visitAttrSetNode(AttrSetNode iVisited) { iVisited.accept(_Payload); }
|
public void visitAttrSetNode(AttrSetNode iVisited) { iVisited.accept(_Payload); }
| 3,238,183 |
public void visitBackRefNode(BackRefNode iVisited) { iVisited.accept(_Payload); }
|
public void visitBackRefNode(BackRefNode iVisited) { iVisited.accept(_Payload); }
| 3,238,184 |
public void visitBeginNode(BeginNode iVisited) { iVisited.accept(_Payload); }
|
public void visitBeginNode(BeginNode iVisited) { iVisited.accept(_Payload); }
| 3,238,185 |
public void visitBlockArgNode(BlockArgNode iVisited) { iVisited.accept(_Payload); }
|
public void visitBlockArgNode(BlockArgNode iVisited) { iVisited.accept(_Payload); }
| 3,238,186 |
public void visitBlockNode(BlockNode iVisited) { iVisited.accept(_Payload); for (Node node = iVisited; node != null; node = node.getNextNode()) { node.getHeadNode().accept(this); } }
|
public void visitBlockNode(BlockNode iVisited) { iVisited.accept(_Payload); for (Node node = iVisited; node != null; node = node.getNextNode()) { node.getHeadNode().accept(this); } }
| 3,238,187 |
public void visitBlockPassNode(BlockPassNode iVisited) { iVisited.accept(_Payload); }
|
public void visitBlockPassNode(BlockPassNode iVisited) { iVisited.accept(_Payload); }
| 3,238,188 |
public void visitBreakNode(BreakNode iVisited) { iVisited.accept(_Payload); }
|
public void visitBreakNode(BreakNode iVisited) { iVisited.accept(_Payload); }
| 3,238,189 |
public void visitCDeclNode(CDeclNode iVisited) { iVisited.accept(_Payload); iVisited.getValueNode().accept(this); }
|
public void visitCDeclNode(CDeclNode iVisited) { iVisited.accept(_Payload); iVisited.getValueNode().accept(this); }
| 3,238,190 |
public void visitCFuncNode(CFuncNode iVisited) { iVisited.accept(_Payload); }
|
public void visitCFuncNode(CFuncNode iVisited) { iVisited.accept(_Payload); }
| 3,238,191 |
public void visitCVAsgnNode(CVAsgnNode iVisited) { iVisited.accept(_Payload); iVisited.getValueNode().accept(this); }
|
public void visitCVAsgnNode(CVAsgnNode iVisited) { iVisited.accept(_Payload); iVisited.getValueNode().accept(this); }
| 3,238,192 |
public void visitCVDeclNode(CVDeclNode iVisited) { iVisited.accept(_Payload); }
|
public void visitCVDeclNode(CVDeclNode iVisited) { iVisited.accept(_Payload); }
| 3,238,193 |
public void visitCVar2Node(CVar2Node iVisited) { iVisited.accept(_Payload); }
|
public void visitCVar2Node(CVar2Node iVisited) { iVisited.accept(_Payload); }
| 3,238,194 |
public void visitCVarNode(CVarNode iVisited) { iVisited.accept(_Payload); }
|
public void visitCVarNode(CVarNode iVisited) { iVisited.accept(_Payload); }
| 3,238,195 |
public void visitCallNode(CallNode iVisited) { iVisited.getRecvNode().accept(this); for (Node node = iVisited.getArgsNode(); node != null; node = node.getNextNode()) { node.getHeadNode().accept(this); } iVisited.accept(_Payload); }
|
public void visitCallNode(CallNode iVisited) { iVisited.getRecvNode().accept(this); for (Node node = iVisited.getArgsNode(); node != null; node = node.getNextNode()) { node.getHeadNode().accept(this); } iVisited.accept(_Payload); }
| 3,238,196 |
public void visitCaseNode(CaseNode iVisited) { iVisited.accept(_Payload); }
|
public void visitCaseNode(CaseNode iVisited) { iVisited.accept(_Payload); }
| 3,238,197 |
public void visitClassNode(ClassNode iVisited) { iVisited.accept(_Payload); Node lSuperNode = iVisited.getSuperNode(); if (lSuperNode != null) lSuperNode.accept(this); //NOTE: suprised that this is not used //iVisited.getBodyNode().accept(this); }
|
public void visitClassNode(ClassNode iVisited) { iVisited.accept(_Payload); Node lSuperNode = iVisited.getSuperNode(); if (lSuperNode != null) lSuperNode.accept(this); //NOTE: suprised that this is not used //iVisited.getBodyNode().accept(this); }
| 3,238,198 |
public void visitColon2Node(Colon2Node iVisited) { iVisited.accept(_Payload); }
|
public void visitColon2Node(Colon2Node iVisited) { iVisited.accept(_Payload); }
| 3,238,199 |
public void visitColon3Node(Colon3Node iVisited) { iVisited.accept(_Payload); }
|
public void visitColon3Node(Colon3Node iVisited) { iVisited.accept(_Payload); }
| 3,238,200 |
public void visitConstNode(ConstNode iVisited) { iVisited.accept(_Payload); }
|
public void visitConstNode(ConstNode iVisited) { iVisited.accept(_Payload); }
| 3,238,201 |
public void visitDAsgnCurrNode(DAsgnCurrNode iVisited) { iVisited.accept(_Payload); iVisited.getValueNode().accept(this); }
|
public void visitDAsgnCurrNode(DAsgnCurrNode iVisited) { iVisited.accept(_Payload); iVisited.getValueNode().accept(this); }
| 3,238,202 |
public void visitDAsgnNode(DAsgnNode iVisited) { iVisited.accept(_Payload); iVisited.getValueNode().accept(this); }
|
public void visitDAsgnNode(DAsgnNode iVisited) { iVisited.accept(_Payload); iVisited.getValueNode().accept(this); }
| 3,238,203 |
public void visitDRegxNode(DRegxNode iVisited) { iVisited.accept(_Payload); }
|
public void visitDRegxNode(DRegxNode iVisited) { iVisited.accept(_Payload); }
| 3,238,204 |
public void visitDRegxOnceNode(DRegxOnceNode iVisited) { iVisited.accept(_Payload); }
|
public void visitDRegxOnceNode(DRegxOnceNode iVisited) { iVisited.accept(_Payload); }
| 3,238,205 |
public void visitDStrNode(DStrNode iVisited) { iVisited.accept(_Payload); }
|
public void visitDStrNode(DStrNode iVisited) { iVisited.accept(_Payload); }
| 3,238,206 |
public void visitDVarNode(DVarNode iVisited) { iVisited.accept(_Payload); }
|
public void visitDVarNode(DVarNode iVisited) { iVisited.accept(_Payload); }
| 3,238,207 |
public void visitDXStrNode(DXStrNode iVisited) { iVisited.accept(_Payload); }
|
public void visitDXStrNode(DXStrNode iVisited) { iVisited.accept(_Payload); }
| 3,238,208 |
public void visitDefinedNode(DefinedNode iVisited) { iVisited.accept(_Payload); }
|
public void visitDefinedNode(DefinedNode iVisited) { iVisited.accept(_Payload); }
| 3,238,209 |
public void visitDefnNode(DefnNode iVisited) { iVisited.accept(_Payload); iVisited.getDefnNode().accept(this); }
|
public void visitDefnNode(DefnNode iVisited) { iVisited.accept(_Payload); iVisited.getDefnNode().accept(this); }
| 3,238,210 |
public void visitDefsNode(DefsNode iVisited) { iVisited.accept(_Payload); iVisited.getRecvNode().accept(this); }
|
public void visitDefsNode(DefsNode iVisited) { iVisited.accept(_Payload); iVisited.getRecvNode().accept(this); }
| 3,238,211 |
public void visitDotNode(DotNode iVisited) { iVisited.accept(_Payload); }
|
public void visitDotNode(DotNode iVisited) { iVisited.accept(_Payload); }
| 3,238,212 |
public void visitEnsureNode(EnsureNode iVisited) { iVisited.accept(_Payload); }
|
public void visitEnsureNode(EnsureNode iVisited) { iVisited.accept(_Payload); }
| 3,238,213 |
public void visitEvStrNode(EvStrNode iVisited) { iVisited.accept(_Payload); }
|
public void visitEvStrNode(EvStrNode iVisited) { iVisited.accept(_Payload); }
| 3,238,214 |
public void visitFBodyNode(FBodyNode iVisited) { iVisited.accept(_Payload); }
|
public void visitFBodyNode(FBodyNode iVisited) { iVisited.accept(_Payload); }
| 3,238,215 |
public void visitFCallNode(FCallNode iVisited) { iVisited.accept(_Payload); for (Node node = iVisited.getArgsNode(); node != null; node = node.getNextNode()) { node.getHeadNode().accept(this); } }
|
public void visitFCallNode(FCallNode iVisited) { iVisited.accept(_Payload); for (Node node = iVisited.getArgsNode(); node != null; node = node.getNextNode()) { node.getHeadNode().accept(this); } }
| 3,238,216 |
public void visitFalseNode(FalseNode iVisited) { iVisited.accept(_Payload); }
|
public void visitFalseNode(FalseNode iVisited) { iVisited.accept(_Payload); }
| 3,238,217 |
public void visitFlipNode(FlipNode iVisited) { iVisited.accept(_Payload); }
|
public void visitFlipNode(FlipNode iVisited) { iVisited.accept(_Payload); }
| 3,238,218 |
public void visitForNode(ForNode iVisited) { iVisited.accept(_Payload); }
|
public void visitForNode(ForNode iVisited) { iVisited.accept(_Payload); }
| 3,238,219 |
public void visitGAsgnNode(GAsgnNode iVisited) { iVisited.accept(_Payload); iVisited.getValueNode().accept(this); }
|
public void visitGAsgnNode(GAsgnNode iVisited) { iVisited.accept(_Payload); iVisited.getValueNode().accept(this); }
| 3,238,220 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.