bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public void setModuleExecution(org.openmicroscopy.omero.model.ModuleExecution moduleExecution) { this.moduleExecution = moduleExecution; }
public void setModuleExecution(ModuleExecution moduleExecution) { this.moduleExecution = moduleExecution; }
3,230,639
private void addInstrumentation(File file) { if (isClass(file)) { addInstrumentationToSingleClass(file); } else if (file.isDirectory()) { File[] contents = file.listFiles(); for (int i = 0; i < contents.length; i++) addInstrumentation(contents[i]); } else if (isArchive(file)) { addInstrumentationToArchive(file); } }
private void addInstrumentation(File file) { if (isClass(file)) { addInstrumentationToSingleClass(file); } else if (file.isDirectory()) { File[] contents = file.listFiles(); for (int i = 0; i < contents.length; i++) addInstrumentation(contents[i]); } else if (isArchive(file)) { addInstrumentationToArchive(file); } }
3,230,640
private void addInstrumentation(File file) { if (isClass(file)) { addInstrumentationToSingleClass(file); } else if (file.isDirectory()) { File[] contents = file.listFiles(); for (int i = 0; i < contents.length; i++) addInstrumentation(contents[i]); } else if (isArchive(file)) { addInstrumentationToArchive(file); } }
private void addInstrumentation(File file) { if (isClass(file)) { addInstrumentationToSingleClass(file); } else if (file.isDirectory()) { File[] contents = file.listFiles(); for (int i = 0; i < contents.length; i++) addInstrumentation(contents[i]); } else if (isArchive(file)) { addInstrumentationToArchive(file); } }
3,230,641
private void addInstrumentationToArchive(ZipInputStream archive, ZipOutputStream output) throws Exception { ZipEntry entry; while ((entry = archive.getNextEntry()) != null) { try { ZipEntry outputEntry = new ZipEntry(entry.getName()); output.putNextEntry(outputEntry); // Read current entry byte[] entryBytes = IOUtil .createByteArrayFromInputStream(archive); // Check if we have class file if (isClass(entry)) { // Instrument class ClassReader cr = new ClassReader(entryBytes); ClassWriter cw = new ClassWriter(true); ClassInstrumenter cv = new ClassInstrumenter(projectData, cw, ignoreRegex); cr.accept(cv, false); // If class was instrumented, get bytes that define the // class if (cv.isInstrumented()) { logger.debug("Putting instrumeted entry: " + entry.getName()); entryBytes = cw.toByteArray(); } } // Add entry to the output output.write(entryBytes); output.closeEntry(); archive.closeEntry(); } catch (Exception e) { logger.warn("Problems with archive entry: " + entry); throw e; } output.flush(); } }
private void addInstrumentationToArchive(ZipInputStream archive, ZipOutputStream output) throws Exception { ZipEntry entry; while ((entry = archive.getNextEntry()) != null) { try { ZipEntry outputEntry = new ZipEntry(entry.getName()); output.putNextEntry(outputEntry); // Read current entry byte[] entryBytes = IOUtil .createByteArrayFromInputStream(archive); // Check if we have class file if (isClass(entry)) { // Instrument class ClassReader cr = new ClassReader(entryBytes); ClassWriter cw = new ClassWriter(true); ClassInstrumenter cv = new ClassInstrumenter(projectData, cw, ignoreRegex); cr.accept(cv, false); // If class was instrumented, get bytes that define the // class if (cv.isInstrumented()) { logger.debug("Putting instrumeted entry: " + entry.getName()); entryBytes = cw.toByteArray(); } } // Add entry to the output output.write(entryBytes); output.closeEntry(); archive.closeEntry(); } catch (Exception e) { logger.warn("Problems with archive entry: " + entry); throw e; } output.flush(); } }
3,230,642
private void addInstrumentationToArchive(ZipInputStream archive, ZipOutputStream output) throws Exception { ZipEntry entry; while ((entry = archive.getNextEntry()) != null) { try { ZipEntry outputEntry = new ZipEntry(entry.getName()); output.putNextEntry(outputEntry); // Read current entry byte[] entryBytes = IOUtil .createByteArrayFromInputStream(archive); // Check if we have class file if (isClass(entry)) { // Instrument class ClassReader cr = new ClassReader(entryBytes); ClassWriter cw = new ClassWriter(true); ClassInstrumenter cv = new ClassInstrumenter(projectData, cw, ignoreRegex); cr.accept(cv, false); // If class was instrumented, get bytes that define the // class if (cv.isInstrumented()) { logger.debug("Putting instrumeted entry: " + entry.getName()); entryBytes = cw.toByteArray(); } } // Add entry to the output output.write(entryBytes); output.closeEntry(); archive.closeEntry(); } catch (Exception e) { logger.warn("Problems with archive entry: " + entry); throw e; } output.flush(); } }
private void addInstrumentationToArchive(ZipInputStream archive, ZipOutputStream output) throws Exception { ZipEntry entry; while ((entry = archive.getNextEntry()) != null) { try { ZipEntry outputEntry = new ZipEntry(entry.getName()); output.putNextEntry(outputEntry); // Read current entry byte[] entryBytes = IOUtil .createByteArrayFromInputStream(archive); // Check if we have class file if (isClass(entry)) { // Instrument class ClassReader cr = new ClassReader(entryBytes); ClassWriter cw = new ClassWriter(true); ClassInstrumenter cv = new ClassInstrumenter(projectData, cw, ignoreRegex); cr.accept(cv, false); // If class was instrumented, get bytes that define the // class if (cv.isInstrumented()) { logger.debug("Putting instrumeted entry: " + entry.getName()); entryBytes = cw.toByteArray(); } } // Add entry to the output output.write(entryBytes); output.closeEntry(); archive.closeEntry(); } catch (Exception e) { logger.warn("Problems with archive entry: " + entry); throw e; } output.flush(); } }
3,230,643
private void addInstrumentationToArchive(ZipInputStream archive, ZipOutputStream output) throws Exception { ZipEntry entry; while ((entry = archive.getNextEntry()) != null) { try { ZipEntry outputEntry = new ZipEntry(entry.getName()); output.putNextEntry(outputEntry); // Read current entry byte[] entryBytes = IOUtil .createByteArrayFromInputStream(archive); // Check if we have class file if (isClass(entry)) { // Instrument class ClassReader cr = new ClassReader(entryBytes); ClassWriter cw = new ClassWriter(true); ClassInstrumenter cv = new ClassInstrumenter(projectData, cw, ignoreRegex); cr.accept(cv, false); // If class was instrumented, get bytes that define the // class if (cv.isInstrumented()) { logger.debug("Putting instrumeted entry: " + entry.getName()); entryBytes = cw.toByteArray(); } } // Add entry to the output output.write(entryBytes); output.closeEntry(); archive.closeEntry(); } catch (Exception e) { logger.warn("Problems with archive entry: " + entry); throw e; } output.flush(); } }
private void addInstrumentationToArchive(ZipInputStream archive, ZipOutputStream output) throws Exception { ZipEntry entry; while ((entry = archive.getNextEntry()) != null) { try { ZipEntry outputEntry = new ZipEntry(entry.getName()); output.putNextEntry(outputEntry); // Read current entry byte[] entryBytes = IOUtil .createByteArrayFromInputStream(archive); // Check if we have class file if (isClass(entry)) { // Instrument class ClassReader cr = new ClassReader(entryBytes); ClassWriter cw = new ClassWriter(true); ClassInstrumenter cv = new ClassInstrumenter(projectData, cw, ignoreRegex); cr.accept(cv, false); // If class was instrumented, get bytes that define the // class if (cv.isInstrumented()) { logger.debug("Putting instrumeted entry: " + entry.getName()); entryBytes = cw.toByteArray(); } } // Add entry to the output output.write(entryBytes); output.closeEntry(); archive.closeEntry(); } catch (Exception e) { logger.warn("Problems with archive entry: " + entry); throw e; } output.flush(); } }
3,230,644
private void addInstrumentationToArchive(ZipInputStream archive, ZipOutputStream output) throws Exception { ZipEntry entry; while ((entry = archive.getNextEntry()) != null) { try { ZipEntry outputEntry = new ZipEntry(entry.getName()); output.putNextEntry(outputEntry); // Read current entry byte[] entryBytes = IOUtil .createByteArrayFromInputStream(archive); // Check if we have class file if (isClass(entry)) { // Instrument class ClassReader cr = new ClassReader(entryBytes); ClassWriter cw = new ClassWriter(true); ClassInstrumenter cv = new ClassInstrumenter(projectData, cw, ignoreRegex); cr.accept(cv, false); // If class was instrumented, get bytes that define the // class if (cv.isInstrumented()) { logger.debug("Putting instrumeted entry: " + entry.getName()); entryBytes = cw.toByteArray(); } } // Add entry to the output output.write(entryBytes); output.closeEntry(); archive.closeEntry(); } catch (Exception e) { logger.warn("Problems with archive entry: " + entry); throw e; } output.flush(); } }
private void addInstrumentationToArchive(ZipInputStream archive, ZipOutputStream output) throws Exception { ZipEntry entry; while ((entry = archive.getNextEntry()) != null) { try { ZipEntry outputEntry = new ZipEntry(entry.getName()); output.putNextEntry(outputEntry); // Read current entry byte[] entryBytes = IOUtil .createByteArrayFromInputStream(archive); // Check if we have class file if (isClass(entry)) { // Instrument class ClassReader cr = new ClassReader(entryBytes); ClassWriter cw = new ClassWriter(true); ClassInstrumenter cv = new ClassInstrumenter(projectData, cw, ignoreRegex); cr.accept(cv, false); // If class was instrumented, get bytes that define the // class if (cv.isInstrumented()) { logger.debug("Putting instrumeted entry: " + entry.getName()); entryBytes = cw.toByteArray(); } } // Add entry to the output output.write(entryBytes); output.closeEntry(); archive.closeEntry(); } catch (Exception e) { logger.warn("Problems with archive entry: " + entry); throw e; } output.flush(); } }
3,230,645
private void addInstrumentationToArchive(ZipInputStream archive, ZipOutputStream output) throws Exception { ZipEntry entry; while ((entry = archive.getNextEntry()) != null) { try { ZipEntry outputEntry = new ZipEntry(entry.getName()); output.putNextEntry(outputEntry); // Read current entry byte[] entryBytes = IOUtil .createByteArrayFromInputStream(archive); // Check if we have class file if (isClass(entry)) { // Instrument class ClassReader cr = new ClassReader(entryBytes); ClassWriter cw = new ClassWriter(true); ClassInstrumenter cv = new ClassInstrumenter(projectData, cw, ignoreRegex); cr.accept(cv, false); // If class was instrumented, get bytes that define the // class if (cv.isInstrumented()) { logger.debug("Putting instrumeted entry: " + entry.getName()); entryBytes = cw.toByteArray(); } } // Add entry to the output output.write(entryBytes); output.closeEntry(); archive.closeEntry(); } catch (Exception e) { logger.warn("Problems with archive entry: " + entry); throw e; } output.flush(); } }
private void addInstrumentationToArchive(ZipInputStream archive, ZipOutputStream output) throws Exception { ZipEntry entry; while ((entry = archive.getNextEntry()) != null) { try { ZipEntry outputEntry = new ZipEntry(entry.getName()); output.putNextEntry(outputEntry); // Read current entry byte[] entryBytes = IOUtil .createByteArrayFromInputStream(archive); // Check if we have class file if (isClass(entry)) { // Instrument class ClassReader cr = new ClassReader(entryBytes); ClassWriter cw = new ClassWriter(true); ClassInstrumenter cv = new ClassInstrumenter(projectData, cw, ignoreRegex); cr.accept(cv, false); // If class was instrumented, get bytes that define the // class if (cv.isInstrumented()) { logger.debug("Putting instrumeted entry: " + entry.getName()); entryBytes = cw.toByteArray(); } } // Add entry to the output output.write(entryBytes); output.closeEntry(); archive.closeEntry(); } catch (Exception e) { logger.warn("Problems with archive entry: " + entry); throw e; } output.flush(); } }
3,230,646
private void addInstrumentationToArchive(ZipInputStream archive, ZipOutputStream output) throws Exception { ZipEntry entry; while ((entry = archive.getNextEntry()) != null) { try { ZipEntry outputEntry = new ZipEntry(entry.getName()); output.putNextEntry(outputEntry); // Read current entry byte[] entryBytes = IOUtil .createByteArrayFromInputStream(archive); // Check if we have class file if (isClass(entry)) { // Instrument class ClassReader cr = new ClassReader(entryBytes); ClassWriter cw = new ClassWriter(true); ClassInstrumenter cv = new ClassInstrumenter(projectData, cw, ignoreRegex); cr.accept(cv, false); // If class was instrumented, get bytes that define the // class if (cv.isInstrumented()) { logger.debug("Putting instrumeted entry: " + entry.getName()); entryBytes = cw.toByteArray(); } } // Add entry to the output output.write(entryBytes); output.closeEntry(); archive.closeEntry(); } catch (Exception e) { logger.warn("Problems with archive entry: " + entry); throw e; } output.flush(); } }
private void addInstrumentationToArchive(ZipInputStream archive, ZipOutputStream output) throws Exception { ZipEntry entry; while ((entry = archive.getNextEntry()) != null) { try { ZipEntry outputEntry = new ZipEntry(entry.getName()); output.putNextEntry(outputEntry); // Read current entry byte[] entryBytes = IOUtil .createByteArrayFromInputStream(archive); // Check if we have class file if (isClass(entry)) { // Instrument class ClassReader cr = new ClassReader(entryBytes); ClassWriter cw = new ClassWriter(true); ClassInstrumenter cv = new ClassInstrumenter(projectData, cw, ignoreRegex); cr.accept(cv, false); // If class was instrumented, get bytes that define the // class if (cv.isInstrumented()) { logger.debug("Putting instrumeted entry: " + entry.getName()); entryBytes = cw.toByteArray(); } } // Add entry to the output output.write(entryBytes); output.closeEntry(); archive.closeEntry(); } catch (Exception e) { logger.warn("Problems with archive entry: " + entry); throw e; } output.flush(); } }
3,230,647
private void addInstrumentationToSingleClass(File file) { logger.debug("Instrumenting class " + file.getAbsolutePath()); InputStream inputStream = null; ClassWriter cw; ClassInstrumenter cv; try { inputStream = new FileInputStream(file); ClassReader cr = new ClassReader(inputStream); cw = new ClassWriter(true); cv = new ClassInstrumenter(projectData, cw, ignoreRegex); cr.accept(cv, false); } catch (Throwable t) { logger.warn("Unable to instrument file " + file.getAbsolutePath(), t); return; } finally { if (inputStream != null) { try { inputStream.close(); } catch (IOException e) { } } } OutputStream outputStream = null; try { if (cv.isInstrumented()) { // If destinationDirectory is null, then overwrite // the original, uninstrumented file. File outputFile; if (destinationDirectory == null) outputFile = file; else outputFile = new File(destinationDirectory, cv .getClassName().replace('.', File.separatorChar) + ".class"); File parentFile = outputFile.getParentFile(); if (parentFile != null) { parentFile.mkdirs(); } byte[] instrumentedClass = cw.toByteArray(); outputStream = new FileOutputStream(outputFile); outputStream.write(instrumentedClass); } } catch (IOException e) { logger.warn("Unable to instrument file " + file.getAbsolutePath(), e); return; } finally { if (outputStream != null) { try { outputStream.close(); } catch (IOException e) { } } } }
private void addInstrumentationToSingleClass(File file) { logger.debug("Instrumenting class " + file.getAbsolutePath()); InputStream inputStream = null; ClassWriter cw; ClassInstrumenter cv; try { inputStream = new FileInputStream(file); ClassReader cr = new ClassReader(inputStream); cw = new ClassWriter(true); cv = new ClassInstrumenter(projectData, cw, ignoreRegex); cr.accept(cv, false); } catch (Throwable t) { logger.warn("Unable to instrument file " + file.getAbsolutePath(), t); return; } finally { if (inputStream != null) { try { inputStream.close(); } catch (IOException e) { } } } OutputStream outputStream = null; try { if (cv.isInstrumented()) { // If destinationDirectory is null, then overwrite // the original, uninstrumented file. File outputFile; if (destinationDirectory == null) outputFile = file; else outputFile = new File(destinationDirectory, cv .getClassName().replace('.', File.separatorChar) + ".class"); File parentFile = outputFile.getParentFile(); if (parentFile != null) { parentFile.mkdirs(); } byte[] instrumentedClass = cw.toByteArray(); outputStream = new FileOutputStream(outputFile); outputStream.write(instrumentedClass); } } catch (IOException e) { logger.warn("Unable to instrument file " + file.getAbsolutePath(), e); return; } finally { if (outputStream != null) { try { outputStream.close(); } catch (IOException e) { } } } }
3,230,648
public static void main(String[] args) { long startTime = System.currentTimeMillis(); Main main = new Main(); boolean hasCommandsFile = false; String commandsFileName = null; for (int i = 0; i < args.length; i++) { if (args[i].equals("--commandsfile")) { hasCommandsFile = true; commandsFileName = args[++i]; } } if (hasCommandsFile) { List arglist = new ArrayList(); BufferedReader bufferedReader = null; try { bufferedReader = new BufferedReader(new FileReader( commandsFileName)); String line; while ((line = bufferedReader.readLine()) != null) arglist.add(line); } catch (IOException e) { logger.fatal("Unable to read temporary commands file " + commandsFileName + "."); logger.info(e); } finally { if (bufferedReader != null) { try { bufferedReader.close(); } catch (IOException e) { } } } args = (String[])arglist.toArray(new String[arglist.size()]); } main.parseArguments(args); long stopTime = System.currentTimeMillis(); System.out.println("Instrument time: " + (stopTime - startTime) + "ms"); }
public static void main(String[] args) { long startTime = System.currentTimeMillis(); Main main = new Main(); boolean hasCommandsFile = false; String commandsFileName = null; for (int i = 0; i < args.length; i++) { if (args[i].equals("--commandsfile")) { hasCommandsFile = true; commandsFileName = args[++i]; } } if (hasCommandsFile) { List arglist = new ArrayList(); BufferedReader bufferedReader = null; try { bufferedReader = new BufferedReader(new FileReader( commandsFileName)); String line; while ((line = bufferedReader.readLine()) != null) arglist.add(line); } catch (IOException e) { logger.fatal("Unable to read temporary commands file " + commandsFileName + "."); logger.info(e); } finally { if (bufferedReader != null) { try { bufferedReader.close(); } catch (IOException e) { } } } args = (String[])arglist.toArray(new String[arglist.size()]); } main.parseArguments(args); long stopTime = System.currentTimeMillis(); System.out.println("Instrument time: " + (stopTime - startTime) + "ms"); }
3,230,649
public static void main(String[] args) { long startTime = System.currentTimeMillis(); Main main = new Main(); boolean hasCommandsFile = false; String commandsFileName = null; for (int i = 0; i < args.length; i++) { if (args[i].equals("--commandsfile")) { hasCommandsFile = true; commandsFileName = args[++i]; } } if (hasCommandsFile) { List arglist = new ArrayList(); BufferedReader bufferedReader = null; try { bufferedReader = new BufferedReader(new FileReader( commandsFileName)); String line; while ((line = bufferedReader.readLine()) != null) arglist.add(line); } catch (IOException e) { logger.fatal("Unable to read temporary commands file " + commandsFileName + "."); logger.info(e); } finally { if (bufferedReader != null) { try { bufferedReader.close(); } catch (IOException e) { } } } args = (String[])arglist.toArray(new String[arglist.size()]); } main.parseArguments(args); long stopTime = System.currentTimeMillis(); System.out.println("Instrument time: " + (stopTime - startTime) + "ms"); }
public static void main(String[] args) { long startTime = System.currentTimeMillis(); Main main = new Main(); boolean hasCommandsFile = false; String commandsFileName = null; for (int i = 0; i < args.length; i++) { if (args[i].equals("--commandsfile")) { hasCommandsFile = true; commandsFileName = args[++i]; } } if (hasCommandsFile) { List arglist = new ArrayList(); BufferedReader bufferedReader = null; try { bufferedReader = new BufferedReader(new FileReader( commandsFileName)); String line; while ((line = bufferedReader.readLine()) != null) arglist.add(line); } catch (IOException e) { logger.fatal("Unable to read temporary commands file " + commandsFileName + "."); logger.info(e); } finally { if (bufferedReader != null) { try { bufferedReader.close(); } catch (IOException e) { } } } args = (String[])arglist.toArray(new String[arglist.size()]); } main.parseArguments(args); long stopTime = System.currentTimeMillis(); System.out.println("Instrument time: " + (stopTime - startTime) + "ms"); }
3,230,650
BrowserCanvas(BrowserModel model, BrowserUI view) { if (model == null) throw new NullPointerException("No model."); if (view == null) throw new NullPointerException("No view."); this.model = model; this.view = view; charWidth = getFontMetrics(getFont()).charWidth('m'); setDoubleBuffered(true); }
BrowserCanvas(BrowserModel model, BrowserUI view) { if (model == null) throw new NullPointerException("No model."); if (view == null) throw new NullPointerException("No view."); this.model = model; this.view = view; setDoubleBuffered(true); }
3,230,651
public void paintComponent(Graphics g) { super.paintComponent(g); Graphics2D g2D = (Graphics2D) g; g2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g2D.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY); g2D.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR); BufferedImage img = model.getDisplayedImage(); if (img == null) return; //paintXYFrame(g2D); g2D.drawImage(img, null, 0, 0); double v = model.getPixelsSizeX()/model.getZoomFactor(); v *= model.getUnitBarSize(); String value; double c = v; if (Math.ceil(v) == c) value = ""+(int) c; else value = ""+c; int size = (int) model.getUnitBarSize(); if (v > 0 && model.isUnitBar()) { paintScaleBar(g2D, img.getWidth()-size-5, img.getHeight()-10, size, value); } }
public void paintComponent(Graphics g) { super.paintComponent(g); Graphics2D g2D = (Graphics2D) g; g2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g2D.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY); g2D.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR); BufferedImage img = model.getDisplayedImage(); if (img == null) return; //paintXYFrame(g2D); g2D.drawImage(img, null, 0, 0); double v = model.getPixelsSizeX()/model.getZoomFactor(); v *= model.getUnitBarSize(); String value; double c = v; if (Math.ceil(v) == c) value = ""+(int) c; else value = ""+c; int size = (int) model.getUnitBarSize(); if (v > 0 && model.isUnitBar()) { paintScaleBar(g2D, img.getWidth()-size-5, img.getHeight()-10, size, value); } }
3,230,652
public void paintComponent(Graphics g) { super.paintComponent(g); Graphics2D g2D = (Graphics2D) g; g2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g2D.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY); g2D.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR); BufferedImage img = model.getDisplayedImage(); if (img == null) return; //paintXYFrame(g2D); g2D.drawImage(img, null, 0, 0); double v = model.getPixelsSizeX()/model.getZoomFactor(); v *= model.getUnitBarSize(); String value; double c = v; if (Math.ceil(v) == c) value = ""+(int) c; else value = ""+c; int size = (int) model.getUnitBarSize(); if (v > 0 && model.isUnitBar()) { paintScaleBar(g2D, img.getWidth()-size-5, img.getHeight()-10, size, value); } }
public void paintComponent(Graphics g) { super.paintComponent(g); Graphics2D g2D = (Graphics2D) g; g2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g2D.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY); g2D.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR); BufferedImage img = model.getDisplayedImage(); if (img == null) return; //paintXYFrame(g2D); g2D.drawImage(img, null, 0, 0); double v = model.getPixelsSizeX()/model.getZoomFactor(); v *= model.getUnitBarSize(); String value; double c = v; if (Math.ceil(v) == c) value = ""+(int) c; else value = ""+c; int size = (int) model.getUnitBarSize(); if (v > 0 && model.isUnitBar()) { paintScaleBar(g2D, img.getWidth()-size-10, img.getHeight()-10, size, value); } }
3,230,653
protected static RubyThread startThread( final Ruby ruby, RubyObject recv, final RubyObject[] args, boolean callInit) { if (!ruby.isBlockGiven()) { System.out.println("No block given to thread!"); } else { System.out.println( "The block was passed to the thread constructor"); } RubyThread result = new RubyThread(ruby, (RubyClass) recv); if (callInit) { result.callInit(args); } final RubyProc proc = RubyProc.newProc(ruby, ruby.getClasses().getProcClass()); //result.jvmThread = new Thread(result.new RubyThreadRunner(ruby, args)); result.jvmThread = new Thread(new Runnable() { public void run() { if (ruby.isBlockGiven()) { System.out.println("THE BLOCK HAS PROPOGATED!"); /* ruby.yield( RubyArray.newArray( ruby, new ArrayList(Arrays.asList(args)))); */ proc.call(args); } else { System.out.println("The block did not propogate"); } } }); result.threads.put(result.jvmThread, result); result.locals = new HashMap(); result.jvmThread.start(); return result; }
protected static RubyThread startThread( final Ruby ruby, RubyObject recv, final RubyObject[] args, boolean callInit) { if (!ruby.isBlockGiven()) { System.out.println("No block given to thread!"); } else { System.out.println( "The block was passed to the thread constructor"); } RubyThread result = new RubyThread(ruby, (RubyClass) recv); if (callInit) { result.callInit(args); } final RubyProc proc = RubyProc.newProc(ruby, ruby.getClasses().getProcClass()); //result.jvmThread = new Thread(result.new RubyThreadRunner(ruby, args)); result.jvmThread = new Thread(new Runnable() { public void run() { if (ruby.isBlockGiven()) { System.out.println("THE BLOCK HAS PROPOGATED!"); /* ruby.yield( RubyArray.newArray( ruby, new ArrayList(Arrays.asList(args)))); */ proc.call(args); } else { System.out.println("The block did not propogate"); } } }); result.threads.put(result.jvmThread, result); result.locals = new HashMap(); result.jvmThread.start(); return result; }
3,230,654
protected static RubyThread startThread( final Ruby ruby, RubyObject recv, final RubyObject[] args, boolean callInit) { if (!ruby.isBlockGiven()) { System.out.println("No block given to thread!"); } else { System.out.println( "The block was passed to the thread constructor"); } RubyThread result = new RubyThread(ruby, (RubyClass) recv); if (callInit) { result.callInit(args); } final RubyProc proc = RubyProc.newProc(ruby, ruby.getClasses().getProcClass()); //result.jvmThread = new Thread(result.new RubyThreadRunner(ruby, args)); result.jvmThread = new Thread(new Runnable() { public void run() { if (ruby.isBlockGiven()) { System.out.println("THE BLOCK HAS PROPOGATED!"); /* ruby.yield( RubyArray.newArray( ruby, new ArrayList(Arrays.asList(args)))); */ proc.call(args); } else { System.out.println("The block did not propogate"); } } }); result.threads.put(result.jvmThread, result); result.locals = new HashMap(); result.jvmThread.start(); return result; }
protected static RubyThread startThread( final Ruby ruby, RubyObject recv, final RubyObject[] args, boolean callInit) { if (!ruby.isBlockGiven()) { System.out.println("No block given to thread!"); } else { System.out.println( "The block was passed to the thread constructor"); } RubyThread result = new RubyThread(ruby, (RubyClass) recv); if (callInit) { result.callInit(args); } final RubyProc proc = RubyProc.newProc(ruby, ruby.getClasses().getProcClass()); //result.jvmThread = new Thread(result.new RubyThreadRunner(ruby, args)); result.jvmThread = new Thread(new Runnable() { public void run() { if (ruby.isBlockGiven()) { System.out.println("THE BLOCK HAS PROPOGATED!"); /* ruby.yield( RubyArray.newArray( ruby, new ArrayList(Arrays.asList(args)))); */ proc.call(args); } else { System.out.println("The block did not propogate"); } } }); result.threads.put(result.jvmThread, result); result.locals = new HashMap(); result.jvmThread.start(); return result; }
3,230,655
protected static RubyThread startThread( final Ruby ruby, RubyObject recv, final RubyObject[] args, boolean callInit) { if (!ruby.isBlockGiven()) { System.out.println("No block given to thread!"); } else { System.out.println( "The block was passed to the thread constructor"); } RubyThread result = new RubyThread(ruby, (RubyClass) recv); if (callInit) { result.callInit(args); } final RubyProc proc = RubyProc.newProc(ruby, ruby.getClasses().getProcClass()); //result.jvmThread = new Thread(result.new RubyThreadRunner(ruby, args)); result.jvmThread = new Thread(new Runnable() { public void run() { if (ruby.isBlockGiven()) { System.out.println("THE BLOCK HAS PROPOGATED!"); /* ruby.yield( RubyArray.newArray( ruby, new ArrayList(Arrays.asList(args)))); */ proc.call(args); } else { System.out.println("The block did not propogate"); } } }); result.threads.put(result.jvmThread, result); result.locals = new HashMap(); result.jvmThread.start(); return result; }
protected static RubyThread startThread( final Ruby ruby, RubyObject recv, final RubyObject[] args, boolean callInit) { if (!ruby.isBlockGiven()) { System.out.println("No block given to thread!"); } else { System.out.println( "The block was passed to the thread constructor"); } RubyThread result = new RubyThread(ruby, (RubyClass) recv); if (callInit) { result.callInit(args); } final RubyProc proc = RubyProc.newProc(ruby, ruby.getClasses().getProcClass()); //result.jvmThread = new Thread(result.new RubyThreadRunner(ruby, args)); result.jvmThread = new Thread(new Runnable() { public void run() { if (ruby.isBlockGiven()) { System.out.println("THE BLOCK HAS PROPOGATED!"); /* ruby.yield( RubyArray.newArray( ruby, new ArrayList(Arrays.asList(args)))); */ proc.call(args); } else { System.out.println("The block did not propogate"); } } }); result.threads.put(result.jvmThread, result); result.locals = new HashMap(); result.jvmThread.start(); return result; }
3,230,656
public void run() { if (ruby.isBlockGiven()) { System.out.println("THE BLOCK HAS PROPOGATED!"); /* ruby.yield( RubyArray.newArray( ruby, new ArrayList(Arrays.asList(args)))); */ proc.call(args); } else { System.out.println("The block did not propogate"); } }
public void run() { if (ruby.isBlockGiven()) { System.out.println("THE BLOCK HAS PROPOGATED!"); /* ruby.yield( RubyArray.newArray( ruby, new ArrayList(Arrays.asList(args)))); */ proc.call(args); } else { System.out.println("The block did not propogate"); } }
3,230,657
public void run() { if (ruby.isBlockGiven()) { System.out.println("THE BLOCK HAS PROPOGATED!"); /* ruby.yield( RubyArray.newArray( ruby, new ArrayList(Arrays.asList(args)))); */ proc.call(args); } else { System.out.println("The block did not propogate"); } }
public void run() { if (ruby.isBlockGiven()) { System.out.println("THE BLOCK HAS PROPOGATED!"); /* ruby.yield( RubyArray.newArray( ruby, new ArrayList(Arrays.asList(args)))); */ proc.call(args); } else { System.out.println("The block did not propogate"); } }
3,230,658
public RoomList() { super(new String[]{" ", "Name", "Address", "Occupants"}); getColumnModel().setColumnMargin(0); getColumnModel().getColumn(0).setMaxWidth(30); getColumnModel().getColumn(3).setMaxWidth(80); setSelectionBackground(Table.SELECTION_COLOR); setSelectionMode(ListSelectionModel.SINGLE_SELECTION); setRowSelectionAllowed(true); setSortable(true); addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent e) { if (e.getClickCount() == 2) { enterRoom(); } } public void mouseReleased(MouseEvent e) { checkPopup(e); } public void mousePressed(MouseEvent e) { checkPopup(e); } }); }
public RoomList() { super(new String[]{" ", "Name", "Address", "Occupants"}); getColumnModel().setColumnMargin(0); getColumnModel().getColumn(0).setMaxWidth(30); getColumnModel().getColumn(3).setMaxWidth(80); setSelectionBackground(Table.SELECTION_COLOR); setSelectionMode(ListSelectionModel.SINGLE_SELECTION); setRowSelectionAllowed(true); addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent e) { if (e.getClickCount() == 2) { enterRoom(); } } public void mouseReleased(MouseEvent e) { checkPopup(e); } public void mousePressed(MouseEvent e) { checkPopup(e); } }); }
3,230,659
public static void autoJoinConferenceRoom(final String roomName, String roomJID, String password) { ChatManager chatManager = SparkManager.getChatManager(); final MultiUserChat groupChat = new MultiUserChat(SparkManager.getConnection(), roomJID); LocalPreferences pref = SettingsManager.getLocalPreferences(); final String nickname = pref.getNickname().trim(); try { GroupChatRoom chatRoom = (GroupChatRoom)chatManager.getChatContainer().getChatRoom(roomJID); MultiUserChat muc = chatRoom.getMultiUserChat(); if (!muc.isJoined()) { joinRoom(muc, nickname, password); } chatManager.getChatContainer().activateChatRoom(chatRoom); return; } catch (ChatRoomNotFoundException e) { } final GroupChatRoom room = new GroupChatRoom(groupChat); room.setTabTitle(roomName); if (requiresPassword(roomJID) && password == null) { final PasswordDialog passwordDialog = new PasswordDialog(); password = passwordDialog.getPassword("Password Required", "This group chat room requires a password to enter.", SparkRes.getImageIcon(SparkRes.LOCK_16x16), SparkManager.getMainWindow()); if (!ModelUtil.hasLength(password)) { return; } } final List errors = new ArrayList(); final String userPassword = password; final SwingWorker startChat = new SwingWorker() { public Object construct() { if (!groupChat.isJoined()) { int groupChatCounter = 0; while (true) { groupChatCounter++; String joinName = nickname; if (groupChatCounter > 1) { joinName = joinName + groupChatCounter; } if (groupChatCounter < 10) { try { if (ModelUtil.hasLength(userPassword)) { groupChat.join(joinName, userPassword); } else { groupChat.join(joinName); } break; } catch (XMPPException ex) { int code = 0; if (ex.getXMPPError() != null) { code = ex.getXMPPError().getCode(); } if (code == 0) { errors.add("No response from server."); } else if (code == 401) { errors.add("The password did not match the rooms password."); } else if (code == 403) { errors.add("You have been banned from this room."); } else if (code == 404) { errors.add("The room you are trying to enter does not exist."); } else if (code == 407) { errors.add("You are not a member of this room.\nThis room requires you to be a member to join."); } else if (code != 409) { break; } } } else { break; } } } return "ok"; } public void finished() { if (errors.size() > 0) { String error = (String)errors.get(0); JOptionPane.showMessageDialog(SparkManager.getMainWindow(), error, "Unable to join the room at this time.", JOptionPane.ERROR_MESSAGE); return; } else if (groupChat.isJoined()) { ChatManager chatManager = SparkManager.getChatManager(); chatManager.getChatContainer().addChatRoom(room); chatManager.getChatContainer().activateChatRoom(room); } else { JOptionPane.showMessageDialog(SparkManager.getMainWindow(), "Unable to join the room.", "Error", JOptionPane.ERROR_MESSAGE); return; } } }; startChat.start(); }
public static void autoJoinConferenceRoom(final String roomName, String roomJID, String password) { ChatManager chatManager = SparkManager.getChatManager(); final MultiUserChat groupChat = new MultiUserChat(SparkManager.getConnection(), roomJID); LocalPreferences pref = SettingsManager.getLocalPreferences(); final String nickname = pref.getNickname().trim(); try { GroupChatRoom chatRoom = (GroupChatRoom)chatManager.getChatContainer().getChatRoom(roomJID); MultiUserChat muc = chatRoom.getMultiUserChat(); if (!muc.isJoined()) { joinRoom(muc, nickname, password); } chatManager.getChatContainer().activateChatRoom(chatRoom); return; } catch (ChatRoomNotFoundException e) { } final GroupChatRoom room = new GroupChatRoom(groupChat); room.setTabTitle(roomName); if (requiresPassword(roomJID) && password == null) { final PasswordDialog passwordDialog = new PasswordDialog(); password = passwordDialog.getPassword("Password Required", "This group chat room requires a password to enter.", SparkRes.getImageIcon(SparkRes.LOCK_16x16), SparkManager.getFocusedComponent()); if (!ModelUtil.hasLength(password)) { return; } } final List errors = new ArrayList(); final String userPassword = password; final SwingWorker startChat = new SwingWorker() { public Object construct() { if (!groupChat.isJoined()) { int groupChatCounter = 0; while (true) { groupChatCounter++; String joinName = nickname; if (groupChatCounter > 1) { joinName = joinName + groupChatCounter; } if (groupChatCounter < 10) { try { if (ModelUtil.hasLength(userPassword)) { groupChat.join(joinName, userPassword); } else { groupChat.join(joinName); } break; } catch (XMPPException ex) { int code = 0; if (ex.getXMPPError() != null) { code = ex.getXMPPError().getCode(); } if (code == 0) { errors.add("No response from server."); } else if (code == 401) { errors.add("The password did not match the rooms password."); } else if (code == 403) { errors.add("You have been banned from this room."); } else if (code == 404) { errors.add("The room you are trying to enter does not exist."); } else if (code == 407) { errors.add("You are not a member of this room.\nThis room requires you to be a member to join."); } else if (code != 409) { break; } } } else { break; } } } return "ok"; } public void finished() { if (errors.size() > 0) { String error = (String)errors.get(0); JOptionPane.showMessageDialog(SparkManager.getMainWindow(), error, "Unable to join the room at this time.", JOptionPane.ERROR_MESSAGE); return; } else if (groupChat.isJoined()) { ChatManager chatManager = SparkManager.getChatManager(); chatManager.getChatContainer().addChatRoom(room); chatManager.getChatContainer().activateChatRoom(room); } else { JOptionPane.showMessageDialog(SparkManager.getMainWindow(), "Unable to join the room.", "Error", JOptionPane.ERROR_MESSAGE); return; } } }; startChat.start(); }
3,230,660
public void testDirectConstruction() throws Exception { Pixels p = new Pixels(1l); p.setSizeX(new Integer(64)); p.setSizeY(new Integer(64)); p.setSizeZ(new Integer(64)); p.setSizeC(new Integer(64)); p.setSizeT(new Integer(64)); RenderingDef def = new RenderingDef(1l); def.setDefaultT(new Integer(1)); // etc RenderingBean re = new RenderingBean(); re.usePixels(p); re.useRenderDefintion(def); re.load(); { // now it's ready PlaneDef pd = new PlaneDef(PlaneDef.XY,1); re.render(pd); } // re.release(); not yet needed }
public void testDirectConstruction() throws Exception { Pixels p = new Pixels(); p.setId(1l); p.setSizeX(new Integer(64)); p.setSizeY(new Integer(64)); p.setSizeZ(new Integer(64)); p.setSizeC(new Integer(64)); p.setSizeT(new Integer(64)); RenderingDef def = new RenderingDef(1l); def.setDefaultT(new Integer(1)); // etc RenderingBean re = new RenderingBean(); re.usePixels(p); re.useRenderDefintion(def); re.load(); { // now it's ready PlaneDef pd = new PlaneDef(PlaneDef.XY,1); re.render(pd); } // re.release(); not yet needed }
3,230,661
public void testDirectConstruction() throws Exception { Pixels p = new Pixels(1l); p.setSizeX(new Integer(64)); p.setSizeY(new Integer(64)); p.setSizeZ(new Integer(64)); p.setSizeC(new Integer(64)); p.setSizeT(new Integer(64)); RenderingDef def = new RenderingDef(1l); def.setDefaultT(new Integer(1)); // etc RenderingBean re = new RenderingBean(); re.usePixels(p); re.useRenderDefintion(def); re.load(); { // now it's ready PlaneDef pd = new PlaneDef(PlaneDef.XY,1); re.render(pd); } // re.release(); not yet needed }
public void testDirectConstruction() throws Exception { Pixels p = new Pixels(1l); p.setSizeX(new Integer(64)); p.setSizeY(new Integer(64)); p.setSizeZ(new Integer(64)); p.setSizeC(new Integer(64)); p.setSizeT(new Integer(64)); RenderingDef def = new RenderingDef(); def.setId(1l); def.setDefaultT(new Integer(1)); // etc RenderingBean re = new RenderingBean(); re.usePixels(p); re.useRenderDefintion(def); re.load(); { // now it's ready PlaneDef pd = new PlaneDef(PlaneDef.XY,1); re.render(pd); } // re.release(); not yet needed }
3,230,662
public void preEvalWithBinding(RubyBinding binding) { Block bindingBlock = binding.getBlock(); pushFrame(bindingBlock.getFrame()); setCRef(bindingBlock.getCRef()); getCurrentFrame().setScope(bindingBlock.getScope()); dynamicVarsStack.push(bindingBlock.getDynamicVariables()); pushRubyClass(bindingBlock.getKlass()); iterStack.push(bindingBlock.getIter()); }
public void preEvalWithBinding(RubyBinding binding) { Block bindingBlock = binding.getBlock(); pushFrame(bindingBlock.getFrame()); setCRef(bindingBlock.getCRef()); getCurrentFrame().setScope(bindingBlock.getScope()); dynamicVarsStack.push(bindingBlock.getDynamicVariables()); pushRubyClass((RubyModule) bindingBlock.getCRef().getValue()); iterStack.push(bindingBlock.getIter()); }
3,230,663
public void set(RubyObject value, String id, RubyObject data, RubyGlobalEntry entry) { if (value == data) { return; } else if (!(value instanceof RubyIO)) { entry.setData(value); return; } else { ((RubyIO) value).checkWriteable(); // ((RubyIO)value).f= 0; entry.setData(value); ((RubyIO) value).setAsRubyErrorStream(); } }
public void set(RubyObject value, String id, RubyObject data, RubyGlobalEntry entry) { if (value == data) { return; } else if (!(value instanceof RubyIO)) { entry.setData(value); return; } else { ((RubyIO) value).checkWriteable(); // ((RubyIO)value).f= 0; entry.setData(value); } }
3,230,664
public void set(RubyObject value, String id, RubyObject data, RubyGlobalEntry entry) { if (value == data) { return; } else if (!(value instanceof RubyIO)) { entry.setData(value); return; } else { ((RubyIO) value).checkReadable(); // ((RubyIO)value).fileno = 0; entry.setData(value); ((RubyIO) value).setAsRubyInputStream(); } }
public void set(RubyObject value, String id, RubyObject data, RubyGlobalEntry entry) { if (value == data) { return; } else if (!(value instanceof RubyIO)) { entry.setData(value); return; } else { ((RubyIO) value).checkReadable(); // ((RubyIO)value).fileno = 0; entry.setData(value); } }
3,230,665
public void set(RubyObject value, String id, RubyObject data, RubyGlobalEntry entry) { if (value == data) { return; } else if (!(value instanceof RubyIO)) { entry.setData(value); return; } else { ((RubyIO) value).checkWriteable(); // ((RubyIO)value).fileno = 0; entry.setData(value); //set the ruby outputstream to match ((RubyIO) value).setAsRubyOutputStream(); } }
public void set(RubyObject value, String id, RubyObject data, RubyGlobalEntry entry) { if (value == data) { return; } else if (!(value instanceof RubyIO)) { entry.setData(value); return; } else { ((RubyIO) value).checkWriteable(); // ((RubyIO)value).fileno = 0; entry.setData(value); //set the ruby outputstream to match ((RubyIO) value).setAsRubyOutputStream(); } }
3,230,666
public void set(RubyObject value, String id, RubyObject data, RubyGlobalEntry entry) { if (value == data) { return; } else if (!(value instanceof RubyIO)) { entry.setData(value); return; } else { ((RubyIO) value).checkWriteable(); // ((RubyIO)value).fileno = 0; entry.setData(value); //set the ruby outputstream to match ((RubyIO) value).setAsRubyOutputStream(); } }
public void set(RubyObject value, String id, RubyObject data, RubyGlobalEntry entry) { if (value == data) { return; } else if (!(value instanceof RubyIO)) { entry.setData(value); return; } else { ((RubyIO) value).checkWriteable(); // ((RubyIO)value).fileno = 0; entry.setData(value); //set the ruby outputstream to match } }
3,230,667
public static void createGlobals(Ruby ruby) { StringSetter stringSetter = new StringSetter(); LastlineAccessor lastlineAccessor = new LastlineAccessor(); SafeAccessor safeAccessor = new SafeAccessor(); ruby.defineHookedVariable("$/", RubyString.newString(ruby, "\n"), null, stringSetter); ruby.defineHookedVariable("$\\", ruby.getNil(), null, stringSetter); ruby.defineHookedVariable("$,", ruby.getNil(), null, stringSetter); ruby.defineHookedVariable("$.", RubyFixnum.one(ruby), null, new LineNumberSetter()); ruby.defineVirtualVariable("$_", lastlineAccessor, lastlineAccessor); ruby.defineHookedVariable("$!", ruby.getNil(), null, new ErrorInfoSetter()); ruby.defineVirtualVariable("$SAFE", safeAccessor, safeAccessor); RubyObject stdin = RubyIO.stdin(ruby, ruby.getClasses().getIoClass()); RubyObject stdout = RubyIO.stdout(ruby, ruby.getClasses().getIoClass()); RubyObject stderr = RubyIO.stderr(ruby, ruby.getClasses().getIoClass()); ruby.defineHookedVariable("$stdin", stdin, null, new StdInSetter()); ruby.defineHookedVariable("$stdout", stdout, null, new StdOutSetter()); ruby.defineHookedVariable("$stderr", stderr, null, new StdErrSetter()); ruby.defineHookedVariable("$>", stdout, null, new DefSetter()); ruby.defineHookedVariable("$defout", stdout, null, new DefSetter()); ruby.defineGlobalConstant("STDIN", stdin); ruby.defineGlobalConstant("STDOUT", stdout); ruby.defineGlobalConstant("STDERR", stderr); // ARGF, $< object RubyArgsFile argsFile = new RubyArgsFile(ruby); argsFile.initArgsFile(); // Global functions // IO, $_ String ruby.defineGlobalFunction("open", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "open")); ruby.defineGlobalFunction("format", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "sprintf")); ruby.defineGlobalFunction("gets", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "gets")); ruby.defineGlobalFunction("p", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "p")); ruby.defineGlobalFunction("print", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "print")); ruby.defineGlobalFunction("printf", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "printf")); ruby.defineGlobalFunction("puts", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "puts")); ruby.defineGlobalFunction("readline", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "readline")); ruby.defineGlobalFunction("readlines", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "readlines")); ruby.defineGlobalFunction("sprintf", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "sprintf")); ruby.defineGlobalFunction("gsub!", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "gsub_bang")); ruby.defineGlobalFunction("gsub", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "gsub")); ruby.defineGlobalFunction("sub!", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "sub_bang")); ruby.defineGlobalFunction("sub", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "sub")); ruby.defineGlobalFunction("chop!", CallbackFactory.getSingletonMethod(RubyGlobal.class, "chop_bang")); ruby.defineGlobalFunction("chop", CallbackFactory.getSingletonMethod(RubyGlobal.class, "chop")); ruby.defineGlobalFunction("chomp!", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "chomp_bang")); ruby.defineGlobalFunction("chomp", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "chomp")); ruby.defineGlobalFunction("split", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "split")); ruby.defineGlobalFunction("scan", CallbackFactory.getSingletonMethod(RubyGlobal.class, "scan", RubyObject.class)); ruby.defineGlobalFunction("load", CallbackFactory.getSingletonMethod(RubyGlobal.class, "load", RubyString.class)); //FIXME autoload method needs to be implemented //ruby.defineGlobalFunction("autoload", CallbackFactory.getSingletonMethod(RubyGlobal.class, "autoload", RubyString.class)); ruby.defineGlobalFunction("raise", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "raise")); ruby.defineGlobalFunction("require", CallbackFactory.getSingletonMethod(RubyGlobal.class, "require", RubyString.class)); ruby.defineGlobalFunction("global_variables", CallbackFactory.getSingletonMethod(RubyGlobal.class, "global_variables")); ruby.defineGlobalFunction("local_variables", CallbackFactory.getSingletonMethod(RubyGlobal.class, "local_variables")); ruby.defineGlobalFunction("block_given?", CallbackFactory.getSingletonMethod(RubyGlobal.class, "block_given")); ruby.defineGlobalFunction("iterator?", CallbackFactory.getSingletonMethod(RubyGlobal.class, "block_given")); ruby.defineGlobalFunction("lambda", CallbackFactory.getSingletonMethod(RubyGlobal.class, "lambda")); ruby.defineGlobalFunction("proc", CallbackFactory.getSingletonMethod(RubyGlobal.class, "proc")); ruby.defineGlobalFunction("loop", CallbackFactory.getSingletonMethod(RubyGlobal.class, "loop")); ruby.defineGlobalFunction("eval", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "eval", RubyString.class)); ruby.defineGlobalFunction("caller", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "caller")); ruby.defineGlobalFunction("catch", CallbackFactory.getSingletonMethod(RubyGlobal.class, "rbCatch", RubyObject.class)); ruby.defineGlobalFunction("throw", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "rbThrow", RubyObject.class)); ruby.defineGlobalFunction("singleton_method_added", CallbackFactory.getNilMethod()); }
public static void createGlobals(Ruby ruby) { StringSetter stringSetter = new StringSetter(); LastlineAccessor lastlineAccessor = new LastlineAccessor(); SafeAccessor safeAccessor = new SafeAccessor(); ruby.defineHookedVariable("$/", RubyString.newString(ruby, "\n"), null, stringSetter); ruby.defineHookedVariable("$\\", ruby.getNil(), null, stringSetter); ruby.defineHookedVariable("$,", ruby.getNil(), null, stringSetter); ruby.defineHookedVariable("$.", RubyFixnum.one(ruby), null, new LineNumberSetter()); ruby.defineVirtualVariable("$_", lastlineAccessor, lastlineAccessor); ruby.defineHookedVariable("$!", ruby.getNil(), null, new ErrorInfoSetter()); ruby.defineVirtualVariable("$SAFE", safeAccessor, safeAccessor); RubyObject stdin = RubyIO.stdin(ruby, ruby.getClasses().getIoClass()); RubyObject stdout = RubyIO.stdout(ruby, ruby.getClasses().getIoClass()); RubyObject stderr = RubyIO.stderr(ruby, ruby.getClasses().getIoClass()); ruby.defineHookedVariable("$stdin", stdin, null, new StdInSetter()); ruby.defineHookedVariable("$stdout", stdout, null, new StdOutSetter()); ruby.defineHookedVariable("$stderr", stderr, null, new StdErrSetter()); ruby.defineHookedVariable("$>", stdout, null, new DefSetter()); ruby.defineHookedVariable("$defout", stdout, null, new DefSetter()); ruby.defineGlobalConstant("STDIN", stdin); ruby.defineGlobalConstant("STDOUT", stdout); ruby.defineGlobalConstant("STDERR", stderr); // ARGF, $< object RubyArgsFile argsFile = new RubyArgsFile(ruby); argsFile.initArgsFile(); // Global functions // IO, $_ String ruby.defineGlobalFunction("open", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "open")); ruby.defineGlobalFunction("format", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "sprintf")); ruby.defineGlobalFunction("gets", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "gets")); ruby.defineGlobalFunction("p", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "p")); ruby.defineGlobalFunction("print", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "print")); ruby.defineGlobalFunction("printf", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "printf")); ruby.defineGlobalFunction("puts", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "puts")); ruby.defineGlobalFunction("readline", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "readline")); ruby.defineGlobalFunction("readlines", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "readlines")); ruby.defineGlobalFunction("sprintf", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "sprintf")); ruby.defineGlobalFunction("gsub!", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "gsub_bang")); ruby.defineGlobalFunction("gsub", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "gsub")); ruby.defineGlobalFunction("sub!", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "sub_bang")); ruby.defineGlobalFunction("sub", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "sub")); ruby.defineGlobalFunction("chop!", CallbackFactory.getSingletonMethod(RubyGlobal.class, "chop_bang")); ruby.defineGlobalFunction("chop", CallbackFactory.getSingletonMethod(RubyGlobal.class, "chop")); ruby.defineGlobalFunction("chomp!", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "chomp_bang")); ruby.defineGlobalFunction("chomp", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "chomp")); ruby.defineGlobalFunction("split", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "split")); ruby.defineGlobalFunction("scan", CallbackFactory.getSingletonMethod(RubyGlobal.class, "scan", RubyObject.class)); ruby.defineGlobalFunction("load", CallbackFactory.getSingletonMethod(RubyGlobal.class, "load", RubyString.class)); //FIXME autoload method needs to be implemented //ruby.defineGlobalFunction("autoload", CallbackFactory.getSingletonMethod(RubyGlobal.class, "autoload", RubyString.class)); ruby.defineGlobalFunction("raise", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "raise")); ruby.defineGlobalFunction("require", CallbackFactory.getSingletonMethod(RubyGlobal.class, "require", RubyString.class)); ruby.defineGlobalFunction("global_variables", CallbackFactory.getSingletonMethod(RubyGlobal.class, "global_variables")); ruby.defineGlobalFunction("local_variables", CallbackFactory.getSingletonMethod(RubyGlobal.class, "local_variables")); ruby.defineGlobalFunction("block_given?", CallbackFactory.getSingletonMethod(RubyGlobal.class, "block_given")); ruby.defineGlobalFunction("iterator?", CallbackFactory.getSingletonMethod(RubyGlobal.class, "block_given")); ruby.defineGlobalFunction("lambda", CallbackFactory.getSingletonMethod(RubyGlobal.class, "lambda")); ruby.defineGlobalFunction("proc", CallbackFactory.getSingletonMethod(RubyGlobal.class, "proc")); ruby.defineGlobalFunction("loop", CallbackFactory.getSingletonMethod(RubyGlobal.class, "loop")); ruby.defineGlobalFunction("eval", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "eval", RubyString.class)); ruby.defineGlobalFunction("caller", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "caller")); ruby.defineGlobalFunction("catch", CallbackFactory.getSingletonMethod(RubyGlobal.class, "rbCatch", RubyObject.class)); ruby.defineGlobalFunction("throw", CallbackFactory.getOptSingletonMethod(RubyGlobal.class, "rbThrow", RubyObject.class)); ruby.defineGlobalFunction("singleton_method_added", CallbackFactory.getNilMethod()); }
3,230,668
private void buildGUI() { getContentPane().add(buildToolBar(), BorderLayout.NORTH); getContentPane().add(new JScrollPane(layeredPane), BorderLayout.CENTER); }
private void buildGUI() { getContentPane().add(buildToolBar(), BorderLayout.NORTH); getContentPane().add(new JScrollPane(layeredPane), BorderLayout.CENTER); }
3,230,672
private JPanel buildToolBar() { JToolBar bar = new JToolBar(); bar.setFloatable(false); bar.setRollover(true); bar.add(cancelButton); bar.add(saveButton); return UIUtilities.buildComponentPanelRight(bar); }
private JPanel buildToolBar() { JToolBar bar = new JToolBar(); bar.setFloatable(false); bar.setRollover(true); bar.add(cancelButton); bar.add(saveButton); return UIUtilities.buildComponentPanelRight(bar); }
3,230,673
private void initComponents() { IconManager icons = IconManager.getInstance(); saveButton = new JButton(icons.getIcon(IconManager.SAVE)); saveButton.setText("Save As"); saveButton.setToolTipText( UIUtilities.formatToolTipText("Save the preview image.")); cancelButton = new JButton(icons.getIcon(IconManager.CANCEL)); cancelButton.setText("Cancel"); cancelButton.setToolTipText( UIUtilities.formatToolTipText("Close without saving.")); canvas = new ImgSaverPreviewerCanvas(this); layeredPane = new JLayeredPane(); layeredPane.add(canvas, new Integer(0)); }
private void initComponents() { IconManager icons = IconManager.getInstance(); saveButton = new JButton(icons.getIcon(IconManager.SAVE)); saveButton.setText("Save As"); saveButton.setToolTipText( UIUtilities.formatToolTipText("Save the preview image.")); cancelButton = new JButton(icons.getIcon(IconManager.CANCEL)); cancelButton.setText("Cancel"); cancelButton.setToolTipText( UIUtilities.formatToolTipText("Close without saving.")); canvas = new ImgSaverPreviewerCanvas(this); layeredPane = new JLayeredPane(); layeredPane.add(canvas, new Integer(0)); }
3,230,674
private void initComponents() { IconManager icons = IconManager.getInstance(); saveButton = new JButton(icons.getIcon(IconManager.SAVE)); saveButton.setText("Save As"); saveButton.setToolTipText( UIUtilities.formatToolTipText("Save the preview image.")); cancelButton = new JButton(icons.getIcon(IconManager.CANCEL)); cancelButton.setText("Cancel"); cancelButton.setToolTipText( UIUtilities.formatToolTipText("Close without saving.")); canvas = new ImgSaverPreviewerCanvas(this); layeredPane = new JLayeredPane(); layeredPane.add(canvas, new Integer(0)); }
private void initComponents() { IconManager icons = IconManager.getInstance(); saveButton = new JButton(icons.getIcon(IconManager.SAVE)); saveButton.setText("Save As"); saveButton.setToolTipText( UIUtilities.formatToolTipText("Save the preview image.")); cancelButton = new JButton(icons.getIcon(IconManager.CANCEL)); cancelButton.setText("Cancel"); cancelButton.setToolTipText( UIUtilities.formatToolTipText("Close without saving.")); canvas = new ImgSaverPreviewerCanvas(this); layeredPane = new JLayeredPane(); layeredPane.add(canvas, new Integer(0)); }
3,230,675
void saveImage() { //Builds the image to display. boolean unitBar = model.isUnitBar(); String v = model.getUnitBarValue(); int s = (int) model.getUnitBarSize(); if (imageComponents == null) { int width = mainImage.getWidth(); int h = mainImage.getHeight(); BufferedImage newImage = new BufferedImage(width, h, BufferedImage.TYPE_INT_RGB); Graphics2D g2 = (Graphics2D) newImage.getGraphics(); g2.setColor(Color.WHITE); ImagePaintingFactory.setGraphicRenderingSettings(g2); //Paint the original image. g2.drawImage(mainImage, null, 0, 0); if (unitBar && v != null) ImagePaintingFactory.paintScaleBar(g2, width-s-10, h-10, s, v); writeImage(newImage, name); } else { int width = mainImage.getWidth(); int h = mainImage.getHeight(); int n = imageComponents.size(); int w = width*(n+1)+ImgSaverPreviewer.SPACE*(n-1); BufferedImage newImage = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB); Graphics2D g2 = (Graphics2D) newImage.getGraphics(); g2.setColor(Color.WHITE); ImagePaintingFactory.setGraphicRenderingSettings(g2); //Paint the original image. Iterator i = imageComponents.iterator(); int x = 0; while (i.hasNext()) { g2.drawImage((BufferedImage) i.next(), null, x, 0); if (unitBar && v != null) ImagePaintingFactory.paintScaleBar(g2, width-s-10, h-10, s, v); x += width; g2.fillRect(x, 0, ImgSaverPreviewer.SPACE, h); x += ImgSaverPreviewer.SPACE; } g2.drawImage(mainImage, null, x, 0); if (unitBar && v != null) ImagePaintingFactory.paintScaleBar(g2, width-s-10, h-10, s, v); writeImage(newImage, name); } }
void saveImage() { //Builds the image to display. boolean unitBar = model.isUnitBar(); String v = model.getUnitBarValue(); int s = (int) model.getUnitBarSize(); if (imageComponents == null) { int width = mainImage.getWidth(); int h = mainImage.getHeight(); BufferedImage newImage = new BufferedImage(width, h, BufferedImage.TYPE_INT_RGB); Graphics2D g2 = (Graphics2D) newImage.getGraphics(); g2.setColor(Color.WHITE); ImagePaintingFactory.setGraphicRenderingSettings(g2); //Paint the original image. g2.drawImage(mainImage, null, 0, 0); if (unitBar && v != null) ImagePaintingFactory.paintScaleBar(g2, x+width-s-10, h-10, s, v); writeImage(newImage, name); } else { int width = mainImage.getWidth(); int h = mainImage.getHeight(); int n = imageComponents.size(); int w = width*(n+1)+ImgSaverPreviewer.SPACE*(n-1); BufferedImage newImage = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB); Graphics2D g2 = (Graphics2D) newImage.getGraphics(); g2.setColor(Color.WHITE); ImagePaintingFactory.setGraphicRenderingSettings(g2); //Paint the original image. Iterator i = imageComponents.iterator(); int x = 0; while (i.hasNext()) { g2.drawImage((BufferedImage) i.next(), null, x, 0); if (unitBar && v != null) ImagePaintingFactory.paintScaleBar(g2, width-s-10, h-10, s, v); x += width; g2.fillRect(x, 0, ImgSaverPreviewer.SPACE, h); x += ImgSaverPreviewer.SPACE; } g2.drawImage(mainImage, null, x, 0); if (unitBar && v != null) ImagePaintingFactory.paintScaleBar(g2, x+width-s-10, h-10, s, v); writeImage(newImage, name); } }
3,230,676
void saveImage() { //Builds the image to display. boolean unitBar = model.isUnitBar(); String v = model.getUnitBarValue(); int s = (int) model.getUnitBarSize(); if (imageComponents == null) { int width = mainImage.getWidth(); int h = mainImage.getHeight(); BufferedImage newImage = new BufferedImage(width, h, BufferedImage.TYPE_INT_RGB); Graphics2D g2 = (Graphics2D) newImage.getGraphics(); g2.setColor(Color.WHITE); ImagePaintingFactory.setGraphicRenderingSettings(g2); //Paint the original image. g2.drawImage(mainImage, null, 0, 0); if (unitBar && v != null) ImagePaintingFactory.paintScaleBar(g2, width-s-10, h-10, s, v); writeImage(newImage, name); } else { int width = mainImage.getWidth(); int h = mainImage.getHeight(); int n = imageComponents.size(); int w = width*(n+1)+ImgSaverPreviewer.SPACE*(n-1); BufferedImage newImage = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB); Graphics2D g2 = (Graphics2D) newImage.getGraphics(); g2.setColor(Color.WHITE); ImagePaintingFactory.setGraphicRenderingSettings(g2); //Paint the original image. Iterator i = imageComponents.iterator(); int x = 0; while (i.hasNext()) { g2.drawImage((BufferedImage) i.next(), null, x, 0); if (unitBar && v != null) ImagePaintingFactory.paintScaleBar(g2, width-s-10, h-10, s, v); x += width; g2.fillRect(x, 0, ImgSaverPreviewer.SPACE, h); x += ImgSaverPreviewer.SPACE; } g2.drawImage(mainImage, null, x, 0); if (unitBar && v != null) ImagePaintingFactory.paintScaleBar(g2, width-s-10, h-10, s, v); writeImage(newImage, name); } }
void saveImage() { //Builds the image to display. boolean unitBar = model.isUnitBar(); String v = model.getUnitBarValue(); int s = (int) model.getUnitBarSize(); if (imageComponents == null) { int width = mainImage.getWidth(); int h = mainImage.getHeight(); BufferedImage newImage = new BufferedImage(width, h, BufferedImage.TYPE_INT_RGB); Graphics2D g2 = (Graphics2D) newImage.getGraphics(); g2.setColor(Color.WHITE); ImagePaintingFactory.setGraphicRenderingSettings(g2); //Paint the original image. g2.drawImage(mainImage, null, 0, 0); if (unitBar && v != null) ImagePaintingFactory.paintScaleBar(g2, x+width-s-10, h-10, s, v); writeImage(newImage, name); } else { int width = mainImage.getWidth(); int h = mainImage.getHeight(); int n = imageComponents.size(); int w = width*(n+1)+ImgSaverPreviewer.SPACE*(n-1); BufferedImage newImage = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB); Graphics2D g2 = (Graphics2D) newImage.getGraphics(); g2.setColor(Color.WHITE); ImagePaintingFactory.setGraphicRenderingSettings(g2); //Paint the original image. Iterator i = imageComponents.iterator(); int x = 0; while (i.hasNext()) { g2.drawImage((BufferedImage) i.next(), null, x, 0); if (unitBar && v != null) ImagePaintingFactory.paintScaleBar(g2, width-s-10, h-10, s, v); x += width; g2.fillRect(x, 0, ImgSaverPreviewer.SPACE, h); x += ImgSaverPreviewer.SPACE; } g2.drawImage(mainImage, null, x, 0); if (unitBar && v != null) ImagePaintingFactory.paintScaleBar(g2, x+width-s-10, h-10, s, v); writeImage(newImage, name); } }
3,230,677
public static RubyClass createExceptionClass(Ruby ruby) { RubyClass exceptionClass = ruby.defineClass("Exception", ruby.getClasses().getObjectClass()); exceptionClass.defineSingletonMethod( "exception", CallbackFactory.getOptSingletonMethod(RubyException.class, "newInstance")); exceptionClass.defineMethod("initialize", CallbackFactory.getOptMethod(RubyException.class, "initialize")); exceptionClass.defineMethod("exception", CallbackFactory.getOptMethod(RubyException.class, "exception")); exceptionClass.defineMethod("to_s", CallbackFactory.getMethod(RubyException.class, "to_s")); exceptionClass.defineMethod("to_str", CallbackFactory.getMethod(RubyException.class, "to_s")); exceptionClass.defineMethod("message", CallbackFactory.getMethod(RubyException.class, "to_s")); exceptionClass.defineMethod("inspect", CallbackFactory.getMethod(RubyException.class, "inspect")); exceptionClass.defineMethod("backtrace", CallbackFactory.getMethod(RubyException.class, "backtrace")); exceptionClass.defineMethod( "set_backtrace", CallbackFactory.getMethod(RubyException.class, "set_backtrace", RubyArray.class)); return exceptionClass; }
public static RubyClass createExceptionClass(Ruby ruby) { RubyClass exceptionClass = ruby.defineClass("Exception", ruby.getClasses().getObjectClass()); exceptionClass.defineSingletonMethod( "exception", CallbackFactory.getOptSingletonMethod(RubyException.class, "newInstance")); exceptionClass.defineMethod("initialize", CallbackFactory.getOptMethod(RubyException.class, "initialize")); exceptionClass.defineMethod("exception", CallbackFactory.getOptMethod(RubyException.class, "exception")); exceptionClass.defineMethod("to_s", CallbackFactory.getMethod(RubyException.class, "to_s")); exceptionClass.defineMethod("to_str", CallbackFactory.getMethod(RubyException.class, "to_s")); exceptionClass.defineMethod("message", CallbackFactory.getMethod(RubyException.class, "to_s")); exceptionClass.defineMethod("inspect", CallbackFactory.getMethod(RubyException.class, "inspect")); exceptionClass.defineMethod("backtrace", CallbackFactory.getMethod(RubyException.class, "backtrace")); exceptionClass.defineMethod( "set_backtrace", CallbackFactory.getMethod(RubyException.class, "set_backtrace", RubyArray.class)); return exceptionClass; }
3,230,678
public FileBuffer createFileBuffer(OriginalFile file) throws FileNotFoundException { return new FileBuffer(file, "rw"); }
public FileBuffer createFileBuffer(OriginalFile file) throws FileNotFoundException { return new FileBuffer(getFilesPath(file.getId()),file, "rw"); }
3,230,679
public FileBuffer getReadOnlyFileBuffer(OriginalFile file) throws FileNotFoundException { return new FileBuffer(file, "r"); }
public FileBuffer getReadOnlyFileBuffer(OriginalFile file) throws FileNotFoundException { return new FileBuffer(getFilesPath(file.getId()),file, "r"); }
3,230,680
public FileBuffer getReadWriteFileBuffer(OriginalFile file) throws FileNotFoundException { return new FileBuffer(file, "rw"); }
public FileBuffer getReadWriteFileBuffer(OriginalFile file) throws FileNotFoundException { return new FileBuffer(getFilesPath(file.getId()),file, "rw"); }
3,230,681
FileBuffer (OriginalFile file, String mode) throws FileNotFoundException { this.file = file; this.path = Helper.getFilesPath(file.getId()); delegate = new RandomAccessFile(path, mode); }
FileBuffer (String path, OriginalFile file, String mode) throws FileNotFoundException { this.file = file; this.path = Helper.getFilesPath(file.getId()); delegate = new RandomAccessFile(path, mode); }
3,230,683
FileBuffer (OriginalFile file, String mode) throws FileNotFoundException { this.file = file; this.path = Helper.getFilesPath(file.getId()); delegate = new RandomAccessFile(path, mode); }
FileBuffer (OriginalFile file, String mode) throws FileNotFoundException { this.file = file; delegate = new RandomAccessFile(path, mode); }
3,230,684
public void move(DisplayedNoteHolder newHolder, NoteTree tree, int index) { // Move DisplayedNote holder.removeDisplayedNote(this); holder = newHolder; holder.addDisplayedNote(this, index); // Move Note note.move(newHolder.getNoteHolder(), index); // Move Tree Node boolean selected = treeNode.isSelected(); treeNode.dispose(); if (holder instanceof DisplayedNote) { this.treeNode = tree.addTreeNode(((DisplayedNote) holder).treeNode, this); } else { this.treeNode = tree.addRootNode(this); } treeNode.setSelected(selected); }
public void move(DisplayedNoteHolder newHolder, NoteTree tree, int index) { // Move DisplayedNote holder.removeDisplayedNote(this); holder = newHolder; holder.addDisplayedNote(this, index); // Move Note note.move(newHolder.getNoteHolder(), index); // Move Tree Node boolean selected = treeNode.isSelected(); treeNode.dispose(); if (holder instanceof DisplayedNote) { this.treeNode = tree.addTreeNode(((DisplayedNote) holder).treeNode, this); } else { this.treeNode = tree.addRootNode(this); } treeNode.setSelected(selected); }
3,230,685
private String getFileName(String className, CoverageData instrumentation) { // TODO: Find a better way to get this return "TODO"; //return ClassHelper.getPackageName(className).replace('.', '/') + '/' + instrumentation.getSourceFileName(); }
private String getFileName(String className, CoverageData instrumentation) { // TODO: Find a better way to get this return "TODO"; //return ClassHelper.getPackageName(className).replace('.', '/') + '/' + instrumentation.getSourceFileName(); }
3,230,687
public synchronized void includeModule(IRubyObject arg) { testFrozen("module"); if (!isTaint()) { getRuntime().secure(4); } if (!(arg instanceof RubyModule)) { throw getRuntime().newTypeError("Wrong argument type " + arg.getMetaClass().getName() + " (expected Module)."); } RubyModule module = (RubyModule) arg; Map moduleMethods = module.getMethods(); // Make sure the module we include does not already exist for (RubyModule p = this; p != null; p = p.getSuperClass()) { // XXXEnebo - Lame equality check (cause: IncludedModule?) if (p.getMethods() == moduleMethods) { return; } } // Invalidate cache for all methods in the new included module in case a base class method // of the same name has already been cached. for (Iterator iter = moduleMethods.keySet().iterator(); iter.hasNext();) { String methodName = (String) iter.next(); getRuntime().getCacheMap().remove(methodName, searchMethod(methodName)); } // Include new module setSuperClass(module.newIncludeClass(getSuperClass())); // cnutter: removed iterative inclusion of module's superclasses, because it included them in reverse order // see RubyModule.newIncludeClass for replacement module.callMethod("included", this); }
public synchronized void includeModule(IRubyObject arg) { testFrozen("module"); if (!isTaint()) { getRuntime().secure(4); } if (!(arg instanceof RubyModule)) { throw getRuntime().newTypeError("Wrong argument type " + arg.getMetaClass().getName() + " (expected Module)."); } RubyModule module = (RubyModule) arg; Map moduleMethods = module.getMethods(); // Make sure the module we include does not already exist for (RubyModule p = this; p != null; p = p.getSuperClass()) { // XXXEnebo - Lame equality check (cause: IncludedModule?) if (p.getMethods() == moduleMethods) { return; } } // Invalidate cache for all methods in the new included module in case a base class method // of the same name has already been cached. for (Iterator iter = moduleMethods.keySet().iterator(); iter.hasNext();) { String methodName = (String) iter.next(); getRuntime().getCacheMap().remove(methodName, searchMethod(methodName)); } // Include new module setSuperClass(module.newIncludeClass(getSuperClass())); // cnutter: removed iterative inclusion of module's superclasses, because it included them in reverse order // see RubyModule.newIncludeClass for replacement module.callMethod("included", this); }
3,230,688
SoftwareUpdateDialog(JFrame owner) { super(owner); setModal(true); setResizable(false); initComponents(); buildGUI(); pack(); }
SoftwareUpdateDialog(JFrame owner, String aboutMessage) { super(owner); setModal(true); setResizable(false); initComponents(); buildGUI(); pack(); }
3,230,689
SoftwareUpdateDialog(JFrame owner) { super(owner); setModal(true); setResizable(false); initComponents(); buildGUI(); pack(); }
SoftwareUpdateDialog(JFrame owner) { super(owner); setModal(true); setResizable(false); initComponents(); buildGUI(); pack(); }
3,230,690
SoftwareUpdateDialog(JFrame owner) { super(owner); setModal(true); setResizable(false); initComponents(); buildGUI(); pack(); }
SoftwareUpdateDialog(JFrame owner) { super(owner); setModal(true); setResizable(false); initComponents(); buildGUI(aboutMessage); pack(); }
3,230,691
private void buildGUI() { getContentPane().add(buildContentPanel(), BorderLayout.CENTER); JPanel p = UIUtilities.buildComponentPanelRight(buildToolBar()); p.setBorder(BorderFactory.createEtchedBorder()); p.setOpaque(true); getContentPane().add(p, BorderLayout.SOUTH); }
private void buildGUI(String aboutMessage) { getContentPane().add(buildContentPanel(), BorderLayout.CENTER); JPanel p = UIUtilities.buildComponentPanelRight(buildToolBar()); p.setBorder(BorderFactory.createEtchedBorder()); p.setOpaque(true); getContentPane().add(p, BorderLayout.SOUTH); }
3,230,692
private void buildGUI() { getContentPane().add(buildContentPanel(), BorderLayout.CENTER); JPanel p = UIUtilities.buildComponentPanelRight(buildToolBar()); p.setBorder(BorderFactory.createEtchedBorder()); p.setOpaque(true); getContentPane().add(p, BorderLayout.SOUTH); }
private void buildGUI() { Container c = getContentPane(); c.add(buildAbout(aboutMessage), BorderLayout.NORTH); c.add(buildContentPanel(), BorderLayout.CENTER); JPanel p = UIUtilities.buildComponentPanelRight(buildToolBar()); p.setBorder(BorderFactory.createEtchedBorder()); p.setOpaque(true); getContentPane().add(p, BorderLayout.SOUTH); }
3,230,693
private void buildGUI() { getContentPane().add(buildContentPanel(), BorderLayout.CENTER); JPanel p = UIUtilities.buildComponentPanelRight(buildToolBar()); p.setBorder(BorderFactory.createEtchedBorder()); p.setOpaque(true); getContentPane().add(p, BorderLayout.SOUTH); }
private void buildGUI() { getContentPane().add(buildContentPanel(), BorderLayout.CENTER); JPanel p = UIUtilities.buildComponentPanelRight(buildToolBar()); p.setBorder(BorderFactory.createEtchedBorder()); p.setOpaque(true); c.add(p, BorderLayout.SOUTH); }
3,230,694
public static RubyClass createFixnumClass(Ruby runtime) { return new FixnumDefinition(runtime).getType(); }
public static RubyClass createFixnumClass(Ruby runtime) { return new FixnumDefinition(runtime).getType(); }
3,230,695
static public Set adaptFoundCGCIHierarchies(Set result) { Set dataObjects = new HashSet(); Map cache = new HashMap(); for (Iterator i = result.iterator(); i.hasNext();) { Object obj = i.next(); if (obj instanceof CategoryGroup) { CategoryGroup cg = (CategoryGroup) obj; dataObjects.add(AdapterUtils.go(cg,cache)); } else if (obj instanceof Category) { Category ca = (Category) obj; dataObjects.add(AdapterUtils.go(ca,cache)); } else if (obj instanceof Image) { Image img = (Image) obj; dataObjects.add(AdapterUtils.go(img,cache)); } else { throw new RuntimeException("Method returned unexpected value type:" + obj.getClass() ); } } return dataObjects; }
static public Set adaptFoundCGCIHierarchies(Set result) { Set dataObjects = new HashSet(); Map cache = newCache(); for (Iterator i = result.iterator(); i.hasNext();) { Object obj = i.next(); if (obj instanceof CategoryGroup) { CategoryGroup cg = (CategoryGroup) obj; dataObjects.add(AdapterUtils.go(cg,cache)); } else if (obj instanceof Category) { Category ca = (Category) obj; dataObjects.add(AdapterUtils.go(ca,cache)); } else if (obj instanceof Image) { Image img = (Image) obj; dataObjects.add(AdapterUtils.go(img,cache)); } else { throw new RuntimeException("Method returned unexpected value type:" + obj.getClass() ); } } return dataObjects; }
3,230,696
static public Map adaptFoundDatasetAnnotations(Map result) { Map dataObjects = new HashMap(); Map cache = new HashMap(); for (Iterator i = result.keySet().iterator(); i.hasNext();) { Object key = i.next(); Set value = (Set) result.get(key); dataObjects.put(key,new HashSet()); for (Iterator j = value.iterator(); j.hasNext();) { DatasetAnnotation ann = (DatasetAnnotation) j.next(); ((Set) dataObjects.get(key)).add(AdapterUtils.go(ann,cache)); } } return dataObjects; }
static public Map adaptFoundDatasetAnnotations(Map result) { Map dataObjects = new HashMap(); Map cache = newCache(); for (Iterator i = result.keySet().iterator(); i.hasNext();) { Object key = i.next(); Set value = (Set) result.get(key); dataObjects.put(key,new HashSet()); for (Iterator j = value.iterator(); j.hasNext();) { DatasetAnnotation ann = (DatasetAnnotation) j.next(); ((Set) dataObjects.get(key)).add(AdapterUtils.go(ann,cache)); } } return dataObjects; }
3,230,697
static public Map adaptFoundImageAnnotations(Map result) { Map dataObjects = new HashMap(); Map cache = new HashMap(); for (Iterator i = result.keySet().iterator(); i.hasNext();) { Object key = i.next(); Set value = (Set) result.get(key); dataObjects.put(key,new HashSet()); for (Iterator j = value.iterator(); j.hasNext();) { ImageAnnotation ann = (ImageAnnotation) j.next(); ((Set) dataObjects.get(key)).add(AdapterUtils.go(ann,cache)); } } return dataObjects; }
static public Map adaptFoundImageAnnotations(Map result) { Map dataObjects = new HashMap(); Map cache = newCache(); for (Iterator i = result.keySet().iterator(); i.hasNext();) { Object key = i.next(); Set value = (Set) result.get(key); dataObjects.put(key,new HashSet()); for (Iterator j = value.iterator(); j.hasNext();) { ImageAnnotation ann = (ImageAnnotation) j.next(); ((Set) dataObjects.get(key)).add(AdapterUtils.go(ann,cache)); } } return dataObjects; }
3,230,698
static public Set adaptFoundPDIHierarchies(Set result) { Set dataObjects = new HashSet(); Map cache = new HashMap(); for (Iterator i = result.iterator(); i.hasNext();) { Object obj = i.next(); if (obj instanceof Project) { Project prj = (Project) obj; dataObjects.add(AdapterUtils.go(prj,cache)); } else if (obj instanceof Dataset) { Dataset ds = (Dataset) obj; dataObjects.add(AdapterUtils.go(ds,cache)); } else if (obj instanceof Image) { Image img = (Image) obj; dataObjects.add(AdapterUtils.go(img,cache)); } else { throw new RuntimeException("Method returned unexpected value type:" + obj.getClass() ); } } return dataObjects; }
static public Set adaptFoundPDIHierarchies(Set result) { Set dataObjects = new HashSet(); Map cache = newCache(); for (Iterator i = result.iterator(); i.hasNext();) { Object obj = i.next(); if (obj instanceof Project) { Project prj = (Project) obj; dataObjects.add(AdapterUtils.go(prj,cache)); } else if (obj instanceof Dataset) { Dataset ds = (Dataset) obj; dataObjects.add(AdapterUtils.go(ds,cache)); } else if (obj instanceof Image) { Image img = (Image) obj; dataObjects.add(AdapterUtils.go(img,cache)); } else { throw new RuntimeException("Method returned unexpected value type:" + obj.getClass() ); } } return dataObjects; }
3,230,699
static public DataObject adaptLoadedCGCIHierarchy(Class rootNodeType, Object result) { if (rootNodeType.equals(CategoryGroup.class)){ return AdapterUtils.go((CategoryGroup) result, new HashMap()); } else if (rootNodeType.equals(Category.class)){ return AdapterUtils.go((Category) result, new HashMap()); } else { throw new IllegalArgumentException("Method only takes CategoryGroup and Category as argument."); } }
static public DataObject adaptLoadedCGCIHierarchy(Class rootNodeType, Object result) { if (rootNodeType.equals(CategoryGroup.class)){ return AdapterUtils.go((CategoryGroup) result, newCache()); } else if (rootNodeType.equals(Category.class)){ return AdapterUtils.go((Category) result, new HashMap()); } else { throw new IllegalArgumentException("Method only takes CategoryGroup and Category as argument."); } }
3,230,700
static public DataObject adaptLoadedCGCIHierarchy(Class rootNodeType, Object result) { if (rootNodeType.equals(CategoryGroup.class)){ return AdapterUtils.go((CategoryGroup) result, new HashMap()); } else if (rootNodeType.equals(Category.class)){ return AdapterUtils.go((Category) result, new HashMap()); } else { throw new IllegalArgumentException("Method only takes CategoryGroup and Category as argument."); } }
static public DataObject adaptLoadedCGCIHierarchy(Class rootNodeType, Object result) { if (rootNodeType.equals(CategoryGroup.class)){ return AdapterUtils.go((CategoryGroup) result, new HashMap()); } else if (rootNodeType.equals(Category.class)){ return AdapterUtils.go((Category) result, newCache()); } else { throw new IllegalArgumentException("Method only takes CategoryGroup and Category as argument."); } }
3,230,701
static public DataObject adaptLoadedPDIHierarchy(Class rootNodeType, Object result) { if (rootNodeType.equals(Project.class)){ return AdapterUtils.go((Project) result, new HashMap()); } else if (rootNodeType.equals(Dataset.class)){ return AdapterUtils.go((Dataset) result, new HashMap()); } else { throw new IllegalArgumentException("Method only takes Project and Dataset as argument."); } }
static public DataObject adaptLoadedPDIHierarchy(Class rootNodeType, Object result) { if (rootNodeType.equals(Project.class)){ return AdapterUtils.go((Project) result, newCache()); } else if (rootNodeType.equals(Dataset.class)){ return AdapterUtils.go((Dataset) result, new HashMap()); } else { throw new IllegalArgumentException("Method only takes Project and Dataset as argument."); } }
3,230,702
static public DataObject adaptLoadedPDIHierarchy(Class rootNodeType, Object result) { if (rootNodeType.equals(Project.class)){ return AdapterUtils.go((Project) result, new HashMap()); } else if (rootNodeType.equals(Dataset.class)){ return AdapterUtils.go((Dataset) result, new HashMap()); } else { throw new IllegalArgumentException("Method only takes Project and Dataset as argument."); } }
static public DataObject adaptLoadedPDIHierarchy(Class rootNodeType, Object result) { if (rootNodeType.equals(Project.class)){ return AdapterUtils.go((Project) result, new HashMap()); } else if (rootNodeType.equals(Dataset.class)){ return AdapterUtils.go((Dataset) result, newCache()); } else { throw new IllegalArgumentException("Method only takes Project and Dataset as argument."); } }
3,230,703
static public ProjectData go(Project p, Map cache) { if (check(cache,p)) { return (ProjectData) from(cache, p); } ProjectData pd = new ProjectData(); to(cache, p, pd); if (null == p.getProjectId()) { if (log.isDebugEnabled())log.debug(nullId+p); } else { pd.setID(p.getProjectId().intValue()); } pd.setName(p.getName()); pd.setDescription(p.getDescription()); if (null==p.getExperimenter()){ if (log.isDebugEnabled())log.debug(nullExp + p); } else { pd.setOwnerFirstName(p.getExperimenter().getFirstname()); } //TODO if (null==p.getDatasets()){ if (log.isDebugEnabled())log.debug(nullDs + p); } else { Set set = new HashSet(); for (Iterator i = p.getDatasets().iterator(); i.hasNext();) { Dataset d = (Dataset) i.next(); set.add(go(d,cache)); } pd.setDatasets(new ArrayList(set)); } return pd; }
static public ProjectData go(Project p, Map cache) { if (check(cache,p)) { return (ProjectData) from(cache, p); } ProjectData pd = new ProjectData(); to(cache, p, pd); if (null == p.getProjectId()) { if (log.isDebugEnabled())log.debug(nullId+p); } else { pd.setID(p.getProjectId().intValue()); } pd.setName(p.getName()); pd.setDescription(p.getDescription()); if (null==p.getExperimenter()){ if (log.isDebugEnabled())log.debug(nullExp + p); } else { pd.setOwnerFirstName(p.getExperimenter().getFirstname()); } //TODO if (null==p.getDatasets()){ if (log.isDebugEnabled())log.debug(nullDs + p); } else { Set set = new HashSet(); for (Iterator i = p.getDatasets().iterator(); i.hasNext();) { Dataset d = (Dataset) i.next(); set.add(go(d,cache)); } pd.setDatasets(new ArrayList(set)); } return pd; }
3,230,704
public static RubyModule createKernelModule(IRuby runtime) { RubyModule module = runtime.defineModule("Kernel"); CallbackFactory callbackFactory = runtime.callbackFactory(RubyKernel.class); CallbackFactory objectCallbackFactory = runtime.callbackFactory(RubyObject.class); module.defineModuleFunction("Array", callbackFactory.getSingletonMethod("new_array", IRubyObject.class)); module.defineModuleFunction("Float", callbackFactory.getSingletonMethod("new_float", IRubyObject.class)); module.defineModuleFunction("Integer", callbackFactory.getSingletonMethod("new_integer", IRubyObject.class)); module.defineModuleFunction("String", callbackFactory.getSingletonMethod("new_string", IRubyObject.class)); module.defineModuleFunction("`", callbackFactory.getSingletonMethod("backquote", IRubyObject.class)); // TODO: Implement Kernel#abort module.defineModuleFunction("at_exit", callbackFactory.getSingletonMethod("at_exit")); module.defineModuleFunction("autoload", callbackFactory.getSingletonMethod("autoload", IRubyObject.class, IRubyObject.class)); // TODO: Implement Kernel#autoload? module.defineModuleFunction("binding", callbackFactory.getSingletonMethod("binding")); module.defineModuleFunction("block_given?", callbackFactory.getSingletonMethod("block_given")); // TODO: Implement Kernel#callcc module.defineModuleFunction("caller", callbackFactory.getOptSingletonMethod("caller")); module.defineModuleFunction("catch", callbackFactory.getSingletonMethod("rbCatch", IRubyObject.class)); module.defineModuleFunction("chomp", callbackFactory.getOptSingletonMethod("chomp")); module.defineModuleFunction("chomp!", callbackFactory.getOptSingletonMethod("chomp_bang")); module.defineModuleFunction("chop", callbackFactory.getSingletonMethod("chop")); module.defineModuleFunction("chop!", callbackFactory.getSingletonMethod("chop_bang")); module.defineModuleFunction("eval", callbackFactory.getOptSingletonMethod("eval")); // TODO: Implement Kernel#exec module.defineModuleFunction("exit", callbackFactory.getOptSingletonMethod("exit")); module.defineModuleFunction("exit!", callbackFactory.getOptSingletonMethod("exit_bang")); module.defineModuleFunction("fail", callbackFactory.getOptSingletonMethod("raise")); // TODO: Implement Kernel#fork module.defineModuleFunction("format", callbackFactory.getOptSingletonMethod("sprintf")); module.defineModuleFunction("gets", callbackFactory.getOptSingletonMethod("gets")); module.defineModuleFunction("global_variables", callbackFactory.getSingletonMethod("global_variables")); module.defineModuleFunction("gsub", callbackFactory.getOptSingletonMethod("gsub")); module.defineModuleFunction("gsub!", callbackFactory.getOptSingletonMethod("gsub_bang")); // TODO: Add deprecation to Kernel#iterator? (maybe formal deprecation mech.) module.defineAlias("iterator?", "block_given?"); module.defineModuleFunction("lambda", callbackFactory.getSingletonMethod("proc")); module.defineModuleFunction("load", callbackFactory.getOptSingletonMethod("load")); module.defineModuleFunction("local_variables", callbackFactory.getSingletonMethod("local_variables")); module.defineModuleFunction("loop", callbackFactory.getSingletonMethod("loop")); // Note: method_missing is documented as being in Object, but ruby appears to stick it in Kernel. module.defineModuleFunction("method_missing", callbackFactory.getOptSingletonMethod("method_missing")); module.defineModuleFunction("open", callbackFactory.getOptSingletonMethod("open")); module.defineModuleFunction("p", callbackFactory.getOptSingletonMethod("p")); module.defineModuleFunction("print", callbackFactory.getOptSingletonMethod("print")); module.defineModuleFunction("printf", callbackFactory.getOptSingletonMethod("printf")); module.defineModuleFunction("proc", callbackFactory.getSingletonMethod("proc")); // TODO: implement Kernel#putc module.defineModuleFunction("puts", callbackFactory.getOptSingletonMethod("puts")); module.defineAlias("raise", "fail"); module.defineModuleFunction("rand", callbackFactory.getOptSingletonMethod("rand")); module.defineModuleFunction("readline", callbackFactory.getOptSingletonMethod("readline")); module.defineModuleFunction("readlines", callbackFactory.getOptSingletonMethod("readlines")); module.defineModuleFunction("require", callbackFactory.getSingletonMethod("require", IRubyObject.class)); module.defineModuleFunction("scan", callbackFactory.getSingletonMethod("scan", IRubyObject.class)); // TODO: Implement Kernel#select module.defineModuleFunction("set_trace_func", callbackFactory.getSingletonMethod("set_trace_func", IRubyObject.class)); module.defineModuleFunction("sleep", callbackFactory.getSingletonMethod("sleep", IRubyObject.class)); module.defineModuleFunction("split", callbackFactory.getOptSingletonMethod("split")); module.defineAlias("sprintf", "format"); module.defineModuleFunction("srand", callbackFactory.getOptSingletonMethod("srand")); module.defineModuleFunction("sub", callbackFactory.getOptSingletonMethod("sub")); module.defineModuleFunction("sub!", callbackFactory.getOptSingletonMethod("sub_bang")); // Skipping: Kernel#syscall (too system dependent) module.defineModuleFunction("system", callbackFactory.getOptSingletonMethod("system")); // TODO: Implement Kernel#test (partial impl) module.defineModuleFunction("throw", callbackFactory.getOptSingletonMethod("rbThrow")); // TODO: Implement Kernel#trace_var module.defineModuleFunction("trap", callbackFactory.getOptSingletonMethod("trap")); // TODO: Implement Kernel#untrace_var module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); // Defined p411 Pickaxe 2nd ed. module.defineModuleFunction("singleton_method_added", callbackFactory.getSingletonMethod("singleton_method_added", IRubyObject.class)); // Object methods module.definePublicModuleFunction("==", objectCallbackFactory.getMethod("equal", IRubyObject.class)); module.defineAlias("===", "=="); module.defineAlias("eql?", "=="); module.definePublicModuleFunction("to_s", objectCallbackFactory.getMethod("to_s")); module.definePublicModuleFunction("nil?", objectCallbackFactory.getMethod("nil_p")); module.definePublicModuleFunction("to_a", objectCallbackFactory.getMethod("to_a")); module.definePublicModuleFunction("hash", objectCallbackFactory.getMethod("hash")); module.definePublicModuleFunction("id", objectCallbackFactory.getMethod("id")); module.defineAlias("__id__", "id"); module.defineAlias("object_id", "id"); module.definePublicModuleFunction("is_a?", objectCallbackFactory.getMethod("kind_of", IRubyObject.class)); module.defineAlias("kind_of?", "is_a?"); module.definePublicModuleFunction("dup", objectCallbackFactory.getMethod("dup")); module.definePublicModuleFunction("equal?", objectCallbackFactory.getMethod("same", IRubyObject.class)); module.definePublicModuleFunction("type", objectCallbackFactory.getMethod("type_deprecated")); module.definePublicModuleFunction("class", objectCallbackFactory.getMethod("type")); module.definePublicModuleFunction("inspect", objectCallbackFactory.getMethod("inspect")); module.definePublicModuleFunction("=~", objectCallbackFactory.getMethod("match", IRubyObject.class)); module.definePublicModuleFunction("clone", objectCallbackFactory.getMethod("rbClone")); module.definePublicModuleFunction("display", objectCallbackFactory.getOptMethod("display")); module.definePublicModuleFunction("extend", objectCallbackFactory.getOptMethod("extend")); module.definePublicModuleFunction("freeze", objectCallbackFactory.getMethod("freeze")); module.definePublicModuleFunction("frozen?", objectCallbackFactory.getMethod("frozen")); module.defineModuleFunction("initialize_copy", objectCallbackFactory.getMethod("initialize_copy", IRubyObject.class)); module.definePublicModuleFunction("instance_eval", objectCallbackFactory.getOptMethod("instance_eval")); module.definePublicModuleFunction("instance_of?", objectCallbackFactory.getMethod("instance_of", IRubyObject.class)); module.definePublicModuleFunction("instance_variables", objectCallbackFactory.getMethod("instance_variables")); module.definePublicModuleFunction("instance_variable_get", objectCallbackFactory.getMethod("instance_variable_get", IRubyObject.class)); module.definePublicModuleFunction("instance_variable_set", objectCallbackFactory.getMethod("instance_variable_set", IRubyObject.class, IRubyObject.class)); module.definePublicModuleFunction("method", objectCallbackFactory.getMethod("method", IRubyObject.class)); module.definePublicModuleFunction("methods", objectCallbackFactory.getOptMethod("methods")); module.definePublicModuleFunction("private_methods", objectCallbackFactory.getMethod("private_methods")); module.definePublicModuleFunction("protected_methods", objectCallbackFactory.getMethod("protected_methods")); module.definePublicModuleFunction("public_methods", objectCallbackFactory.getOptMethod("public_methods")); module.definePublicModuleFunction("remove_instance_variable", objectCallbackFactory.getMethod("remove_instance_variable", IRubyObject.class)); module.definePublicModuleFunction("respond_to?", objectCallbackFactory.getOptMethod("respond_to")); module.definePublicModuleFunction("send", objectCallbackFactory.getOptMethod("send")); module.defineAlias("__send__", "send"); module.definePublicModuleFunction("singleton_methods", objectCallbackFactory.getMethod("singleton_methods")); module.definePublicModuleFunction("taint", objectCallbackFactory.getMethod("taint")); module.definePublicModuleFunction("tainted?", objectCallbackFactory.getMethod("tainted")); module.definePublicModuleFunction("untaint", objectCallbackFactory.getMethod("untaint")); return module; }
module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); publicmodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); staticmodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); RubyModulemodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); createKernelModule(IRubymodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); runtime)module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); {module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); RubyModulemodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); modulemodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); =module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); runtime.defineModule("Kernel");module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); CallbackFactorymodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactorymodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); =module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); runtime.callbackFactory(RubyKernel.class);module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); CallbackFactorymodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); objectCallbackFactorymodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); =module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); runtime.callbackFactory(RubyObject.class);module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("Array",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getSingletonMethod("new_array",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); IRubyObject.class));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("Float",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getSingletonMethod("new_float",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); IRubyObject.class));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("Integer",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getSingletonMethod("new_integer",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); IRubyObject.class));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("String",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getSingletonMethod("new_string",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); IRubyObject.class));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("`",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getSingletonMethod("backquote",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); IRubyObject.class));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); //module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); TODO:module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); Implementmodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); Kernel#abortmodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("at_exit",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getSingletonMethod("at_exit"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("autoload",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getSingletonMethod("autoload",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); IRubyObject.class,module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); IRubyObject.class));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); //module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); TODO:module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); Implementmodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); Kernel#autoload?module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("binding",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getSingletonMethod("binding"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("block_given?",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getSingletonMethod("block_given"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); //module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); TODO:module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); Implementmodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); Kernel#callccmodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("caller",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getOptSingletonMethod("caller"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("catch",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getSingletonMethod("rbCatch",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); IRubyObject.class));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("chomp",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getOptSingletonMethod("chomp"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("chomp!",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getOptSingletonMethod("chomp_bang"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("chop",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getSingletonMethod("chop"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("chop!",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getSingletonMethod("chop_bang"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("eval",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getOptSingletonMethod("eval"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); //module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); TODO:module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); Implementmodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); Kernel#execmodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("exit",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getOptSingletonMethod("exit"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("exit!",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getOptSingletonMethod("exit_bang"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("fail",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getOptSingletonMethod("raise"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); //module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); TODO:module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); Implementmodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); Kernel#forkmodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("format",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getOptSingletonMethod("sprintf"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("gets",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getOptSingletonMethod("gets"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("global_variables",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getSingletonMethod("global_variables"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("gsub",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getOptSingletonMethod("gsub"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("gsub!",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getOptSingletonMethod("gsub_bang"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); //module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); TODO:module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); Addmodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); deprecationmodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); tomodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); Kernel#iterator?module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); (maybemodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); formalmodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); deprecationmodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); mech.)module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineAlias("iterator?",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); "block_given?");module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("lambda",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getSingletonMethod("proc"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("load",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getOptSingletonMethod("load"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("local_variables",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getSingletonMethod("local_variables"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("loop",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getSingletonMethod("loop"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); //module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); Note:module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); method_missingmodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); ismodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); documentedmodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); asmodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); beingmodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); inmodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); Object,module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); butmodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); rubymodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); appearsmodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); tomodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); stickmodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); itmodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); inmodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); Kernel.module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("method_missing",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getOptSingletonMethod("method_missing"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("open",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getOptSingletonMethod("open"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("p",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getOptSingletonMethod("p"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("print",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getOptSingletonMethod("print"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("printf",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getOptSingletonMethod("printf"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("proc",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getSingletonMethod("proc"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); //module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); TODO:module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); implementmodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); Kernel#putcmodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("puts",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getOptSingletonMethod("puts"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineAlias("raise",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); "fail");module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("rand",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getOptSingletonMethod("rand"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("readline",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getOptSingletonMethod("readline"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("readlines",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getOptSingletonMethod("readlines"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("require",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getSingletonMethod("require",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); IRubyObject.class));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("scan",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getSingletonMethod("scan",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); IRubyObject.class));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); //module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); TODO:module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); Implementmodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); Kernel#selectmodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("set_trace_func",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getSingletonMethod("set_trace_func",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); IRubyObject.class));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("sleep",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getSingletonMethod("sleep",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); IRubyObject.class));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("split",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getOptSingletonMethod("split"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineAlias("sprintf",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); "format");module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("srand",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getOptSingletonMethod("srand"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("sub",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getOptSingletonMethod("sub"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("sub!",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getOptSingletonMethod("sub_bang"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); //module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); Skipping:module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); Kernel#syscallmodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); (toomodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); systemmodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); dependent)module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("system",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getOptSingletonMethod("system"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); //module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); TODO:module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); Implementmodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); Kernel#testmodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); (partialmodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); impl)module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("throw",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getOptSingletonMethod("rbThrow"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); //module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); TODO:module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); Implementmodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); Kernel#trace_varmodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("trap",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getOptSingletonMethod("trap"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); //module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); TODO:module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); Implementmodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); Kernel#untrace_varmodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("warn",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getSingletonMethod("warn",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); IRubyObject.class));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); //module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); Definedmodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); p411module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); Pickaxemodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); 2ndmodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); ed.module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("singleton_method_added",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); callbackFactory.getSingletonMethod("singleton_method_added",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); IRubyObject.class));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); //module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); Objectmodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); methodsmodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.definePublicModuleFunction("==",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); objectCallbackFactory.getMethod("equal",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); IRubyObject.class));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineAlias("===",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); "==");module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineAlias("eql?",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); "==");module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.definePublicModuleFunction("to_s",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); objectCallbackFactory.getMethod("to_s"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.definePublicModuleFunction("nil?",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); objectCallbackFactory.getMethod("nil_p"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.definePublicModuleFunction("to_a",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); objectCallbackFactory.getMethod("to_a"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.definePublicModuleFunction("hash",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); objectCallbackFactory.getMethod("hash"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.definePublicModuleFunction("id",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); objectCallbackFactory.getMethod("id"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineAlias("__id__",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); "id");module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineAlias("object_id",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); "id");module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.definePublicModuleFunction("is_a?",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); objectCallbackFactory.getMethod("kind_of",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); IRubyObject.class));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineAlias("kind_of?",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); "is_a?");module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.definePublicModuleFunction("dup",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); objectCallbackFactory.getMethod("dup"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.definePublicModuleFunction("equal?",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); objectCallbackFactory.getMethod("same",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); IRubyObject.class));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.definePublicModuleFunction("type",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); objectCallbackFactory.getMethod("type_deprecated"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.definePublicModuleFunction("class",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); objectCallbackFactory.getMethod("type"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.definePublicModuleFunction("inspect",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); objectCallbackFactory.getMethod("inspect"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.definePublicModuleFunction("=~",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); objectCallbackFactory.getMethod("match",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); IRubyObject.class));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.definePublicModuleFunction("clone",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); objectCallbackFactory.getMethod("rbClone"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.definePublicModuleFunction("display",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); objectCallbackFactory.getOptMethod("display"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.definePublicModuleFunction("extend",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); objectCallbackFactory.getOptMethod("extend"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.definePublicModuleFunction("freeze",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); objectCallbackFactory.getMethod("freeze"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.definePublicModuleFunction("frozen?",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); objectCallbackFactory.getMethod("frozen"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("initialize_copy",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); objectCallbackFactory.getMethod("initialize_copy",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); IRubyObject.class));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.definePublicModuleFunction("instance_eval",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); objectCallbackFactory.getOptMethod("instance_eval"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.definePublicModuleFunction("instance_of?",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); objectCallbackFactory.getMethod("instance_of",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); IRubyObject.class));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.definePublicModuleFunction("instance_variables",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); objectCallbackFactory.getMethod("instance_variables"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.definePublicModuleFunction("instance_variable_get",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); objectCallbackFactory.getMethod("instance_variable_get",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); IRubyObject.class));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.definePublicModuleFunction("instance_variable_set",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); objectCallbackFactory.getMethod("instance_variable_set",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); IRubyObject.class,module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); IRubyObject.class));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.definePublicModuleFunction("method",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); objectCallbackFactory.getMethod("method",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); IRubyObject.class));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.definePublicModuleFunction("methods",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); objectCallbackFactory.getOptMethod("methods"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.definePublicModuleFunction("private_methods",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); objectCallbackFactory.getMethod("private_methods"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.definePublicModuleFunction("protected_methods",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); objectCallbackFactory.getMethod("protected_methods"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.definePublicModuleFunction("public_methods",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); objectCallbackFactory.getOptMethod("public_methods"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.definePublicModuleFunction("remove_instance_variable",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); objectCallbackFactory.getMethod("remove_instance_variable",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); IRubyObject.class));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.definePublicModuleFunction("respond_to?",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); objectCallbackFactory.getOptMethod("respond_to"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.definePublicModuleFunction("send",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); objectCallbackFactory.getOptMethod("send"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineAlias("__send__",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); "send");module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.definePublicModuleFunction("singleton_methods",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); objectCallbackFactory.getMethod("singleton_methods"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.definePublicModuleFunction("taint",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); objectCallbackFactory.getMethod("taint"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.definePublicModuleFunction("tainted?",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); objectCallbackFactory.getMethod("tainted"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.definePublicModuleFunction("untaint",module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); objectCallbackFactory.getMethod("untaint"));module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); returnmodule.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module;module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); }
3,230,706
public NoteTreeNode(NoteTreeNode parent, DisplayedNote data) { treeItem = new TreeItem(parent.treeItem, SWT.NONE, data.getNote().getIndex()); init(data); }
public NoteTreeNode(NoteTreeNode parent, DisplayedNote data) { treeItem = new TreeItem(parent.treeItem, SWT.NONE, data.getNote().getIndex()); init(data); }
3,230,707
public ModuleMetaClass(IRuby runtime, RubyClass superClass) { super(runtime, null, superClass, runtime.getObject(), "Module", RubyModule.class); }
public ModuleMetaClass(IRuby runtime, RubyClass superClass) { super(runtime, null, superClass, runtime.getObject(), "Module", RubyModule.class); }
3,230,709
public RubyClass newSubClass(String name, RubyModule parent) { return new ModuleMetaClass(name, this, parent); }
public RubyClass newSubClass(String name, RubyModule parent) { return new ModuleMetaClass(name, this, parent); }
3,230,710
protected boolean managedPermissions(boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { // setup boolean altered = false; Permissions previousP = previousDetails == null ? null : previousDetails.getPermissions(); Permissions currentP = currentDetails == null ? null : currentDetails .getPermissions(); // ignore newDetails permissions. // If the stored perms are null, then we can't validate anything // TODO : is this alright. Should only happen for system types. // Then can silently ignore ?? if (previousP == null) { if (currentP == null) { newDetails.setPermissions(null); altered |= false; // don't need to update } else { newDetails.setPermissions(currentP); altered = true; } } // WORKAROUND for ticket:307 by checking for SOFT below // see https://trac.openmicroscopy.org.uk/omero/ticket/307 // see // http://opensource.atlassian.com/projects/hibernate/browse/HHH-2027 // Users did not enter permission (normal case) so is null OR // in the workaround permissions is SOFT, then // need to copy whole sale those from database. else if (currentP == null || currentP.isSet(Flag.SOFT)) { newDetails.setPermissions(previousP); altered = true; } // if the user has set the permissions (currentDetails), then we should // try to allow that. if it's identical to the current, then there // is no reason to hit the DB. else { // if we need to filter any permissions, do it here! newDetails.setPermissions(currentP); if (!currentP.identical(previousP)) { if ( ! isOwnerOrSupervisor(obj)) // TODO and privileged? if not, remove from below?? throw new SecurityViolation(String.format( "You are not authorized to change " + "the permissions for %s from %s to %s", obj, previousP, currentP)); altered = true; } } // now we've calculated the desired permissions, throw // a security violation if this instance was locked AND // the read permissions have been lowered or if the lock // was removed. if (locked) { if (previousP == null) // if null it can't have been locked. throw new InternalException("Null permissions cannot be locked"); Permissions calculatedP = newDetails.getPermissions(); if (calculatedP != null) { // can't override if ( ! calculatedP.isSet( Flag.LOCKED )) { calculatedP.set(Flag.LOCKED); altered = true; } if ((previousP.isGranted(USER, READ) && !calculatedP.isGranted(USER, READ)) || (previousP.isGranted(GROUP, READ) && !calculatedP .isGranted(GROUP, READ)) || (previousP.isGranted(WORLD, READ) && !calculatedP .isGranted(WORLD, READ))) throw new SecurityViolation( "Cannot remove READ from locked entity:" + obj); } } // privileged plays no role since everyone can alter their permissions // (within bounds) return altered; }
protected boolean managedPermissions(boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { // setup boolean altered = false; Permissions previousP = previousDetails == null ? null : previousDetails.getPermissions(); Permissions currentP = currentDetails == null ? null : currentDetails .getPermissions(); // ignore newDetails permissions. // If the stored perms are null, then we can't validate anything // TODO : is this alright. Should only happen for system types. // Then can silently ignore ?? if (previousP == null) { if (currentP == null) { newDetails.setPermissions(null); altered |= false; // don't need to update } else { newDetails.setPermissions(currentP); altered = true; } } // WORKAROUND for ticket:307 by checking for SOFT below // see https://trac.openmicroscopy.org.uk/omero/ticket/307 // see // http://opensource.atlassian.com/projects/hibernate/browse/HHH-2027 // Users did not enter permission (normal case) so is null OR // in the workaround permissions is SOFT, then // need to copy whole sale those from database. else if (currentP == null || currentP.isSet(Flag.SOFT)) { newDetails.setPermissions(previousP); altered = true; } // if the user has set the permissions (currentDetails), then we should // try to allow that. if it's identical to the current, then there // is no reason to hit the DB. else { // if we need to filter any permissions, do it here! newDetails.setPermissions(currentP); Permissions tmpDetails = new Permissions(previousP); if (currentP.isSet(Flag.LOCKED)) { tmpDetails.set(Flag.LOCKED); } else { tmpDetails.unSet(Flag.LOCKED); } if (!currentP.identical(tmpDetails)) { if ( ! isOwnerOrSupervisor(obj)) // TODO and privileged? if not, remove from below?? throw new SecurityViolation(String.format( "You are not authorized to change " + "the permissions for %s from %s to %s", obj, previousP, currentP)); altered = true; } } // now we've calculated the desired permissions, throw // a security violation if this instance was locked AND // the read permissions have been lowered or if the lock // was removed. if (locked) { if (previousP == null) // if null it can't have been locked. throw new InternalException("Null permissions cannot be locked"); Permissions calculatedP = newDetails.getPermissions(); if (calculatedP != null) { // can't override if ( ! calculatedP.isSet( Flag.LOCKED )) { calculatedP.set(Flag.LOCKED); altered = true; } if ((previousP.isGranted(USER, READ) && !calculatedP.isGranted(USER, READ)) || (previousP.isGranted(GROUP, READ) && !calculatedP .isGranted(GROUP, READ)) || (previousP.isGranted(WORLD, READ) && !calculatedP .isGranted(WORLD, READ))) throw new SecurityViolation( "Cannot remove READ from locked entity:" + obj); } } // privileged plays no role since everyone can alter their permissions // (within bounds) return altered; }
3,230,711
public Details newTransientDetails(IObject obj) { checkReady("transientDetails"); if (obj == null) throw new ApiUsageException("Argument cannot be null."); if (hasPrivilegedToken(obj)) return obj.getDetails(); // EARLY EXIT Details source = obj.getDetails(); Details newDetails = cd.createDetails(); if (source != null) { // PERMISSIONS // users _are_ allowed to alter the permissions of new objects. // this entity may be locked in the same operation, in which case // the READ permissions which are set will not be removable. copyNonNullPermissions(newDetails, source.getPermissions()); applyUmaskIfNecessary(newDetails); // OWNER // users *aren't* allowed to set the owner of an item. if (source.getOwner() != null && !source.getOwner().getId().equals( newDetails.getOwner().getId())) { // but this is root if (currentUserIsAdmin()) { newDetails.setOwner(source.getOwner()); } else { throw new SecurityViolation(String.format( "You are not authorized to set the ExperimenterID" + " for %s to %d", obj, source.getOwner() .getId())); } } // GROUP // users are only allowed to set to another of their groups if (source.getGroup() != null && source.getGroup().getId() != null) { // users can change to their own group if (memberOfGroups().contains(source.getGroup().getId())) { newDetails.setGroup(source.getGroup()); } // and admin can change it too else if (currentUserIsAdmin()) { newDetails.setGroup(source.getGroup()); } // oops. boom! else { throw new SecurityViolation(String.format( "You are not authorized to set the ExperimenterGroupID" + " for %s to %d", obj, source.getGroup() .getId())); } } // EXTERNALINFO // useres _are_ allowed to set the external info on a new object. // subsequent operations, however, will not be able to edit this // value. newDetails.setExternalInfo( source.getExternalInfo() ); // CREATION/UPDATEVENT : currently ignore what users do } return newDetails; }
public Details newTransientDetails(IObject obj) { checkReady("transientDetails"); if (obj == null) throw new ApiUsageException("Argument cannot be null."); if (hasPrivilegedToken(obj)) return obj.getDetails(); // EARLY EXIT Details source = obj.getDetails(); Details newDetails = cd.createDetails(); if (source != null) { // PERMISSIONS // users _are_ allowed to alter the permissions of new objects. // this entity may be locked in the same operation, in which case // the READ permissions which are set will not be removable. copyNonNullPermissions(newDetails, source.getPermissions()); applyUmaskIfNecessary(newDetails); // OWNER // users *aren't* allowed to set the owner of an item. if (source.getOwner() != null && !source.getOwner().getId().equals( newDetails.getOwner().getId())) { // but this is root if (currentUserIsAdmin()) { newDetails.setOwner(source.getOwner()); } else { throw new SecurityViolation(String.format( "You are not authorized to set the ExperimenterID" + " for %s to %d", obj, source.getOwner() .getId())); } } // GROUP // users are only allowed to set to another of their groups if (source.getGroup() != null && source.getGroup().getId() != null) { // users can change to their own group if (memberOfGroups().contains(source.getGroup().getId())) { newDetails.setGroup(source.getGroup()); } // and admin can change it too else if (currentUserIsAdmin()) { newDetails.setGroup(source.getGroup()); } // oops. boom! else { throw new SecurityViolation(String.format( "You are not authorized to set the ExperimenterGroupID" + " for %s to %d", obj, source.getGroup() .getId())); } } // EXTERNALINFO // useres _are_ allowed to set the external info on a new object. // subsequent operations, however, will not be able to edit this // value. newDetails.setExternalInfo( source.getExternalInfo() ); // CREATION/UPDATEVENT : currently ignore what users do } return newDetails; }
3,230,712
public Details newTransientDetails(IObject obj) { checkReady("transientDetails"); if (obj == null) throw new ApiUsageException("Argument cannot be null."); if (hasPrivilegedToken(obj)) return obj.getDetails(); // EARLY EXIT Details source = obj.getDetails(); Details newDetails = cd.createDetails(); if (source != null) { // PERMISSIONS // users _are_ allowed to alter the permissions of new objects. // this entity may be locked in the same operation, in which case // the READ permissions which are set will not be removable. copyNonNullPermissions(newDetails, source.getPermissions()); applyUmaskIfNecessary(newDetails); // OWNER // users *aren't* allowed to set the owner of an item. if (source.getOwner() != null && !source.getOwner().getId().equals( newDetails.getOwner().getId())) { // but this is root if (currentUserIsAdmin()) { newDetails.setOwner(source.getOwner()); } else { throw new SecurityViolation(String.format( "You are not authorized to set the ExperimenterID" + " for %s to %d", obj, source.getOwner() .getId())); } } // GROUP // users are only allowed to set to another of their groups if (source.getGroup() != null && source.getGroup().getId() != null) { // users can change to their own group if (memberOfGroups().contains(source.getGroup().getId())) { newDetails.setGroup(source.getGroup()); } // and admin can change it too else if (currentUserIsAdmin()) { newDetails.setGroup(source.getGroup()); } // oops. boom! else { throw new SecurityViolation(String.format( "You are not authorized to set the ExperimenterGroupID" + " for %s to %d", obj, source.getGroup() .getId())); } } // EXTERNALINFO // useres _are_ allowed to set the external info on a new object. // subsequent operations, however, will not be able to edit this // value. newDetails.setExternalInfo( source.getExternalInfo() ); // CREATION/UPDATEVENT : currently ignore what users do } return newDetails; }
public Details newTransientDetails(IObject obj) { checkReady("transientDetails"); if (obj == null) throw new ApiUsageException("Argument cannot be null."); if (hasPrivilegedToken(obj)) return obj.getDetails(); // EARLY EXIT Details source = obj.getDetails(); Details newDetails = cd.createDetails(); if (source != null) { // PERMISSIONS // users _are_ allowed to alter the permissions of new objects. // this entity may be locked in the same operation, in which case // the READ permissions which are set will not be removable. copyNonNullPermissions(newDetails, source.getPermissions()); applyUmaskIfNecessary(newDetails); // OWNER // users *aren't* allowed to set the owner of an item. if (source.getOwner() != null && !source.getOwner().getId().equals( newDetails.getOwner().getId())) { // but this is root if (currentUserIsAdmin()) { newDetails.setOwner(source.getOwner()); } else { throw new SecurityViolation(String.format( "You are not authorized to set the ExperimenterID" + " for %s to %d", obj, source.getOwner() .getId())); } } // GROUP // users are only allowed to set to another of their groups if (source.getGroup() != null && source.getGroup().getId() != null) { // users can change to their own group if (memberOfGroups().contains(source.getGroup().getId())) { newDetails.setGroup(source.getGroup()); } // and admin can change it too else if (currentUserIsAdmin()) { newDetails.setGroup(source.getGroup()); } // oops. boom! else { throw new SecurityViolation(String.format( "You are not authorized to set the ExperimenterGroupID" + " for %s to %d", obj, source.getGroup() .getId())); } } // EXTERNALINFO // useres _are_ allowed to set the external info on a new object. // subsequent operations, however, will not be able to edit this // value. newDetails.setExternalInfo( source.getExternalInfo() ); // CREATION/UPDATEVENT : currently ignore what users do } return newDetails; }
3,230,713
public Details newTransientDetails(IObject obj) { checkReady("transientDetails"); if (obj == null) throw new ApiUsageException("Argument cannot be null."); if (hasPrivilegedToken(obj)) return obj.getDetails(); // EARLY EXIT Details source = obj.getDetails(); Details newDetails = cd.createDetails(); if (source != null) { // PERMISSIONS // users _are_ allowed to alter the permissions of new objects. // this entity may be locked in the same operation, in which case // the READ permissions which are set will not be removable. copyNonNullPermissions(newDetails, source.getPermissions()); applyUmaskIfNecessary(newDetails); // OWNER // users *aren't* allowed to set the owner of an item. if (source.getOwner() != null && !source.getOwner().getId().equals( newDetails.getOwner().getId())) { // but this is root if (currentUserIsAdmin()) { newDetails.setOwner(source.getOwner()); } else { throw new SecurityViolation(String.format( "You are not authorized to set the ExperimenterID" + " for %s to %d", obj, source.getOwner() .getId())); } } // GROUP // users are only allowed to set to another of their groups if (source.getGroup() != null && source.getGroup().getId() != null) { // users can change to their own group if (memberOfGroups().contains(source.getGroup().getId())) { newDetails.setGroup(source.getGroup()); } // and admin can change it too else if (currentUserIsAdmin()) { newDetails.setGroup(source.getGroup()); } // oops. boom! else { throw new SecurityViolation(String.format( "You are not authorized to set the ExperimenterGroupID" + " for %s to %d", obj, source.getGroup() .getId())); } } // EXTERNALINFO // useres _are_ allowed to set the external info on a new object. // subsequent operations, however, will not be able to edit this // value. newDetails.setExternalInfo( source.getExternalInfo() ); // CREATION/UPDATEVENT : currently ignore what users do } return newDetails; }
public Details newTransientDetails(IObject obj) { checkReady("transientDetails"); if (obj == null) throw new ApiUsageException("Argument cannot be null."); if (hasPrivilegedToken(obj)) return obj.getDetails(); // EARLY EXIT Details source = obj.getDetails(); Details newDetails = cd.createDetails(); if (source != null) { // PERMISSIONS // users _are_ allowed to alter the permissions of new objects. // this entity may be locked in the same operation, in which case // the READ permissions which are set will not be removable. copyNonNullPermissions(newDetails, source.getPermissions()); applyUmaskIfNecessary(newDetails); // OWNER // users *aren't* allowed to set the owner of an item. if (source.getOwner() != null && !source.getOwner().getId().equals( newDetails.getOwner().getId())) { // but this is root if (currentUserIsAdmin()) { newDetails.setOwner(source.getOwner()); } else { throw new SecurityViolation(String.format( "You are not authorized to set the ExperimenterID" + " for %s to %d", obj, source.getOwner() .getId())); } } // GROUP // users are only allowed to set to another of their groups if (source.getGroup() != null && source.getGroup().getId() != null) { // users can change to their own group if (memberOfGroups().contains(source.getGroup().getId())) { newDetails.setGroup(source.getGroup()); } // and admin can change it too else if (currentUserIsAdmin()) { newDetails.setGroup(source.getGroup()); } // oops. boom! else { throw new SecurityViolation(String.format( "You are not authorized to set the ExperimenterGroupID" + " for %s to %d", obj, source.getGroup() .getId())); } } // EXTERNALINFO // useres _are_ allowed to set the external info on a new object. // subsequent operations, however, will not be able to edit this // value. newDetails.setExternalInfo( source.getExternalInfo() ); // CREATION/UPDATEVENT : currently ignore what users do } return newDetails; }
3,230,714
private JToolBar buildViewBar() { JToolBar bar = new JToolBar(); bar.setFloatable(false); bar.setRollover(true); bar.setBorder(null); JToggleButton b = new JToggleButton( controller.getAction(HiViewerControl.TREE_VIEW)); bar.add(b); b = new JToggleButton( controller.getAction(HiViewerControl.CLIPBOARD_VIEW)); b.setSelected(true); bar.add(b); bar.add(new JSeparator(SwingConstants.HORIZONTAL)); return bar; }
privateJToolBarbuildViewBar(){JToolBarbar=newJToolBar();bar.setFloatable(false);bar.setRollover(true);bar.setBorder(null);JToggleButtonb=newJToggleButton(controller.getAction(HiViewerControl.TREE_VIEW));bar.add(b);b=newJToggleButton(controller.getAction(HiViewerControl.CLIPBOARD_VIEW));b.setSelected(true);bar.add(b);bar.add(newJSeparator(SwingConstants.HORIZONTAL));returnbar;}
3,230,715
public Object findTarget(Object current){ // IMMUTABLES if (null == current | current instanceof Integer | current instanceof String) // TODO can use findTarget then for these as well. { return current; } else // Special cases TODO put into doFindTarget if (current instanceof Date){ return new Timestamp(((Date)current).getTime()); // FIXME should cache these in model2pojo } Object target = model2target.get(current); if (null == target) { Class targetType = (Class) c2c().get(current.getClass()); if (null != targetType){ try { target = targetType.newInstance(); } catch (Exception e) { throw new RuntimeException("Internal error: could not instantiate object of type "+targetType+" while trying to map "+current,e); } model2target.put(current,target); } } return target; }
public Object findTarget(Object current){ // IMMUTABLES if (null == current | current instanceof Integer | current instanceof String) // TODO can use findTarget then for these as well. { return current; } else // Special cases TODO put into doFindTarget if (current instanceof Date){ return new Timestamp(((Date)current).getTime()); // FIXME should cache these in model2pojo } Object target = model2target.get(current); if (null == target) { Class targetType = (Class) c2c().get(current.getClass()); if (null != targetType){ try { target = targetType.newInstance(); } catch (Exception e) { throw new RuntimeException("Internal error: could not instantiate object of type "+targetType+" while trying to map "+current,e); } model2target.put(current,target); } } return target; }
3,230,716
private void buildGUI() { Container container = getContentPane(); container.setLayout(new BorderLayout(2,2)); JPanel listPanel = new JPanel(); listPanel.setLayout(new GridLayout(1,2)); JPanel leftPanel = new JPanel(); leftPanel.setLayout(new BorderLayout(2,2)); JPanel leftLabelPanel = new JPanel(); leftLabelPanel.setLayout(new FlowLayout(FlowLayout.LEFT)); leftLabelPanel.add(new JLabel("Groups:")); leftPanel.add(leftLabelPanel,BorderLayout.NORTH); groupList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); groupList.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { newCategoryButton.setEnabled(true); categoryList.setEnabled(true); if(groupList.getSelectedIndex() != -1) { selectedGroup = groupList.getSelectedIndex(); } CategoryGroup group = (CategoryGroup)controller.getCategoryGroups().get(selectedGroup); buildCategoryList(group); repaint(); } }); groupList.addFocusListener(new FocusAdapter() { public void focusLost(FocusEvent arg0) { if(arg0.getOppositeComponent() != editButton) { editButton.setEnabled(false); } } public void focusGained(FocusEvent arg0) { editButton.setEnabled(true); editButton.setAction(editGroupAction); } }); JScrollPane scrollPane = new JScrollPane(groupList); scrollPane.setPreferredSize(new Dimension(150,225)); leftPanel.add(scrollPane,BorderLayout.CENTER); listPanel.add(leftPanel); JPanel rightPanel = new JPanel(); rightPanel.setLayout(new BorderLayout(2,2)); JPanel rightLabelPanel = new JPanel(); rightLabelPanel.setLayout(new FlowLayout(FlowLayout.LEFT)); rightLabelPanel.add(new JLabel("Phenotypes:")); rightPanel.add(rightLabelPanel,BorderLayout.NORTH); categoryList.setEnabled(false); categoryList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); categoryList.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { int i = categoryList.getSelectedIndex(); CategoryGroup group = (CategoryGroup)controller.getCategoryGroups().get(selectedGroup); Category cat = (Category)controller.getCategories(group).get(i); repaint(); } }); categoryList.addFocusListener(new FocusAdapter() { public void focusLost(FocusEvent arg0) { if(arg0.getOppositeComponent() != editButton) { editButton.setEnabled(false); } } public void focusGained(FocusEvent arg0) { editButton.setEnabled(true); editButton.setAction(editCategoryAction); } }); JScrollPane rightScrollPane = new JScrollPane(categoryList); rightScrollPane.setPreferredSize(new Dimension(150,225)); rightPanel.add(rightScrollPane,BorderLayout.CENTER); listPanel.add(rightPanel); JPanel detailsPanel = new JPanel(); detailsPanel.setBorder(BorderFactory.createLineBorder(Color.gray)); detailsPanel.setLayout(new BorderLayout(2,2)); detailsPanel.add(listPanel,BorderLayout.CENTER); JPanel buttonPanel = new JPanel(); newGroupButton = new JButton("New Group"); newGroupButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent ae) { CategoryEditUI.showCreateGroupDialog(refCopy,controller); } }); buttonPanel.add(newGroupButton); editButton = new JButton("Edit"); buttonPanel.add(editButton); newCategoryButton = new JButton("New Phenotype"); newCategoryButton.setEnabled(false); newCategoryButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent ae) { CategoryGroup group = (CategoryGroup)controller.getCategoryGroups().get(selectedGroup); CategoryEditUI.showCreateCategoryDialog(refCopy,controller,group); } }); buttonPanel.add(newCategoryButton); detailsPanel.add(buttonPanel,BorderLayout.SOUTH); container.add(detailsPanel,BorderLayout.CENTER); JPanel savePanel = new JPanel(); savePanel.setLayout(new FlowLayout(FlowLayout.RIGHT)); JButton saveButton = new JButton("Save"); saveButton.setAction(saveAction); savePanel.add(saveButton); savePanel.add(Box.createHorizontalStrut(10)); JButton cancelButton = new JButton("Cancel"); cancelButton.setAction(cancelAction); savePanel.add(cancelButton); container.add(savePanel,BorderLayout.SOUTH); }
private void buildGUI() { Container container = getContentPane(); container.setLayout(new BorderLayout(2,2)); JPanel listPanel = new JPanel(); listPanel.setLayout(new GridLayout(1,2)); JPanel leftPanel = new JPanel(); leftPanel.setLayout(new BorderLayout(2,2)); JPanel leftLabelPanel = new JPanel(); leftLabelPanel.setLayout(new FlowLayout(FlowLayout.LEFT)); leftLabelPanel.add(new JLabel("Groups:")); leftPanel.add(leftLabelPanel,BorderLayout.NORTH); groupList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); groupList.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { newCategoryButton.setEnabled(true); categoryList.setEnabled(true); if(groupList.getSelectedIndex() != -1) { selectedGroup = groupList.getSelectedIndex(); } CategoryGroup group = (CategoryGroup)controller.getCategoryGroups().get(selectedGroup); buildCategoryList(group); repaint(); } }); groupList.addFocusListener(new FocusAdapter() { public void focusLost(FocusEvent arg0) { if(arg0.getOppositeComponent() != editButton) { editButton.setEnabled(false); } } public void focusGained(FocusEvent arg0) { editButton.setEnabled(true); editButton.setAction(editGroupAction); } }); JScrollPane scrollPane = new JScrollPane(groupList); scrollPane.setPreferredSize(new Dimension(150,225)); leftPanel.add(scrollPane,BorderLayout.CENTER); listPanel.add(leftPanel); JPanel rightPanel = new JPanel(); rightPanel.setLayout(new BorderLayout(2,2)); JPanel rightLabelPanel = new JPanel(); rightLabelPanel.setLayout(new FlowLayout(FlowLayout.LEFT)); rightLabelPanel.add(new JLabel("Phenotypes:")); rightPanel.add(rightLabelPanel,BorderLayout.NORTH); categoryList.setEnabled(false); categoryList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); categoryList.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { int i = categoryList.getSelectedIndex(); CategoryGroup group = (CategoryGroup)controller.getCategoryGroups().get(selectedGroup); Category cat = (Category)controller.getCategories(group).get(selectedCategory); repaint(); } }); categoryList.addFocusListener(new FocusAdapter() { public void focusLost(FocusEvent arg0) { if(arg0.getOppositeComponent() != editButton) { editButton.setEnabled(false); } } public void focusGained(FocusEvent arg0) { editButton.setEnabled(true); editButton.setAction(editCategoryAction); } }); JScrollPane rightScrollPane = new JScrollPane(categoryList); rightScrollPane.setPreferredSize(new Dimension(150,225)); rightPanel.add(rightScrollPane,BorderLayout.CENTER); listPanel.add(rightPanel); JPanel detailsPanel = new JPanel(); detailsPanel.setBorder(BorderFactory.createLineBorder(Color.gray)); detailsPanel.setLayout(new BorderLayout(2,2)); detailsPanel.add(listPanel,BorderLayout.CENTER); JPanel buttonPanel = new JPanel(); newGroupButton = new JButton("New Group"); newGroupButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent ae) { CategoryEditUI.showCreateGroupDialog(refCopy,controller); } }); buttonPanel.add(newGroupButton); editButton = new JButton("Edit"); buttonPanel.add(editButton); newCategoryButton = new JButton("New Phenotype"); newCategoryButton.setEnabled(false); newCategoryButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent ae) { CategoryGroup group = (CategoryGroup)controller.getCategoryGroups().get(selectedGroup); CategoryEditUI.showCreateCategoryDialog(refCopy,controller,group); } }); buttonPanel.add(newCategoryButton); detailsPanel.add(buttonPanel,BorderLayout.SOUTH); container.add(detailsPanel,BorderLayout.CENTER); JPanel savePanel = new JPanel(); savePanel.setLayout(new FlowLayout(FlowLayout.RIGHT)); JButton saveButton = new JButton("Save"); saveButton.setAction(saveAction); savePanel.add(saveButton); savePanel.add(Box.createHorizontalStrut(10)); JButton cancelButton = new JButton("Cancel"); cancelButton.setAction(cancelAction); savePanel.add(cancelButton); container.add(savePanel,BorderLayout.SOUTH); }
3,230,717
public void valueChanged(ListSelectionEvent e) { int i = categoryList.getSelectedIndex(); CategoryGroup group = (CategoryGroup)controller.getCategoryGroups().get(selectedGroup); Category cat = (Category)controller.getCategories(group).get(i); repaint(); }
public void valueChanged(ListSelectionEvent e) { int i = categoryList.getSelectedIndex(); CategoryGroup group = (CategoryGroup)controller.getCategoryGroups().get(selectedGroup); Category cat = (Category)controller.getCategories(group).get(selectedCategory); repaint(); }
3,230,718
public Map getCategories() { if (_allCategories == null) { Collection cats = CategoryUtil.getCategories(); if(cats!=null && !cats.isEmpty()){ _allCategories = new LinkedHashMap(); _allCategories.put(ArticleUtil.getBundle().getLocalizedText("All categories"), "-1"); Iterator cat = cats.iterator(); while (cat.hasNext()) { String category = (String) cat.next(); _allCategories.put(ArticleUtil.getBundle().getLocalizedText(category),category); } } } return _allCategories; }
public Map getCategories() { if (_allCategories == null) { Collection cats = CategoryUtil.getCategories(); if(cats!=null && !cats.isEmpty()){ _allCategories = new LinkedHashMap(); _allCategories.put(ArticleUtil.getBundle().getLocalizedText("All categories"), "-1"); Iterator cat = cats.iterator(); while (cat.hasNext()) { String category = (String) cat.next(); _allCategories.put(ArticleUtil.getBundle().getLocalizedText(category),category); } } } return _allCategories; }
3,230,719
public SearchRequest getSearchRequest(String scope, Locale locale) throws SearchException { SearchRequest s = new SearchRequest(); s.addSelection(IWSlideConstants.PROPERTY_CREATION_DATE); s.addSelection(IWSlideConstants.PROPERTY_CATEGORY); s.addScope(new SearchScope(scope)); SearchExpression whereExpression = null; //String localeString = ""; //((locale!=null)?locale.getLanguage():""); //TODO create search input for language SearchExpression namePatternExpression = s.compare(CompareOperator.LIKE, IWSlideConstants.PROPERTY_DISPLAY_NAME,"%.article"); //todo search by the content type //SearchExpression contentTypeExpression = s.compare(CompareOperator.LIKE, ArticleItemBean.PROPERTY_CONTENT_TYPE, ArticleItemBean.ARTICLE_FILENAME_SCOPE); whereExpression = namePatternExpression; //whereExpression = contentTypeExpression; SearchExpression creationDateFromExpression = null; if(getSearchPublishedFrom() != null){ Date from = getSearchPublishedFrom(); IWTimestamp stamp = new IWTimestamp(from); //the date's time is at 24:00 so anything from that day will not be found. So be back up a day to 24:00 stamp.addDays(-1); from = stamp.getDate(); creationDateFromExpression = s.compare(CompareOperator.GTE, IWSlideConstants.PROPERTY_CREATION_DATE,from); whereExpression = s.and(whereExpression,creationDateFromExpression); } SearchExpression creationDateToExpression = null; if(getSearchPublishedTo() != null){ creationDateToExpression = s.compare(CompareOperator.LTE, IWSlideConstants.PROPERTY_CREATION_DATE,getSearchPublishedTo()); whereExpression = s.and(whereExpression,creationDateToExpression); } // List categoryExpressions = new ArrayList(); if(!getSearchCategory().equals("-1")){ SearchExpression categoryExpression = s.compare(CompareOperator.LIKE,IWSlideConstants.PROPERTY_CATEGORY,","+getSearchCategory()+","); whereExpression = s.and(whereExpression,categoryExpression); } String author = getSearchAuthor(); if(author!=null && !"".equals(author)){ SearchExpression authorExpression = s.compare(CompareOperator.LIKE,IWSlideConstants.PROPERTY_CREATOR_DISPLAY_NAME,"%"+author+"%"); whereExpression = s.and(whereExpression,authorExpression); } // }// whereExpression = s.and(whereExpression,categoryExpression);// for (Iterator iter = categoryList.iterator(); iter.hasNext();) {// String categoryName = (String) iter.next();// categoryExpressions.add(s.compare(CompareOperator.LIKE,IWSlideConstants.PROPERTY_CATEGORY,"%"+categoryName+"%"));// }// Iterator expr = categoryExpressions.iterator();// if(expr.hasNext()){// SearchExpression categoryExpression = (SearchExpression)expr.next();// while(expr.hasNext()){// categoryExpression = s.or(categoryExpression,(SearchExpression)expr.next());// }// whereExpression = s.and(whereExpression,categoryExpression);// }// } SearchExpression containsExpression = null; if(getSearchText() != null && !"".equals(getSearchText())){ containsExpression = s.contains(getSearchText()); if(whereExpression!=null){ whereExpression = s.and(whereExpression,containsExpression); }else{ whereExpression = containsExpression; } } s.setWhereExpression(whereExpression); System.out.println("------------------------"); System.out.println(s.asString()); System.out.println("------------------------"); return s; }
public SearchRequest getSearchRequest(String scope, Locale locale) throws SearchException { SearchRequest s = new SearchRequest(); s.addSelection(IWSlideConstants.PROPERTY_CREATION_DATE); s.addSelection(IWSlideConstants.PROPERTY_CATEGORY); s.addScope(new SearchScope(scope)); SearchExpression whereExpression = null; //String localeString = ""; //((locale!=null)?locale.getLanguage():""); //TODO create search input for language SearchExpression namePatternExpression = s.compare(CompareOperator.LIKE, IWSlideConstants.PROPERTY_DISPLAY_NAME,"%.article"); //todo search by the content type //SearchExpression contentTypeExpression = s.compare(CompareOperator.LIKE, ArticleItemBean.PROPERTY_CONTENT_TYPE, ArticleItemBean.ARTICLE_FILENAME_SCOPE); whereExpression = namePatternExpression; //whereExpression = contentTypeExpression; SearchExpression creationDateFromExpression = null; if(getSearchPublishedFrom() != null){ Date from = getSearchPublishedFrom(); IWTimestamp stamp = new IWTimestamp(from); //the date's time is at 24:00 so anything from that day will not be found. So be back up a day to 24:00 stamp.addDays(-1); from = stamp.getDate(); creationDateFromExpression = s.compare(CompareOperator.GTE, IWSlideConstants.PROPERTY_CREATION_DATE,from); whereExpression = s.and(whereExpression,creationDateFromExpression); } SearchExpression creationDateToExpression = null; if(getSearchPublishedTo() != null){ creationDateToExpression = s.compare(CompareOperator.LTE, IWSlideConstants.PROPERTY_CREATION_DATE,getSearchPublishedTo()); whereExpression = s.and(whereExpression,creationDateToExpression); } // List categoryExpressions = new ArrayList(); if(!getSearchCategory().equals("-1")){ SearchExpression categoryExpression = s.compare(CompareOperator.LIKE,IWSlideConstants.PROPERTY_CATEGORY,","+getSearchCategory()+","); whereExpression = s.and(whereExpression,categoryExpression); } String author = getSearchAuthor(); if(author!=null && !"".equals(author)){ SearchExpression authorExpression = s.compare(CompareOperator.LIKE,IWSlideConstants.PROPERTY_CREATOR_DISPLAY_NAME,"%"+author+"%"); whereExpression = s.and(whereExpression,authorExpression); } // }// whereExpression = s.and(whereExpression,categoryExpression);// for (Iterator iter = categoryList.iterator(); iter.hasNext();) {// String categoryName = (String) iter.next();// categoryExpressions.add(s.compare(CompareOperator.LIKE,IWSlideConstants.PROPERTY_CATEGORY,"%"+categoryName+"%"));// }// Iterator expr = categoryExpressions.iterator();// if(expr.hasNext()){// SearchExpression categoryExpression = (SearchExpression)expr.next();// while(expr.hasNext()){// categoryExpression = s.or(categoryExpression,(SearchExpression)expr.next());// }// whereExpression = s.and(whereExpression,categoryExpression);// }// } SearchExpression containsExpression = null; if(getSearchText() != null && !"".equals(getSearchText())){ containsExpression = s.contains(getSearchText()); if(whereExpression!=null){ whereExpression = s.and(whereExpression,containsExpression); }else{ whereExpression = containsExpression; } } s.setWhereExpression(whereExpression); System.out.println("------------------------"); System.out.println(s.asString()); System.out.println("------------------------"); return s; }
3,230,720
public static void main(String args[]) throws IOException { //@START int n = Integer.parseInt(args[0]); int i, c; String s = ""; Integer ii; // the original program used: // Hashtable ht = new Hashtable(); // John Olsson points out that Hashtable is for synchronized access // and we should use instead: HashMap ht = new HashMap(); c = 0; for (i = 1; i <= n; i++) ht.put(Integer.toString(i, 16), new Integer(i)); for (i = 1; i <= n; i++) // The original code converted to decimal string this way: // if (ht.containsKey(i+"")) if (ht.containsKey(Integer.toString(i, 10))) c++; System.out.println(c); //@END }
public static void main(String args[]) throws IOException { //@START int n = Integer.parseInt(args[0]); int i, c; String s = ""; Integer ii; // the original program used: // Hashtable ht = new Hashtable(); // John Olsson points out that Hashtable is for synchronized access // and we should use instead: HashMap ht = new HashMap(); c = 0; for (i = 1; i <= n; i++) ht.put(Integer.toString(i, 16), new Integer(i)); for (i = 1; i <= n; i++) // The original code converted to decimal string this way: // if (ht.containsKey(i+"")) if (ht.containsKey(Integer.toString(i, 10))) c++; System.out.println(c); //@END }
3,230,721
private void createUI() { setLayout(new BorderLayout()); tabs = new JPanel(new FlowLayout(FlowLayout.LEFT, 0, 0)) { public Dimension getPreferredSize() { if (getParent() == null) return getPreferredSize(); // calculate the preferred size based on the flow of components FlowLayout flow = (FlowLayout)getLayout(); int w = getParent().getWidth(); int h = flow.getVgap(); int x = flow.getHgap(); int rowH = 0; Dimension d; Component[] comps = getComponents(); for (int i = 0; i < comps.length; i++) { if (comps[i].isVisible()) { d = comps[i].getPreferredSize(); if (x + d.width > w && x > flow.getHgap()) { x = flow.getHgap(); h += rowH; rowH = 0; h += flow.getVgap(); } rowH = Math.max(d.height, rowH); x += d.width + flow.getHgap(); } } h += rowH; return new Dimension(w, h); } }; final JPanel topPanel = new JPanel(); topPanel.setLayout(new GridBagLayout()); topPanel.add(new JLabel(), new GridBagConstraints(1, 0, 1, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0)); topPanel.setOpaque(false); // Add Tabs panel to top of panel. if (tabPlacement == JTabbedPane.TOP) { topPanel.add(tabs, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(2, 0, 0, 0), 0, 0)); add(topPanel, BorderLayout.NORTH); } else { topPanel.add(tabs, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 2, 0), 0, 0)); add(topPanel, BorderLayout.SOUTH); } // Create mainPanel mainPanel = new JPanel(new CardLayout()); add(mainPanel, BorderLayout.CENTER); // mainPanel.setBorder(BorderFactory.createLineBorder(Color.lightGray)); // Initialize close button closeInactiveButtonIcon = SparkRes.getImageIcon(SparkRes.CLOSE_WHITE_X_IMAGE); closeActiveButtonIcon = SparkRes.getImageIcon(SparkRes.CLOSE_DARK_X_IMAGE); setOpaque(false); tabs.setOpaque(false); }
private void createUI() { setLayout(new BorderLayout()); tabs = new JPanel(new FlowLayout(FlowLayout.LEFT, 0, 0)) { public Dimension getPreferredSize() { if (getParent() == null) return getPreferredSize(); // calculate the preferred size based on the flow of components FlowLayout flow = (FlowLayout)getLayout(); int w = getParent().getWidth(); int h = flow.getVgap(); int x = flow.getHgap(); int rowH = 0; Dimension d; Component[] comps = getComponents(); for (int i = 0; i < comps.length; i++) { if (comps[i].isVisible()) { d = comps[i].getPreferredSize(); if (x + d.width > w && x > flow.getHgap()) { x = flow.getHgap(); h += rowH; rowH = 0; h += flow.getVgap(); } rowH = Math.max(d.height, rowH); x += d.width + flow.getHgap(); } } h += rowH; return new Dimension(w, h); } }; final JPanel topPanel = new JPanel(); topPanel.setLayout(new GridBagLayout()); topPanel.add(new JLabel(), new GridBagConstraints(1, 0, 1, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0)); topPanel.setOpaque(false); // Add Tabs panel to top of panel. if (tabPlacement == JTabbedPane.TOP) { topPanel.add(tabs, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(2, 0, 0, 0), 0, 0)); add(topPanel, BorderLayout.NORTH); } else { topPanel.add(tabs, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 2, 0), 0, 0)); add(topPanel, BorderLayout.SOUTH); } // Create mainPanel mainPanel = new JPanel(new CardLayout()); add(mainPanel, BorderLayout.CENTER); // mainPanel.setBorder(BorderFactory.createLineBorder(Color.lightGray)); // Initialize close button closeInactiveButtonIcon = SparkRes.getImageIcon(SparkRes.CLOSE_WHITE_X_IMAGE); closeActiveButtonIcon = SparkRes.getImageIcon(SparkRes.CLOSE_DARK_X_IMAGE); setOpaque(false); tabs.setOpaque(false); }
3,230,722
public void mouseClicked(MouseEvent e) { }
if (e.getSource() instanceof SparkTab) { SparkTab tab = (SparkTab)e.getSource(); setSelectedTab(tab); } if (e.getSource() instanceof SparkTab) { SparkTab tab = (SparkTab)e.getSource(); setSelectedTab(tab); } if (e.getSource() instanceof SparkTab) { SparkTab tab = (SparkTab)e.getSource(); setSelectedTab(tab); } if (e.getSource() instanceof SparkTab) { SparkTab tab = (SparkTab)e.getSource(); setSelectedTab(tab); } publicif (e.getSource() instanceof SparkTab) { SparkTab tab = (SparkTab)e.getSource(); setSelectedTab(tab); } voidif (e.getSource() instanceof SparkTab) { SparkTab tab = (SparkTab)e.getSource(); setSelectedTab(tab); } mouseClicked(MouseEventif (e.getSource() instanceof SparkTab) { SparkTab tab = (SparkTab)e.getSource(); setSelectedTab(tab); } e)if (e.getSource() instanceof SparkTab) { SparkTab tab = (SparkTab)e.getSource(); setSelectedTab(tab); } {if (e.getSource() instanceof SparkTab) { SparkTab tab = (SparkTab)e.getSource(); setSelectedTab(tab); } if (e.getSource() instanceof SparkTab) { SparkTab tab = (SparkTab)e.getSource(); setSelectedTab(tab); } if (e.getSource() instanceof SparkTab) { SparkTab tab = (SparkTab)e.getSource(); setSelectedTab(tab); } if (e.getSource() instanceof SparkTab) { SparkTab tab = (SparkTab)e.getSource(); setSelectedTab(tab); } }
3,230,723
public void mousePressed(MouseEvent e) { if(e.isPopupTrigger()){ return; } if (e.getSource() instanceof SparkTab) { SparkTab tab = (SparkTab)e.getSource(); setSelectedTab(tab); } }
public void mousePressed(MouseEvent e) { if(e.isPopupTrigger()){ return; } if (e.getSource() instanceof SparkTab) { SparkTab tab = (SparkTab)e.getSource(); setSelectedTab(tab); } }
3,230,724
public void setSelected(boolean selected) { super.setSelected(selected); this.selected = selected; if (boldWhenActive && selected) { textLabel.setFont(textLabel.getFont().deriveFont(Font.BOLD)); } else { textLabel.setFont(defaultFont); } invalidate(); repaint(); }
public void setSelected(boolean selected) { super.setSelected(selected); this.selected = selected; if (boldWhenActive && selected) { textLabel.setFont(textLabel.getFont().deriveFont(Font.BOLD)); } else { } invalidate(); repaint(); }
3,230,725
WC(final Broker broker) { _broker = broker; try { String tools = (String) _broker.getValue("config","TemplateTools"); Enumeration tenum = new StringTokenizer(tools); while (tenum.hasMoreElements()) { String toolName = (String) tenum.nextElement(); try { Class toolType = Class.forName(toolName); String varName = getToolName(toolName); Object tool = toolType.newInstance(); put(varName,toolType); } catch (ClassNotFoundException ce) { _log.exception(ce); _log.error("Tool class " + toolName + " not found: " + ce); } catch (IllegalAccessException ia) { _log.exception(ia); _log.error("Tool class and methods must be public for " + toolName + ": " + ia); } catch (InstantiationException ie) { _log.exception(ie); _log.error("Tool class " + toolName + " must have a public zero " + "argument or default constructor: " + ie); } } } catch (NotFoundException e) { _log.exception(e); _log.error("Could not locate TemplateTools in config: " + e); } catch (InvalidTypeException e) { _log.exception(e); _log.error("Could not access config: " + e); } }
WC(final Broker broker) { _broker = broker; try { String tools = (String) _broker.getValue("config","TemplateTools"); Enumeration tenum = new StringTokenizer(tools); while (tenum.hasMoreElements()) { String toolName = (String) tenum.nextElement(); try { Class toolType = Class.forName(toolName); String varName = getToolName(toolName); Object tool = toolType.newInstance(); put(varName,tool); } catch (ClassNotFoundException ce) { _log.exception(ce); _log.error("Tool class " + toolName + " not found: " + ce); } catch (IllegalAccessException ia) { _log.exception(ia); _log.error("Tool class and methods must be public for " + toolName + ": " + ia); } catch (InstantiationException ie) { _log.exception(ie); _log.error("Tool class " + toolName + " must have a public zero " + "argument or default constructor: " + ie); } } } catch (NotFoundException e) { _log.exception(e); _log.error("Could not locate TemplateTools in config: " + e); } catch (InvalidTypeException e) { _log.exception(e); _log.error("Could not access config: " + e); } }
3,230,726
final public ContextTool getTool(String name) throws InvalidContextException { try { return (ContextTool) getMacro(name); } catch (ClassCastException ce) { throw new InvalidContextException("Not a tool, " + name + " is a " + name.getClass()); } }
final public ContextTool getTool(String name) throws InvalidContextException { try { return (ContextTool) getMacro(name); } catch (ClassCastException ce) { throw new InvalidContextException("Not a tool, " + name + " is a " + c + ": " + v); } }
3,230,727
final public WebContext clone( final HttpServletRequest req, final HttpServletResponse resp) { try { // want: new local vars, both existing tools tables, no bean, // plus store req and resp somewhere, plus existing broker WebContext wc = (WebContext) clone(null); wc._request = req; wc._response = resp; return wc; } catch (Exception e) { _log.error("Clone not supported on WebContext!"); return null; } }
final public WebContext clone( final HttpServletRequest req, final HttpServletResponse resp) { try { // want: new local vars, both existing tools tables, no bean, // plus store req and resp somewhere, plus existing broker WebContext wc = (WebContext) clone(); wc._request = req; wc._response = resp; return wc; } catch (Exception e) { _log.error("Clone not supported on WebContext!"); return null; } }
3,230,728
public MethodVisitor visitMethod(final int access, final String name, final String desc, final String signature, final String[] exceptions) { MethodVisitor mv = cv.visitMethod(access, name, desc, signature, exceptions); if (!instrument) return mv; return mv == null ? null : new MethodInstrumenter(classData, mv, this.myName, name, desc, ignoreRegex); }
public MethodVisitor visitMethod(final int access, final String name, final String desc, final String signature, final String[] exceptions) { MethodVisitor mv = cv.visitMethod(access, name, desc, signature, exceptions); if (!instrument) return mv; return mv == null ? null : new MethodInstrumenter(classData, mv, this.myName, name, desc, ignoreRegex); }
3,230,729
public MethodInstrumenter(ClassData classData, final MethodVisitor mv, final String owner, final String myName, final String myDescriptor, final Pattern ignoreRegexp) { super(mv); this.classData = classData; this.ownerClass = owner; this.myName = myName; this.myDescriptor = myDescriptor; this.ignoreRegex = ignoreRegexp; }
public MethodInstrumenter(ClassData classData, final MethodVisitor mv, final String owner, final String myName, final String myDescriptor, final Pattern ignoreRegexp) { super(mv); this.classData = classData; this.ownerClass = owner; this.myName = myName; this.myDescriptor = myDescriptor; this.ignoreRegex = ignoreRegexp; }
3,230,730
public MethodInstrumenter(ClassData classData, final MethodVisitor mv, final String owner, final String myName, final String myDescriptor, final Pattern ignoreRegexp) { super(mv); this.classData = classData; this.ownerClass = owner; this.myName = myName; this.myDescriptor = myDescriptor; this.ignoreRegex = ignoreRegexp; }
public MethodInstrumenter(ClassData classData, final MethodVisitor mv, final String owner, final String myName, final String myDescriptor, final Pattern ignoreRegexp) { super(mv); this.classData = classData; this.ownerClass = owner; this.myName = myName; this.myDescriptor = myDescriptor; this.ignoreRegex = ignoreRegexp; }
3,230,731
void initialize(ClipBoardControl controller, ClipBoardModel model) { if (controller == null) throw new NullPointerException("No control."); if (model == null) throw new NullPointerException("No model."); this.model = model; this.controller = controller; initComponents(); buildUI(); //Initializes the listener otherwise an event is fired when //components are added to the tabbed pane. initListener(); }
void initialize(ClipBoardControl controller, ClipBoardModel model) { if (controller == null) throw new NullPointerException("No control."); if (model == null) throw new NullPointerException("No model."); this.model = model; this.controller = controller; initComponents(); buildUI(); //Initializes the listener otherwise an event is fired when //components are added to the tabbed pane. }
3,230,733
public void composingNotification(final String from, String packetID) { SwingUtilities.invokeLater(new Runnable() { public void run() { String bareAddress = StringUtils.parseBareAddress(from); if (bareAddress.equals(getRoomname())) { String nickname = StringUtils.parseResource(from); String isTypingText = Res.getString("message.is.typing.a.message", nickname); } } }); }
public void composingNotification(final String from, String packetID) { SwingUtilities.invokeLater(new Runnable() { public void run() { String bareAddress = StringUtils.parseBareAddress(from); if (bareAddress.equals(getRoomname())) { String nickname = StringUtils.parseResource(from); String isTypingText = Res.getString("message.is.typing.a.message", nickname); } } }); }
3,230,734
public void run() { String bareAddress = StringUtils.parseBareAddress(from); if (bareAddress.equals(getRoomname())) { String nickname = StringUtils.parseResource(from); String isTypingText = Res.getString("message.is.typing.a.message", nickname); } }
public void run() { String bareAddress = StringUtils.parseBareAddress(from); if (bareAddress.equals(getRoomname())) { String nickname = StringUtils.parseResource(from); String isTypingText = Res.getString("message.is.typing.a.message", nickname); } }
3,230,735
public void setSendAndReceiveTypingNotifications(boolean sendAndReceiveTypingNotifications) { sendNotifications = sendAndReceiveTypingNotifications; if (sendAndReceiveTypingNotifications) { SparkManager.getMessageEventManager().addMessageEventNotificationListener(messageManager); } else { SparkManager.getMessageEventManager().removeMessageEventNotificationListener(messageManager); } }
public void setSendAndReceiveTypingNotifications(boolean sendAndReceiveTypingNotifications) { sendNotifications = sendAndReceiveTypingNotifications; if (sendAndReceiveTypingNotifications) { SparkManager.getMessageEventManager().addMessageEventNotificationListener(messageManager); } else { SparkManager.getMessageEventManager().removeMessageEventNotificationListener(messageManager); } }
3,230,736
private void setupListeners() { chat.addParticipantStatusListener(new DefaultParticipantStatusListener() { public void kicked(String participant) { String nickname = StringUtils.parseResource(participant); insertText(Res.getString("message.user.kicked.from.room", nickname)); } public void voiceGranted(String participant) { String nickname = StringUtils.parseResource(participant); insertText(Res.getString("message.user.given.voice", nickname)); } public void voiceRevoked(String participant) { String nickname = StringUtils.parseResource(participant); insertText(Res.getString("message.user.voice.revoked", nickname)); } public void banned(String participant) { String nickname = StringUtils.parseResource(participant); insertText(Res.getString("message.user.banned", nickname)); } public void membershipGranted(String participant) { String nickname = StringUtils.parseResource(participant); insertText(Res.getString("message.user.granted.membership", nickname)); } public void membershipRevoked(String participant) { String nickname = StringUtils.parseResource(participant); insertText(Res.getString("message.user.revoked.membership", nickname)); } public void moderatorGranted(String participant) { String nickname = StringUtils.parseResource(participant); insertText(Res.getString("message.user.granted.moderator", nickname)); } public void moderatorRevoked(String participant) { String nickname = StringUtils.parseResource(participant); insertText(Res.getString("message.user.revoked.moderator", nickname)); } public void ownershipGranted(String participant) { String nickname = StringUtils.parseResource(participant); insertText(Res.getString("message.user.granted.owner", nickname)); } public void ownershipRevoked(String participant) { String nickname = StringUtils.parseResource(participant); insertText(Res.getString("message.user.revoked.owner", nickname)); } public void adminGranted(String participant) { String nickname = StringUtils.parseResource(participant); insertText(Res.getString("message.user.granted.admin", nickname)); } public void adminRevoked(String participant) { String nickname = StringUtils.parseResource(participant); insertText(Res.getString("message.user.revoked.admin", nickname)); } public void nicknameChanged(String participant, String nickname) { insertText(Res.getString("message.user.nickname.changed", StringUtils.parseResource(participant), nickname)); } }); chat.addUserStatusListener(new DefaultUserStatusListener() { public void kicked(String s, String reason) { insertText(Res.getString("message.your.kicked", s)); getChatInputEditor().setEnabled(false); getSplitPane().setRightComponent(null); leaveChatRoom(); } public void voiceGranted() { insertText(Res.getString("message.your.voice.granted")); getChatInputEditor().setEnabled(true); } public void voiceRevoked() { insertText(Res.getString("message.your.voice.revoked")); getChatInputEditor().setEnabled(false); } public void banned(String s, String reason) { insertText(Res.getString("message.your.banned")); } public void membershipGranted() { insertText(Res.getString("message.your.membership.granted")); } public void membershipRevoked() { insertText(Res.getString("message.your.membership.revoked")); } public void moderatorGranted() { insertText(Res.getString("message.your.moderator.granted")); } public void moderatorRevoked() { insertText(Res.getString("message.your.moderator.revoked")); } public void ownershipGranted() { insertText(Res.getString("message.your.ownership.granted")); } public void ownershipRevoked() { insertText(Res.getString("message.your.ownership.revoked")); } public void adminGranted() { insertText(Res.getString("message.your.admin.granted")); } public void adminRevoked() { insertText(Res.getString("message.your.revoked.granted")); } }); chat.addSubjectUpdatedListener(new SubjectListener()); }
privatevoidsetupListeners(){chat.addParticipantStatusListener(newDefaultParticipantStatusListener(){publicvoidkicked(Stringparticipant){Stringnickname=StringUtils.parseResource(participant);insertText(Res.getString("message.user.kicked.from.room",nickname));}publicvoidvoiceGranted(Stringparticipant){Stringnickname=StringUtils.parseResource(participant);insertText(Res.getString("message.user.given.voice",nickname));}publicvoidvoiceRevoked(Stringparticipant){Stringnickname=StringUtils.parseResource(participant);insertText(Res.getString("message.user.voice.revoked",nickname));}publicvoidbanned(Stringparticipant){Stringnickname=StringUtils.parseResource(participant);insertText(Res.getString("message.user.banned",nickname));}publicvoidmembershipGranted(Stringparticipant){Stringnickname=StringUtils.parseResource(participant);insertText(Res.getString("message.user.granted.membership",nickname));}publicvoidmembershipRevoked(Stringparticipant){Stringnickname=StringUtils.parseResource(participant);insertText(Res.getString("message.user.revoked.membership",nickname));}publicvoidmoderatorGranted(Stringparticipant){Stringnickname=StringUtils.parseResource(participant);insertText(Res.getString("message.user.granted.moderator",nickname));}publicvoidmoderatorRevoked(Stringparticipant){Stringnickname=StringUtils.parseResource(participant);insertText(Res.getString("message.user.revoked.moderator",nickname));}publicvoidownershipGranted(Stringparticipant){Stringnickname=StringUtils.parseResource(participant);insertText(Res.getString("message.user.granted.owner",nickname));}publicvoidownershipRevoked(Stringparticipant){Stringnickname=StringUtils.parseResource(participant);insertText(Res.getString("message.user.revoked.owner",nickname));}publicvoidadminGranted(Stringparticipant){Stringnickname=StringUtils.parseResource(participant);insertText(Res.getString("message.user.granted.admin",nickname));}publicvoidadminRevoked(Stringparticipant){Stringnickname=StringUtils.parseResource(participant);insertText(Res.getString("message.user.revoked.admin",nickname));}publicvoidnicknameChanged(Stringparticipant,Stringnickname){insertText(Res.getString("message.user.nickname.changed",StringUtils.parseResource(participant),nickname));}});chat.addUserStatusListener(newDefaultUserStatusListener(){publicvoidkicked(Strings,Stringreason){insertText(Res.getString("message.your.kicked",s));getChatInputEditor().setEnabled(false);getSplitPane().setRightComponent(null);leaveChatRoom();}publicvoidvoiceGranted(){insertText(Res.getString("message.your.voice.granted"));getChatInputEditor().setEnabled(true);}publicvoidvoiceRevoked(){insertText(Res.getString("message.your.voice.revoked"));getChatInputEditor().setEnabled(false);}publicvoidbanned(Strings,Stringreason){insertText(Res.getString("message.your.banned"));}publicvoidmembershipGranted(){insertText(Res.getString("message.your.membership.granted"));}publicvoidmembershipRevoked(){insertText(Res.getString("message.your.membership.revoked"));}publicvoidmoderatorGranted(){insertText(Res.getString("message.your.moderator.granted"));}publicvoidmoderatorRevoked(){insertText(Res.getString("message.your.moderator.revoked"));}publicvoidownershipGranted(){insertText(Res.getString("message.your.ownership.granted"));}publicvoidownershipRevoked(){insertText(Res.getString("message.your.ownership.revoked"));}publicvoidadminGranted(){insertText(Res.getString("message.your.admin.granted"));}publicvoidadminRevoked(){insertText(Res.getString("message.your.revoked.granted"));}});chat.addSubjectUpdatedListener(newSubjectListener());}
3,230,737
public void addLog(String action, Class klass, Long id) { Assert.notNull(action); Assert.notNull(klass); Assert.notNull(id); if (Event.class.isAssignableFrom(klass) || EventLog.class.isAssignableFrom(klass) || EventDiff.class.isAssignableFrom(klass)) { log.debug("Not logging creation of logging type:" + klass); } else { checkReady("addLog"); log.info("Adding log:" + action + "," + klass + "," + id); EventLog l = new EventLog(); l.setAction(action); l.setType(klass.getName()); // TODO could be id to Type entity l.setIdList(id.toString()); l.setDetails(CurrentDetails.createDetails()); l.getGraphHolder().setToken(null, token); CurrentDetails.getCreationEvent().addEventLog(l); } }
public void addLog(String action, Class klass, Long id) { Assert.notNull(action); Assert.notNull(klass); Assert.notNull(id); if (Event.class.isAssignableFrom(klass) || EventLog.class.isAssignableFrom(klass) || EventDiff.class.isAssignableFrom(klass)) { log.debug("Not logging creation of logging type:" + klass); } else { checkReady("addLog"); log.info("Adding log:" + action + "," + klass + "," + id); EventLog l = new EventLog(); l.setAction(action); l.setType(klass.getName()); // TODO could be id to Type entity l.setIdList(id.toString()); l.setDetails(CurrentDetails.createDetails()); l.getGraphHolder().setToken(null, token); CurrentDetails.getCreationEvent().addEventLog(l); } }
3,230,738
public void addLog(String action, Class klass, Long id) { Assert.notNull(action); Assert.notNull(klass); Assert.notNull(id); if (Event.class.isAssignableFrom(klass) || EventLog.class.isAssignableFrom(klass) || EventDiff.class.isAssignableFrom(klass)) { log.debug("Not logging creation of logging type:" + klass); } else { checkReady("addLog"); log.info("Adding log:" + action + "," + klass + "," + id); EventLog l = new EventLog(); l.setAction(action); l.setType(klass.getName()); // TODO could be id to Type entity l.setIdList(id.toString()); l.setDetails(CurrentDetails.createDetails()); l.getGraphHolder().setToken(null, token); CurrentDetails.getCreationEvent().addEventLog(l); } }
public void addLog(String action, Class klass, Long id) { Assert.notNull(action); Assert.notNull(klass); Assert.notNull(id); if (Event.class.isAssignableFrom(klass) || EventLog.class.isAssignableFrom(klass) || EventDiff.class.isAssignableFrom(klass)) { log.debug("Not logging creation of logging type:" + klass); } else { checkReady("addLog"); log.info("Adding log:" + action + "," + klass + "," + id); EventLog l = new EventLog(); l.setAction(action); l.setType(klass.getName()); // TODO could be id to Type entity l.setIdList(id.toString()); l.setDetails(CurrentDetails.createDetails()); l.getGraphHolder().setToken(null, token); CurrentDetails.getCreationEvent().addEventLog(l); } }
3,230,739
public boolean allowLoad(Class<? extends IObject> klass, Details d) { Assert.notNull(klass); Assert.notNull(d); if (isSystemType(klass)) return true; return SecurityFilter.passesFilter(this, d); }
public boolean allowLoad(Class<? extends IObject> klass, Details d) { Assert.notNull(klass); Assert.notNull(d); if (isSystemType(klass)) return true; return SecurityFilter.passesFilter(this, d); }
3,230,740
protected boolean managedGroup(boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { // previous and current have different ids. either change it and return // true if permitted, or throw an exception. if (!idEqual(previousDetails.getGroup(), currentDetails.getGroup())) { if (locked) { throw new SecurityViolation("Cannot change group for entity:" + obj); } // even root can't set them to null. else if (currentDetails.getGroup() == null) { newDetails.setGroup(previousDetails.getGroup()); return true; } // if user is a member of the group or the current user is an admin // or if the entity has been marked as privileged, then use the // current group. else if (memberOfGroups().contains( currentDetails.getGroup().getId()) || currentUserIsAdmin() || privileged) { newDetails.setGroup(currentDetails.getGroup()); return true; } // everyone else can't change them at all. else { throw new SecurityViolation(String.format( "You are not authorized to change " + "the group for %s from %s to %s", obj, previousDetails.getGroup(), currentDetails.getGroup())); } } // previous and current are the same, but we need to set // that value on newDetails. else { // This doesn't need to return true, because it'll only // be used if something else was changed. newDetails.setGroup(previousDetails.getGroup()); } return false; }
protected boolean managedGroup(boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { // previous and current have different ids. either change it and return // true if permitted, or throw an exception. if (!idEqual(previousDetails.getGroup(), currentDetails.getGroup())) { if (locked) { throw new SecurityViolation("Cannot change group for entity:" + obj); } // even root can't set them to null. else if (currentDetails.getGroup() == null) { newDetails.setGroup(previousDetails.getGroup()); return true; } // if user is a member of the group or the current user is an admin // or if the entity has been marked as privileged, then use the // current group. else if (memberOfGroups().contains( currentDetails.getGroup().getId()) || currentUserIsAdmin() || privileged) { newDetails.setGroup(currentDetails.getGroup()); return true; } // everyone else can't change them at all. else { throw new SecurityViolation(String.format( "You are not authorized to change " + "the group for %s from %s to %s", obj, previousDetails.getGroup(), currentDetails.getGroup())); } } // previous and current are the same, but we need to set // that value on newDetails. else { // This doesn't need to return true, because it'll only // be used if something else was changed. newDetails.setGroup(previousDetails.getGroup()); } return false; }
3,230,742
protected boolean managedOwner(boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { if (!idEqual(previousDetails.getOwner(), currentDetails.getOwner())) { if (locked) { throw new SecurityViolation("Cannot change owner for:" + obj); } // if the current user is an admin or if the entity has been // marked privileged, then use the current owner. else if (currentUserIsAdmin() || privileged) { // even root can't set them to null. if (currentDetails.getOwner() == null) { newDetails.setOwner(previousDetails.getOwner()); return true; } } // everyone else can't change them at all. else { throw new SecurityViolation(String.format( "You are not authorized to change " + "the owner for %s from %s to %s", obj, previousDetails.getOwner(), currentDetails.getOwner())); } } else { // values are the same. ensure they are the same for // newDetails as well newDetails.setOwner(previousDetails.getOwner()); } return false; }
protected boolean managedOwner(boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { if (!idEqual(previousDetails.getOwner(), currentDetails.getOwner())) { if (locked) { throw new SecurityViolation("Cannot change owner for:" + obj); } // if the current user is an admin or if the entity has been // marked privileged, then use the current owner. else if (currentUserIsAdmin() || privileged) { // even root can't set them to null. if (currentDetails.getOwner() == null) { newDetails.setOwner(previousDetails.getOwner()); return true; } } // everyone else can't change them at all. else { throw new SecurityViolation(String.format( "You are not authorized to change " + "the owner for %s from %s to %s", obj, previousDetails.getOwner(), currentDetails.getOwner())); } } else { // values are the same. ensure they are the same for // newDetails as well newDetails.setOwner(previousDetails.getOwner()); } return false; }
3,230,744
protected boolean managedOwner(boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { if (!idEqual(previousDetails.getOwner(), currentDetails.getOwner())) { if (locked) { throw new SecurityViolation("Cannot change owner for:" + obj); } // if the current user is an admin or if the entity has been // marked privileged, then use the current owner. else if (currentUserIsAdmin() || privileged) { // even root can't set them to null. if (currentDetails.getOwner() == null) { newDetails.setOwner(previousDetails.getOwner()); return true; } } // everyone else can't change them at all. else { throw new SecurityViolation(String.format( "You are not authorized to change " + "the owner for %s from %s to %s", obj, previousDetails.getOwner(), currentDetails.getOwner())); } } else { // values are the same. ensure they are the same for // newDetails as well newDetails.setOwner(previousDetails.getOwner()); } return false; }
protected boolean managedOwner(boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { if (!idEqual(previousDetails.getOwner(), currentDetails.getOwner())) { if (locked) { throw new SecurityViolation("Cannot change owner for:" + obj); } // if the current user is an admin or if the entity has been // marked privileged, then use the current owner. else if (currentUserIsAdmin() || privileged) { // even root can't set them to null. if (currentDetails.getOwner() == null) { newDetails.setOwner(previousDetails.getOwner()); return true; } } // everyone else can't change them at all. else { throw new SecurityViolation(String.format( "You are not authorized to change " + "the owner for %s from %s to %s", obj, previousDetails.getOwner(), currentDetails.getOwner())); } } else { // values are the same. ensure they are the same for // newDetails as well newDetails.setOwner(previousDetails.getOwner()); } return false; }
3,230,745
public void markLockedIfNecessary(IObject iObject) { if (iObject == null) return; Set<IObject> s = new HashSet<IObject>(); IObject[] candidates = em.getLockCandidates(iObject); for (IObject object : candidates) { s.add(object); // TODO NEED TO CHECK FOR OWNERSHIP etc. etc. } CurrentDetails.appendLockCandidates(s); }
public void markLockedIfNecessary(IObject iObject) { if (iObject == null) return; Set<IObject> s = new HashSet<IObject>(); IObject[] candidates = em.getLockCandidates(iObject); for (IObject object : candidates) { s.add(object); // TODO NEED TO CHECK FOR OWNERSHIP etc. etc. } CurrentDetails.appendLockCandidates(s); }
3,230,747
public static IRubyObject load(IRubyObject recv, IRubyObject[] args) { RubyString file = (RubyString)args[0]; if (recv.getRuntime().getLoadService().load(file.toString())) { return recv.getRuntime().getTrue(); } return recv.getRuntime().getFalse(); }
public static IRubyObject load(IRubyObject recv, IRubyObject[] args) { RubyString file = (RubyString)args[0]; if (recv.getRuntime().getLoadService().load(file.toString())) { return recv.getRuntime().getTrue(); } return recv.getRuntime().getFalse(); }
3,230,748
public void addGroups(Experimenter user, ExperimenterGroup[] groups) { if (user == null) return; // Handled by annotations if (groups == null) return; Experimenter foundUser = iQuery.get(Experimenter.class,user.getId()); for (ExperimenterGroup group : groups) { ExperimenterGroup foundGroup = iQuery.get(ExperimenterGroup.class, group.getId()); foundUser.linkExperimenterGroup(foundGroup); } iUpdate.flush(); }
public void addGroups(Experimenter user, ExperimenterGroup[] groups) { if (user == null) return; // Handled by annotations if (groups == null) return; Experimenter foundUser = internalGetExperimenter(user.getId()); for (ExperimenterGroup group : groups) { ExperimenterGroup foundGroup = iQuery.get(ExperimenterGroup.class, group.getId()); foundUser.linkExperimenterGroup(foundGroup); } iUpdate.flush(); }
3,230,749