bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public static RubyRegexp newInstance(IRubyObject recv, IRubyObject[] args) { RubyRegexp re = new RubyRegexp(recv.getRuntime()); re.setRubyClass((RubyClass) recv); re.initialize(args); return re; }
public static RubyRegexp newInstance(IRubyObject recv, IRubyObject[] args) { RubyRegexp re = new RubyRegexp(recv.getRuntime()); re.setInternalClass((RubyClass) recv); re.initialize(args); return re; }
3,229,326
public Collection getChainExecutions() { long start; // if we're done, go for it. if (chainExecutions != null) { return chainExecutions.getExecutions(); } if (gettingExecutions == false) { if (ChainBuilderAgent.DEBUG) { start = System.currentTimeMillis(); } gettingExecutions = true; retrieveChainExecutions(); gettingExecutions = false; // notifyAll(); if (ChainBuilderAgent.DEBUG) { long getTime = System.currentTimeMillis()-start; System.err.println("time for executions is "+getTime); } return chainExecutions.getExecutions(); } /*else {// in progress try{ wait(); return chainExecutions.getExecutions(); } catch (InterruptedException e) { return null; } }*/ return null; }
public Collection getChainExecutions() { long start; // if we're done, go for it. if (chainExecutions != null) { return chainExecutions.getExecutions(); } if (gettingExecutions == false) { if (ChainBuilderAgent.DEBUG) { start = System.currentTimeMillis(); } gettingExecutions = true; retrieveChainExecutions(); gettingExecutions = false; // notifyAll(); if (ChainBuilderAgent.DEBUG) { long getTime = System.currentTimeMillis()-start; System.err.println("time for executions is "+getTime); } return chainExecutions.getExecutions(); } /*else {// in progress try{ wait(); return chainExecutions.getExecutions(); } catch (InterruptedException e) { return null; } }*/ return null; }
3,229,327
public Collection getChainExecutions() { long start; // if we're done, go for it. if (chainExecutions != null) { return chainExecutions.getExecutions(); } if (gettingExecutions == false) { if (ChainBuilderAgent.DEBUG) { start = System.currentTimeMillis(); } gettingExecutions = true; retrieveChainExecutions(); gettingExecutions = false; // notifyAll(); if (ChainBuilderAgent.DEBUG) { long getTime = System.currentTimeMillis()-start; System.err.println("time for executions is "+getTime); } return chainExecutions.getExecutions(); } /*else {// in progress try{ wait(); return chainExecutions.getExecutions(); } catch (InterruptedException e) { return null; } }*/ return null; }
public Collection getChainExecutions() { long start; // if we're done, go for it. if (chainExecutions != null) { return chainExecutions.getExecutions(); } if (gettingExecutions == false) { if (ChainBuilderAgent.DEBUG) { start = System.currentTimeMillis(); } gettingExecutions = true; retrieveChainExecutions(); gettingExecutions = false; // notifyAll(); if (ChainBuilderAgent.DEBUG) { long getTime = System.currentTimeMillis()-start; System.err.println("time for executions is "+getTime); } return chainExecutions.getExecutions(); } /*else {// in progress try{ wait(); return chainExecutions.getExecutions(); } catch (InterruptedException e) { return null; } }*/ return null; }
3,229,328
public Collection getChainExecutionsByChainID(int id) { if (chainExecutions != null) return chainExecutions.getChainExecutionsByChainID(id); return null; }
public Collection getChainExecutionsByChainID(int id) { if (chainExecutions != null) return chainExecutions.getChainExecutionsByChainID(id); return null; }
3,229,329
public Collection getChains() { Collection res = null; long start; // if we're done, go for it. if (chainHash != null && chainHash.size() > 0) { res = chainHash.values(); } else { if (gettingChains == false) { if (ChainBuilderAgent.DEBUG) { start = System.currentTimeMillis(); } gettingChains = true; retrieveChains(); gettingChains = false; if (ChainBuilderAgent.DEBUG) { long end = System.currentTimeMillis()-start; System.err.println("time for retrieving chains.. "+end); } res = chainHash.values(); } } return res; }
public Collection getChains() { Collection res = null; long start; // if we're done, go for it. if (chainHash != null && chainHash.size() > 0) { res = chainHash.values(); } else { if (gettingChains == false) { if (ChainBuilderAgent.DEBUG) { start = System.currentTimeMillis(); } gettingChains = true; retrieveChains(); gettingChains = false; if (ChainBuilderAgent.DEBUG) { long end = System.currentTimeMillis()-start; System.err.println("time for retrieving chains.. "+end); } res = chainHash.values(); } } return res; }
3,229,330
public Collection getChains() { Collection res = null; long start; // if we're done, go for it. if (chainHash != null && chainHash.size() > 0) { res = chainHash.values(); } else { if (gettingChains == false) { if (ChainBuilderAgent.DEBUG) { start = System.currentTimeMillis(); } gettingChains = true; retrieveChains(); gettingChains = false; if (ChainBuilderAgent.DEBUG) { long end = System.currentTimeMillis()-start; System.err.println("time for retrieving chains.. "+end); } res = chainHash.values(); } } return res; }
public Collection getChains() { Collection res = null; long start; // if we're done, go for it. if (chainHash != null && chainHash.size() > 0) { res = chainHash.values(); } else { if (gettingChains == false) { if (ChainBuilderAgent.DEBUG) { start = System.currentTimeMillis(); } gettingChains = true; retrieveChains(); gettingChains = false; if (ChainBuilderAgent.DEBUG) { long end = System.currentTimeMillis()-start; System.err.println("time for retrieving chains.. "+end); } res = chainHash.values(); } } return res; }
3,229,331
public Collection getModuleCategories() { // if we're done, go for it. if (moduleCategoryHash != null && moduleCategoryHash.size() > 0) return moduleCategoryHash.values(); if (loadingModuleCategories == false) { long start = System.currentTimeMillis(); loadingModuleCategories = true; retrieveModuleCategories(); loadingModuleCategories = false; if (ChainBuilderAgent.DEBUG) { long end = System.currentTimeMillis()-start; System.err.println("time spent in getModuleCategories.."+end); } return moduleCategoryHash.values(); } /* shouldn't get here */ return null; }
public Collection getModuleCategories() { // if we're done, go for it. if (moduleCategoryHash != null && moduleCategoryHash.size() > 0) return moduleCategoryHash.values(); if (loadingModuleCategories == false) { long start = System.currentTimeMillis(); loadingModuleCategories = true; retrieveModuleCategories(); loadingModuleCategories = false; if (ChainBuilderAgent.DEBUG) { long end = System.currentTimeMillis()-start; System.err.println("time spent in getModuleCategories.."+end); } return moduleCategoryHash.values(); } /* shouldn't get here */ return null; }
3,229,332
public Collection getModules() { // if we're done, go for it. if (moduleHash != null && moduleHash.size() > 0) return moduleHash.values(); if (loadingModules == false) { long start = System.currentTimeMillis(); loadingModules = true; retrieveModules(); // retrieveCategories(); loadingModules = false; if (ChainBuilderAgent.DEBUG) { long end = System.currentTimeMillis()-start; System.err.println("time spent in getModules is "+end); } return moduleHash.values(); } return null; }
public Collection getModules() { // if we're done, go for it. if (moduleHash != null && moduleHash.size() > 0) return moduleHash.values(); if (loadingModules == false) { long start = System.currentTimeMillis(); loadingModules = true; retrieveModules(); // retrieveCategories(); loadingModules = false; if (ChainBuilderAgent.DEBUG) { long end = System.currentTimeMillis()-start; System.err.println("time spent in getModules is "+end); } return moduleHash.values(); } return null; }
3,229,333
public boolean hasChainWithName(String name) { Collection chains = getChains(); Iterator iter = chains.iterator(); LayoutChainData chain; while (iter.hasNext()) { chain = (LayoutChainData) iter.next(); if (name.compareTo(chain.getName()) == 0) return true; } return false; }
public boolean hasChainWithName(String name) { Collection chains = getChains(); Iterator iter = chains.iterator(); LayoutChainData chain; while (iter.hasNext()) { chain = (LayoutChainData) iter.next(); if (name.compareTo(chain.getName()) == 0) return true; } return false; }
3,229,334
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.getSingletonMethod(RubyGlobal.class, "open", RubyString.class)); 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("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("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("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("singleton_method_added", CallbackFactory.getNilMethod()); }
3,229,336
public static RubyObject open(Ruby ruby, RubyObject recv, RubyString filename) { if (filename.toString().startsWith("|")) { // +++ return ruby.getNil(); // --- } return RubyFile.open(ruby, ruby.getClasses().getFileClass(), new RubyObject[] { filename }); }
public static RubyObject open(Ruby ruby, RubyObject recv, RubyString filename) { if (filename.toString().startsWith("|")) { // +++ return ruby.getNil(); // --- } return RubyFile.open(ruby, ruby.getClasses().getFileClass(), new RubyObject[] { filename }); }
3,229,337
public static RubyObject open(Ruby ruby, RubyObject recv, RubyString filename) { if (filename.toString().startsWith("|")) { // +++ return ruby.getNil(); // --- } return RubyFile.open(ruby, ruby.getClasses().getFileClass(), new RubyObject[] { filename }); }
public static RubyObject open(Ruby ruby, RubyObject recv, RubyString filename) { if (filename.toString().startsWith("|")) { // +++ return ruby.getNil(); // --- } return RubyFile.open(ruby, ruby.getClasses().getFileClass(), args); }
3,229,338
public void stuffContext (Context context) throws Exception { context.setEvaluationExceptionHandler ( new CrankyEvaluationExceptionHandler(_wm.getBroker())); context.put ("TestObject", new TestObject()); context.put ("NullTestObject", new NullTestObject()); context.put("enum",new ThrowingEnumeration()); }
context.put ("OWNM", new ObjectWithNullMethod()); context.put ("OWNM", new ObjectWithNullMethod()); context.put ("OWNM", new ObjectWithNullMethod()); publiccontext.put ("OWNM", new ObjectWithNullMethod()); voidcontext.put ("OWNM", new ObjectWithNullMethod()); stuffContextcontext.put ("OWNM", new ObjectWithNullMethod()); (Contextcontext.put ("OWNM", new ObjectWithNullMethod()); context)context.put ("OWNM", new ObjectWithNullMethod()); throwscontext.put ("OWNM", new ObjectWithNullMethod()); Exceptioncontext.put ("OWNM", new ObjectWithNullMethod()); {context.put ("OWNM", new ObjectWithNullMethod()); context.put ("OWNM", new ObjectWithNullMethod()); context.put ("OWNM", new ObjectWithNullMethod()); context.put ("OWNM", new ObjectWithNullMethod()); context.put ("OWNM", new ObjectWithNullMethod()); context.put ("OWNM", new ObjectWithNullMethod()); context.setEvaluationExceptionHandlercontext.put ("OWNM", new ObjectWithNullMethod()); (context.put ("OWNM", new ObjectWithNullMethod()); context.put ("OWNM", new ObjectWithNullMethod()); context.put ("OWNM", new ObjectWithNullMethod()); context.put ("OWNM", new ObjectWithNullMethod()); context.put ("OWNM", new ObjectWithNullMethod()); context.put ("OWNM", new ObjectWithNullMethod()); context.put ("OWNM", new ObjectWithNullMethod()); context.put ("OWNM", new ObjectWithNullMethod()); context.put ("OWNM", new ObjectWithNullMethod()); context.put ("OWNM", new ObjectWithNullMethod()); context.put ("OWNM", new ObjectWithNullMethod()); context.put ("OWNM", new ObjectWithNullMethod()); context.put ("OWNM", new ObjectWithNullMethod()); context.put ("OWNM", new ObjectWithNullMethod()); context.put ("OWNM", new ObjectWithNullMethod()); context.put ("OWNM", new ObjectWithNullMethod()); newcontext.put ("OWNM", new ObjectWithNullMethod()); CrankyEvaluationExceptionHandler(_wm.getBroker()));context.put ("OWNM", new ObjectWithNullMethod()); context.put ("OWNM", new ObjectWithNullMethod()); context.put ("OWNM", new ObjectWithNullMethod()); context.put ("OWNM", new ObjectWithNullMethod()); context.put ("OWNM", new ObjectWithNullMethod()); context.put ("OWNM", new ObjectWithNullMethod()); context.putcontext.put ("OWNM", new ObjectWithNullMethod()); ("TestObject",context.put ("OWNM", new ObjectWithNullMethod()); newcontext.put ("OWNM", new ObjectWithNullMethod()); TestObject());context.put ("OWNM", new ObjectWithNullMethod()); context.put ("OWNM", new ObjectWithNullMethod()); context.put ("OWNM", new ObjectWithNullMethod()); context.put ("OWNM", new ObjectWithNullMethod()); context.put ("OWNM", new ObjectWithNullMethod()); context.put ("OWNM", new ObjectWithNullMethod()); context.putcontext.put ("OWNM", new ObjectWithNullMethod()); ("NullTestObject",context.put ("OWNM", new ObjectWithNullMethod()); newcontext.put ("OWNM", new ObjectWithNullMethod()); NullTestObject());context.put ("OWNM", new ObjectWithNullMethod()); context.put ("OWNM", new ObjectWithNullMethod()); context.put ("OWNM", new ObjectWithNullMethod()); context.put ("OWNM", new ObjectWithNullMethod()); context.put ("OWNM", new ObjectWithNullMethod()); context.put ("OWNM", new ObjectWithNullMethod()); context.put("enum",newcontext.put ("OWNM", new ObjectWithNullMethod()); ThrowingEnumeration());context.put ("OWNM", new ObjectWithNullMethod()); context.put ("OWNM", new ObjectWithNullMethod()); context.put ("OWNM", new ObjectWithNullMethod()); }
3,229,339
private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.println("<title>Coverage Report</title>"); out .println("<link title=\"Style\" type=\"text/css\" rel=\"stylesheet\" href=\"css/main.css\" />"); out .println("<link title=\"Style\" type=\"text/css\" rel=\"stylesheet\" href=\"css/sortabletable.css\" />"); out .println("<script type=\"text/javascript\" src=\"js/popup.js\"></script>"); out .println("<script type=\"text/javascript\" src=\"js/sortabletable.js\"></script>"); out .println("<script type=\"text/javascript\" src=\"js/customsorttypes.js\"></script>"); out.println("</head>"); out.println("<body>"); out.print("<h5>Coverage Report - "); out.print(packageData == null ? "All Packages" : generatePackageName(packageData)); out.println("</h5>"); out.println("<p>"); out.println("<table class=\"report\" id=\"packageResults\">"); out.println("<thead>"); out.println("<tr>"); out.println(" <td class=\"heading\">Package</td>"); out.println(" <td class=\"heading\"># Classes</td>"); out.println(generateCommonTableColumns()); out.println("</tr>"); out.println("</thead>"); out.println("<tbody>"); Collection packages; if (packageData == null) { // Output a summary line for all packages out.println(generateTableRowForTotal()); // Get packages // TODO TODO TODO: This needs to only look at classes in root package packages = projectData.getChildren(); } else { // Get subpackages packages = projectData.getSubPackages(packageData.getName()); } // Output a line for each package or subpackage iter = packages.iterator(); while (iter.hasNext()) { PackageData subPackageData = (PackageData)iter.next(); out.println(generateTableRowForPackage(subPackageData)); } out.println("</tbody>"); out.println("</table>"); out.println("<script type=\"text/javascript\">"); out .println("var packageTable = new SortableTable(document.getElementById(\"packageResults\"),"); out .println(" [\"String\", \"Number\", \"Percentage\", \"Percentage\", \"LocalizedNumber\"]);"); out.println("packageTable.sort(0);"); out.println("</script>"); out.println("</p>"); // Get the list of source files in this package Collection sourceFiles; if (packageData == null) { sourceFiles = projectData.getSourceFiles(); } else { sourceFiles = packageData.getSourceFiles(); } // Output a line for each class if (sourceFiles.size() > 0) { out.println("<p>"); out.println("<table class=\"report\" id=\"classResults\">"); out.println(generateTableHeaderForClasses()); out.println("<tbody>"); iter = sourceFiles.iterator(); while (iter.hasNext()) { SourceFileData sourceFileData = (SourceFileData)iter .next(); out .println(generateTableRowForSourceFile(sourceFileData)); } out.println("</tbody>"); out.println("</table>"); out.println("<script type=\"text/javascript\">"); out .println("var classTable = new SortableTable(document.getElementById(\"classResults\"),"); out .println(" [\"String\", \"Percentage\", \"Percentage\", \"LocalizedNumber\"]);"); out.println("classTable.sort(0);"); out.println("</script>"); out.println("</p>"); } out.println("<div class=\"footer\">"); out .println("Report generated by <a href=\"http://cobertura.sourceforge.net/\" target=\"_top\">Cobertura</a>."); out.println("</div>"); out.println("</body>"); out.println("</html>"); } finally { if (out != null) { out.close(); } } }
private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.println("<title>Coverage Report</title>"); out .println("<link title=\"Style\" type=\"text/css\" rel=\"stylesheet\" href=\"css/main.css\" />"); out .println("<link title=\"Style\" type=\"text/css\" rel=\"stylesheet\" href=\"css/sortabletable.css\" />"); out .println("<script type=\"text/javascript\" src=\"js/popup.js\"></script>"); out .println("<script type=\"text/javascript\" src=\"js/sortabletable.js\"></script>"); out .println("<script type=\"text/javascript\" src=\"js/customsorttypes.js\"></script>"); out.println("</head>"); out.println("<body>"); out.print("<h5>Coverage Report - "); out.print(packageData == null ? "All Packages" : generatePackageName(packageData)); out.println("</h5>"); out.println("<p>"); out.println("<table class=\"report\" id=\"packageResults\">"); out.println("<thead>"); out.println("<tr>"); out.println(" <td class=\"heading\">Package</td>"); out.println(" <td class=\"heading\"># Classes</td>"); out.println(generateCommonTableColumns()); out.println("</tr>"); out.println("</thead>"); out.println("<tbody>"); Collection packages; if (packageData == null) { // Output a summary line for all packages out.println(generateTableRowForTotal()); // Get packages // TODO TODO TODO: This needs to only look at classes in root package packages = projectData.getChildren(); } else { // Get subpackages packages = projectData.getSubPackages(packageData.getName()); } // Output a line for each package or subpackage iter = packages.iterator(); while (iter.hasNext()) { PackageData subPackageData = (PackageData)iter.next(); out.println(generateTableRowForPackage(subPackageData)); } out.println("</tbody>"); out.println("</table>"); out.println("<script type=\"text/javascript\">"); out .println("var packageTable = new SortableTable(document.getElementById(\"packageResults\"),"); out .println(" [\"String\", \"Number\", \"Percentage\", \"Percentage\", \"LocalizedNumber\"]);"); out.println("packageTable.sort(0);"); out.println("</script>"); out.println("</p>"); // Get the list of source files in this package Collection sourceFiles; if (packageData == null) { sourceFiles = projectData.getSourceFiles(); } else { sourceFiles = packageData.getSourceFiles(); } // Output a line for each class if (sourceFiles.size() > 0) { out.println("<p>"); out.println("<table class=\"report\" id=\"classResults\">"); out.println(generateTableHeaderForClasses()); out.println("<tbody>"); iter = sourceFiles.iterator(); while (iter.hasNext()) { SourceFileData sourceFileData = (SourceFileData)iter .next(); out .println(generateTableRowForSourceFile(sourceFileData)); } out.println("</tbody>"); out.println("</table>"); out.println("<script type=\"text/javascript\">"); out .println("var classTable = new SortableTable(document.getElementById(\"classResults\"),"); out .println(" [\"String\", \"Percentage\", \"Percentage\", \"LocalizedNumber\"]);"); out.println("classTable.sort(0);"); out.println("</script>"); out.println("</p>"); } out.println("<div class=\"footer\">"); out .println("Report generated by <a href=\"http://cobertura.sourceforge.net/\" target=\"_top\">Cobertura</a>."); out.println("</div>"); out.println("</body>"); out.println("</html>"); } finally { if (out != null) { out.close(); } } }
3,229,340
private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.println("<title>Coverage Report</title>"); out .println("<link title=\"Style\" type=\"text/css\" rel=\"stylesheet\" href=\"css/main.css\" />"); out .println("<link title=\"Style\" type=\"text/css\" rel=\"stylesheet\" href=\"css/sortabletable.css\" />"); out .println("<script type=\"text/javascript\" src=\"js/popup.js\"></script>"); out .println("<script type=\"text/javascript\" src=\"js/sortabletable.js\"></script>"); out .println("<script type=\"text/javascript\" src=\"js/customsorttypes.js\"></script>"); out.println("</head>"); out.println("<body>"); out.print("<h5>Coverage Report - "); out.print(packageData == null ? "All Packages" : generatePackageName(packageData)); out.println("</h5>"); out.println("<p>"); out.println("<table class=\"report\" id=\"packageResults\">"); out.println("<thead>"); out.println("<tr>"); out.println(" <td class=\"heading\">Package</td>"); out.println(" <td class=\"heading\"># Classes</td>"); out.println(generateCommonTableColumns()); out.println("</tr>"); out.println("</thead>"); out.println("<tbody>"); Collection packages; if (packageData == null) { // Output a summary line for all packages out.println(generateTableRowForTotal()); // Get packages // TODO TODO TODO: This needs to only look at classes in root package packages = projectData.getChildren(); } else { // Get subpackages packages = projectData.getSubPackages(packageData.getName()); } // Output a line for each package or subpackage iter = packages.iterator(); while (iter.hasNext()) { PackageData subPackageData = (PackageData)iter.next(); out.println(generateTableRowForPackage(subPackageData)); } out.println("</tbody>"); out.println("</table>"); out.println("<script type=\"text/javascript\">"); out .println("var packageTable = new SortableTable(document.getElementById(\"packageResults\"),"); out .println(" [\"String\", \"Number\", \"Percentage\", \"Percentage\", \"LocalizedNumber\"]);"); out.println("packageTable.sort(0);"); out.println("</script>"); out.println("</p>"); // Get the list of source files in this package Collection sourceFiles; if (packageData == null) { sourceFiles = projectData.getSourceFiles(); } else { sourceFiles = packageData.getSourceFiles(); } // Output a line for each class if (sourceFiles.size() > 0) { out.println("<p>"); out.println("<table class=\"report\" id=\"classResults\">"); out.println(generateTableHeaderForClasses()); out.println("<tbody>"); iter = sourceFiles.iterator(); while (iter.hasNext()) { SourceFileData sourceFileData = (SourceFileData)iter .next(); out .println(generateTableRowForSourceFile(sourceFileData)); } out.println("</tbody>"); out.println("</table>"); out.println("<script type=\"text/javascript\">"); out .println("var classTable = new SortableTable(document.getElementById(\"classResults\"),"); out .println(" [\"String\", \"Percentage\", \"Percentage\", \"LocalizedNumber\"]);"); out.println("classTable.sort(0);"); out.println("</script>"); out.println("</p>"); } out.println("<div class=\"footer\">"); out .println("Report generated by <a href=\"http://cobertura.sourceforge.net/\" target=\"_top\">Cobertura</a>."); out.println("</div>"); out.println("</body>"); out.println("</html>"); } finally { if (out != null) { out.close(); } } }
private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.println("<title>Coverage Report</title>"); out .println("<link title=\"Style\" type=\"text/css\" rel=\"stylesheet\" href=\"css/main.css\" />"); out .println("<link title=\"Style\" type=\"text/css\" rel=\"stylesheet\" href=\"css/sortabletable.css\" />"); out .println("<script type=\"text/javascript\" src=\"js/popup.js\"></script>"); out .println("<script type=\"text/javascript\" src=\"js/sortabletable.js\"></script>"); out .println("<script type=\"text/javascript\" src=\"js/customsorttypes.js\"></script>"); out.println("</head>"); out.println("<body>"); out.print("<h5>Coverage Report - "); out.print(packageData == null ? "All Packages" : generatePackageName(packageData)); out.println("</h5>"); out.println("<p>"); out.println("<table class=\"report\" id=\"packageResults\">"); out.println("<thead>"); out.println("<tr>"); out.println(" <td class=\"heading\">Package</td>"); out.println(" <td class=\"heading\"># Classes</td>"); out.println(generateCommonTableColumns()); out.println("</tr>"); out.println("</thead>"); out.println("<tbody>"); Collection packages; if (packageData == null) { // Output a summary line for all packages out.println(generateTableRowForTotal()); // Get packages // TODO TODO TODO: This needs to only look at classes in root package packages = projectData.getChildren(); } else { // Get subpackages packages = projectData.getSubPackages(packageData.getName()); } // Output a line for each package or subpackage iter = packages.iterator(); while (iter.hasNext()) { PackageData subPackageData = (PackageData)iter.next(); out.println(generateTableRowForPackage(subPackageData)); } out.println("</tbody>"); out.println("</table>"); out.println("<script type=\"text/javascript\">"); out .println("var packageTable = new SortableTable(document.getElementById(\"packageResults\"),"); out .println(" [\"String\", \"Number\", \"Percentage\", \"Percentage\", \"LocalizedNumber\"]);"); out.println("packageTable.sort(0);"); out.println("</script>"); out.println("</p>"); // Get the list of source files in this package Collection sourceFiles; if (packageData == null) { sourceFiles = projectData.getSourceFiles(); } else { sourceFiles = packageData.getSourceFiles(); } // Output a line for each class if (sourceFiles.size() > 0) { out.println("<p>"); out.println("<table class=\"report\" id=\"classResults\">"); out.println(generateTableHeaderForClasses()); out.println("<tbody>"); iter = sourceFiles.iterator(); while (iter.hasNext()) { SourceFileData sourceFileData = (SourceFileData)iter .next(); out .println(generateTableRowForSourceFile(sourceFileData)); } out.println("</tbody>"); out.println("</table>"); out.println("<script type=\"text/javascript\">"); out .println("var classTable = new SortableTable(document.getElementById(\"classResults\"),"); out .println(" [\"String\", \"Percentage\", \"Percentage\", \"LocalizedNumber\"]);"); out.println("classTable.sort(0);"); out.println("</script>"); out.println("</p>"); } out.println("<div class=\"footer\">"); out .println("Report generated by <a href=\"http://cobertura.sourceforge.net/\" target=\"_top\">Cobertura</a>."); out.println("</div>"); out.println("</body>"); out.println("</html>"); } finally { if (out != null) { out.close(); } } }
3,229,341
private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.println("<title>Coverage Report</title>"); out .println("<link title=\"Style\" type=\"text/css\" rel=\"stylesheet\" href=\"css/main.css\" />"); out .println("<link title=\"Style\" type=\"text/css\" rel=\"stylesheet\" href=\"css/sortabletable.css\" />"); out .println("<script type=\"text/javascript\" src=\"js/popup.js\"></script>"); out .println("<script type=\"text/javascript\" src=\"js/sortabletable.js\"></script>"); out .println("<script type=\"text/javascript\" src=\"js/customsorttypes.js\"></script>"); out.println("</head>"); out.println("<body>"); out.print("<h5>Coverage Report - "); out.print(packageData == null ? "All Packages" : generatePackageName(packageData)); out.println("</h5>"); out.println("<p>"); out.println("<table class=\"report\" id=\"packageResults\">"); out.println("<thead>"); out.println("<tr>"); out.println(" <td class=\"heading\">Package</td>"); out.println(" <td class=\"heading\"># Classes</td>"); out.println(generateCommonTableColumns()); out.println("</tr>"); out.println("</thead>"); out.println("<tbody>"); Collection packages; if (packageData == null) { // Output a summary line for all packages out.println(generateTableRowForTotal()); // Get packages // TODO TODO TODO: This needs to only look at classes in root package packages = projectData.getChildren(); } else { // Get subpackages packages = projectData.getSubPackages(packageData.getName()); } // Output a line for each package or subpackage iter = packages.iterator(); while (iter.hasNext()) { PackageData subPackageData = (PackageData)iter.next(); out.println(generateTableRowForPackage(subPackageData)); } out.println("</tbody>"); out.println("</table>"); out.println("<script type=\"text/javascript\">"); out .println("var packageTable = new SortableTable(document.getElementById(\"packageResults\"),"); out .println(" [\"String\", \"Number\", \"Percentage\", \"Percentage\", \"LocalizedNumber\"]);"); out.println("packageTable.sort(0);"); out.println("</script>"); out.println("</p>"); // Get the list of source files in this package Collection sourceFiles; if (packageData == null) { sourceFiles = projectData.getSourceFiles(); } else { sourceFiles = packageData.getSourceFiles(); } // Output a line for each class if (sourceFiles.size() > 0) { out.println("<p>"); out.println("<table class=\"report\" id=\"classResults\">"); out.println(generateTableHeaderForClasses()); out.println("<tbody>"); iter = sourceFiles.iterator(); while (iter.hasNext()) { SourceFileData sourceFileData = (SourceFileData)iter .next(); out .println(generateTableRowForSourceFile(sourceFileData)); } out.println("</tbody>"); out.println("</table>"); out.println("<script type=\"text/javascript\">"); out .println("var classTable = new SortableTable(document.getElementById(\"classResults\"),"); out .println(" [\"String\", \"Percentage\", \"Percentage\", \"LocalizedNumber\"]);"); out.println("classTable.sort(0);"); out.println("</script>"); out.println("</p>"); } out.println("<div class=\"footer\">"); out .println("Report generated by <a href=\"http://cobertura.sourceforge.net/\" target=\"_top\">Cobertura</a>."); out.println("</div>"); out.println("</body>"); out.println("</html>"); } finally { if (out != null) { out.close(); } } }
private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.println("<title>Coverage Report</title>"); out .println("<link title=\"Style\" type=\"text/css\" rel=\"stylesheet\" href=\"css/main.css\" />"); out .println("<link title=\"Style\" type=\"text/css\" rel=\"stylesheet\" href=\"css/sortabletable.css\" />"); out .println("<script type=\"text/javascript\" src=\"js/popup.js\"></script>"); out .println("<script type=\"text/javascript\" src=\"js/sortabletable.js\"></script>"); out .println("<script type=\"text/javascript\" src=\"js/customsorttypes.js\"></script>"); out.println("</head>"); out.println("<body>"); out.print("<h5>Coverage Report - "); out.print(packageData == null ? "All Packages" : generatePackageName(packageData)); out.println("</h5>"); out.println("<p>"); out.println("<table class=\"report\" id=\"packageResults\">"); out.println("<thead>"); out.println("<tr>"); out.println(" <td class=\"heading\">Package</td>"); out.println(" <td class=\"heading\"># Classes</td>"); out.println(generateCommonTableColumns()); out.println("</tr>"); out.println("</thead>"); out.println("<tbody>"); Collection packages; if (packageData == null) { // Output a summary line for all packages out.println(generateTableRowForTotal()); // Get packages // TODO TODO TODO: This needs to only look at classes in root package packages = projectData.getChildren(); } else { // Get subpackages packages = projectData.getSubPackages(packageData.getName()); } // Output a line for each package or subpackage iter = packages.iterator(); while (iter.hasNext()) { PackageData subPackageData = (PackageData)iter.next(); out.println(generateTableRowForPackage(subPackageData)); } out.println("</tbody>"); out.println("</table>"); out.println("<script type=\"text/javascript\">"); out .println("var packageTable = new SortableTable(document.getElementById(\"packageResults\"),"); out .println(" [\"String\", \"Number\", \"Percentage\", \"Percentage\", \"LocalizedNumber\"]);"); out.println("packageTable.sort(0);"); out.println("</script>"); out.println("</p>"); // Get the list of source files in this package Collection sourceFiles; if (packageData == null) { sourceFiles = projectData.getSourceFiles(); } else { sourceFiles = packageData.getSourceFiles(); } // Output a line for each class if (sourceFiles.size() > 0) { out.println("<p>"); out.println("<table class=\"report\" id=\"classResults\">"); out.println(generateTableHeaderForClasses()); out.println("<tbody>"); iter = sourceFiles.iterator(); while (iter.hasNext()) { SourceFileData sourceFileData = (SourceFileData)iter .next(); out .println(generateTableRowForSourceFile(sourceFileData)); } out.println("</tbody>"); out.println("</table>"); out.println("<script type=\"text/javascript\">"); out .println("var classTable = new SortableTable(document.getElementById(\"classResults\"),"); out .println(" [\"String\", \"Percentage\", \"Percentage\", \"LocalizedNumber\"]);"); out.println("classTable.sort(0);"); out.println("</script>"); out.println("</p>"); } out.println("<div class=\"footer\">"); out .println("Report generated by <a href=\"http://cobertura.sourceforge.net/\" target=\"_top\">Cobertura</a>."); out.println("</div>"); out.println("</body>"); out.println("</html>"); } finally { if (out != null) { out.close(); } } }
3,229,342
private void generateOverviews() throws IOException { generateOverview(null); Iterator iter = projectData.getChildren().iterator(); while (iter.hasNext()) { PackageData packageData = (PackageData)iter.next(); generateOverview(packageData); } }
private void generateOverviews() throws IOException { generateOverview(null); Iterator iter = projectData.getChildren().iterator(); while (iter.hasNext()) { PackageData packageData = (PackageData)iter.next(); generateOverview(packageData); } }
3,229,343
private void generatePackageList() throws IOException { File file = new File(destinationDir, "frame-packages.html"); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.println("<title>Coverage Report</title>"); out .println("<link title=\"Style\" type=\"text/css\" rel=\"stylesheet\" href=\"css/main.css\" />"); out.println("</head>"); out.println("<body>"); out.println("<h5>Packages</h5>"); out.println("<table width=\"100%\">"); out.println("<tr>"); out .println("<td nowrap=\"nowrap\"><a href=\"frame-summary.html\" onClick='parent.sourceFileList.location.href=\"frame-sourcefiles.html\"' target=\"summary\">All</a></td>"); out.println("</tr>"); SortedSet sortedPackages = new TreeSet(); sortedPackages.addAll(projectData.getChildren()); Iterator iter = sortedPackages.iterator(); while (iter.hasNext()) { PackageData packageData = (PackageData)iter.next(); String url1 = "frame-summary-" + packageData.getName() + ".html"; String url2 = "frame-sourcefiles-" + packageData.getName() + ".html"; out.println("<tr>"); out .println("<td nowrap=\"nowrap\"><a href=\"" + url1 + "\" onClick='parent.sourceFileList.location.href=\"" + url2 + "\"' target=\"summary\">" + generatePackageName(packageData) + "</a></td>"); out.println("</tr>"); } out.println("</table>"); out.println("</body>"); out.println("</html>"); } finally { if (out != null) { out.close(); } } }
private void generatePackageList() throws IOException { File file = new File(destinationDir, "frame-packages.html"); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.println("<title>Coverage Report</title>"); out .println("<link title=\"Style\" type=\"text/css\" rel=\"stylesheet\" href=\"css/main.css\" />"); out.println("</head>"); out.println("<body>"); out.println("<h5>Packages</h5>"); out.println("<table width=\"100%\">"); out.println("<tr>"); out .println("<td nowrap=\"nowrap\"><a href=\"frame-summary.html\" onClick='parent.sourceFileList.location.href=\"frame-sourcefiles.html\"' target=\"summary\">All</a></td>"); out.println("</tr>"); SortedSet sortedPackages = new TreeSet(); sortedPackages.addAll(projectData.getChildren()); Iterator iter = sortedPackages.iterator(); while (iter.hasNext()) { PackageData packageData = (PackageData)iter.next(); String url1 = "frame-summary-" + packageData.getName() + ".html"; String url2 = "frame-sourcefiles-" + packageData.getName() + ".html"; out.println("<tr>"); out .println("<td nowrap=\"nowrap\"><a href=\"" + url1 + "\" onClick='parent.sourceFileList.location.href=\"" + url2 + "\"' target=\"summary\">" + generatePackageName(packageData) + "</a></td>"); out.println("</tr>"); } out.println("</table>"); out.println("</body>"); out.println("</html>"); } finally { if (out != null) { out.close(); } } }
3,229,344
private void generateSourceFileList(PackageData packageData) throws IOException { String filename; Collection sourceFiles; if (packageData == null) { filename = "frame-sourcefiles.html"; sourceFiles = projectData.getSourceFiles(); } else { filename = "frame-sourcefiles-" + packageData.getName() + ".html"; sourceFiles = packageData.getSourceFiles(); } File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.println("<title>Coverage Report Classes</title>"); out .println("<link title=\"Style\" type=\"text/css\" rel=\"stylesheet\" href=\"css/main.css\" />"); out.println("</head>"); out.println("<body>"); out.println("<h5>"); out.println(packageData == null ? "All Packages" : generatePackageName(packageData)); out.println("</h5>"); out.println("<h5>Classes</h5>"); out.println("<table width=\"100%\">"); Map sortedSourceFileList = new TreeMap(); for (Iterator iter = sourceFiles.iterator(); iter.hasNext();) { SourceFileData sourceFileData = (SourceFileData)iter.next(); sortedSourceFileList.put(sourceFileData.getBaseName(), sourceFileData); } for (Iterator iter = sortedSourceFileList.values().iterator(); iter .hasNext();) { SourceFileData sourceFileData = (SourceFileData)iter.next(); out.println("<tr>"); String percentCovered; if (sourceFileData.getNumberOfValidLines() > 0) percentCovered = getPercentValue(sourceFileData .getLineCoverageRate()); else percentCovered = "N/A"; out .println("<td nowrap=\"nowrap\"><a target=\"summary\" href=\"" + sourceFileData.getNormalizedName() + ".html\">" + sourceFileData.getBaseName() + "</a> <i>(" + percentCovered + ")</i></td>"); out.println("</tr>"); } out.println("</td>"); out.println("</tr>"); out.println("</table>"); out.println("</body>"); out.println("</html>"); } finally { if (out != null) { out.close(); } } }
private void generateSourceFileList(PackageData packageData) throws IOException { String filename; Collection sourceFiles; if (packageData == null) { filename = "frame-sourcefiles.html"; sourceFiles = projectData.getSourceFiles(); } else { filename = "frame-sourcefiles-" + packageData.getName() + ".html"; sourceFiles = packageData.getSourceFiles(); } File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.println("<title>Coverage Report Classes</title>"); out .println("<link title=\"Style\" type=\"text/css\" rel=\"stylesheet\" href=\"css/main.css\" />"); out.println("</head>"); out.println("<body>"); out.println("<h5>"); out.println(packageData == null ? "All Packages" : generatePackageName(packageData)); out.println("</h5>"); out.println("<h5>Classes</h5>"); out.println("<table width=\"100%\">"); Map sortedSourceFileList = new TreeMap(); for (Iterator iter = sourceFiles.iterator(); iter.hasNext();) { SourceFileData sourceFileData = (SourceFileData)iter.next(); sortedSourceFileList.put(sourceFileData.getBaseName(), sourceFileData); } for (Iterator iter = sortedSourceFileList.values().iterator(); iter .hasNext();) { SourceFileData sourceFileData = (SourceFileData)iter.next(); out.println("<tr>"); String percentCovered; if (sourceFileData.getNumberOfValidLines() > 0) percentCovered = getPercentValue(sourceFileData .getLineCoverageRate()); else percentCovered = "N/A"; out .println("<td nowrap=\"nowrap\"><a target=\"summary\" href=\"" + sourceFileData.getNormalizedName() + ".html\">" + sourceFileData.getBaseName() + "</a> <i>(" + percentCovered + ")</i></td>"); out.println("</tr>"); } out.println("</td>"); out.println("</tr>"); out.println("</table>"); out.println("</body>"); out.println("</html>"); } finally { if (out != null) { out.close(); } } }
3,229,345
private void generateSourceFileList(PackageData packageData) throws IOException { String filename; Collection sourceFiles; if (packageData == null) { filename = "frame-sourcefiles.html"; sourceFiles = projectData.getSourceFiles(); } else { filename = "frame-sourcefiles-" + packageData.getName() + ".html"; sourceFiles = packageData.getSourceFiles(); } File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.println("<title>Coverage Report Classes</title>"); out .println("<link title=\"Style\" type=\"text/css\" rel=\"stylesheet\" href=\"css/main.css\" />"); out.println("</head>"); out.println("<body>"); out.println("<h5>"); out.println(packageData == null ? "All Packages" : generatePackageName(packageData)); out.println("</h5>"); out.println("<h5>Classes</h5>"); out.println("<table width=\"100%\">"); Map sortedSourceFileList = new TreeMap(); for (Iterator iter = sourceFiles.iterator(); iter.hasNext();) { SourceFileData sourceFileData = (SourceFileData)iter.next(); sortedSourceFileList.put(sourceFileData.getBaseName(), sourceFileData); } for (Iterator iter = sortedSourceFileList.values().iterator(); iter .hasNext();) { SourceFileData sourceFileData = (SourceFileData)iter.next(); out.println("<tr>"); String percentCovered; if (sourceFileData.getNumberOfValidLines() > 0) percentCovered = getPercentValue(sourceFileData .getLineCoverageRate()); else percentCovered = "N/A"; out .println("<td nowrap=\"nowrap\"><a target=\"summary\" href=\"" + sourceFileData.getNormalizedName() + ".html\">" + sourceFileData.getBaseName() + "</a> <i>(" + percentCovered + ")</i></td>"); out.println("</tr>"); } out.println("</td>"); out.println("</tr>"); out.println("</table>"); out.println("</body>"); out.println("</html>"); } finally { if (out != null) { out.close(); } } }
private void generateSourceFileList(PackageData packageData) throws IOException { String filename; Collection sourceFiles; if (packageData == null) { filename = "frame-sourcefiles.html"; sourceFiles = projectData.getSourceFiles(); } else { filename = "frame-sourcefiles-" + packageData.getName() + ".html"; sourceFiles = packageData.getSourceFiles(); } File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.println("<title>Coverage Report Classes</title>"); out .println("<link title=\"Style\" type=\"text/css\" rel=\"stylesheet\" href=\"css/main.css\" />"); out.println("</head>"); out.println("<body>"); out.println("<h5>"); out.println(packageData == null ? "All Packages" : generatePackageName(packageData)); out.println("</h5>"); out.println("<h5>Classes</h5>"); out.println("<table width=\"100%\">"); Map sortedSourceFileList = new TreeMap(); for (Iterator iter = sourceFiles.iterator(); iter.hasNext();) { SourceFileData sourceFileData = (SourceFileData)iter.next(); sortedSourceFileList.put(sourceFileData.getBaseName(), sourceFileData); } for (Iterator iter = sortedSourceFileList.values().iterator(); iter .hasNext();) { SourceFileData sourceFileData = (SourceFileData)iter.next(); out.println("<tr>"); String percentCovered; if (sourceFileData.getNumberOfValidLines() > 0) percentCovered = getPercentValue(sourceFileData .getLineCoverageRate()); else percentCovered = "N/A"; out .println("<td nowrap=\"nowrap\"><a target=\"summary\" href=\"" + sourceFileData.getNormalizedName() + ".html\">" + sourceFileData.getBaseName() + "</a> <i>(" + percentCovered + ")</i></td>"); out.println("</tr>"); } out.println("</td>"); out.println("</tr>"); out.println("</table>"); out.println("</body>"); out.println("</html>"); } finally { if (out != null) { out.close(); } } }
3,229,346
private void generateSourceFileList(PackageData packageData) throws IOException { String filename; Collection sourceFiles; if (packageData == null) { filename = "frame-sourcefiles.html"; sourceFiles = projectData.getSourceFiles(); } else { filename = "frame-sourcefiles-" + packageData.getName() + ".html"; sourceFiles = packageData.getSourceFiles(); } File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.println("<title>Coverage Report Classes</title>"); out .println("<link title=\"Style\" type=\"text/css\" rel=\"stylesheet\" href=\"css/main.css\" />"); out.println("</head>"); out.println("<body>"); out.println("<h5>"); out.println(packageData == null ? "All Packages" : generatePackageName(packageData)); out.println("</h5>"); out.println("<h5>Classes</h5>"); out.println("<table width=\"100%\">"); Map sortedSourceFileList = new TreeMap(); for (Iterator iter = sourceFiles.iterator(); iter.hasNext();) { SourceFileData sourceFileData = (SourceFileData)iter.next(); sortedSourceFileList.put(sourceFileData.getBaseName(), sourceFileData); } for (Iterator iter = sortedSourceFileList.values().iterator(); iter .hasNext();) { SourceFileData sourceFileData = (SourceFileData)iter.next(); out.println("<tr>"); String percentCovered; if (sourceFileData.getNumberOfValidLines() > 0) percentCovered = getPercentValue(sourceFileData .getLineCoverageRate()); else percentCovered = "N/A"; out .println("<td nowrap=\"nowrap\"><a target=\"summary\" href=\"" + sourceFileData.getNormalizedName() + ".html\">" + sourceFileData.getBaseName() + "</a> <i>(" + percentCovered + ")</i></td>"); out.println("</tr>"); } out.println("</td>"); out.println("</tr>"); out.println("</table>"); out.println("</body>"); out.println("</html>"); } finally { if (out != null) { out.close(); } } }
private void generateSourceFileList(PackageData packageData) throws IOException { String filename; Collection sourceFiles; if (packageData == null) { filename = "frame-sourcefiles.html"; sourceFiles = projectData.getSourceFiles(); } else { filename = "frame-sourcefiles-" + packageData.getName() + ".html"; sourceFiles = packageData.getSourceFiles(); } File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.println("<title>Coverage Report Classes</title>"); out .println("<link title=\"Style\" type=\"text/css\" rel=\"stylesheet\" href=\"css/main.css\" />"); out.println("</head>"); out.println("<body>"); out.println("<h5>"); out.println(packageData == null ? "All Packages" : generatePackageName(packageData)); out.println("</h5>"); out.println("<h5>Classes</h5>"); out.println("<table width=\"100%\">"); Map sortedSourceFileList = new TreeMap(); for (Iterator iter = sourceFiles.iterator(); iter.hasNext();) { SourceFileData sourceFileData = (SourceFileData)iter.next(); sortedSourceFileList.put(sourceFileData.getBaseName(), sourceFileData); } for (Iterator iter = sortedSourceFileList.values().iterator(); iter .hasNext();) { SourceFileData sourceFileData = (SourceFileData)iter.next(); out.println("<tr>"); String percentCovered; if (sourceFileData.getNumberOfValidLines() > 0) percentCovered = getPercentValue(sourceFileData .getLineCoverageRate()); else percentCovered = "N/A"; out .println("<td nowrap=\"nowrap\"><a target=\"summary\" href=\"" + sourceFileData.getNormalizedName() + ".html\">" + sourceFileData.getBaseName() + "</a> <i>(" + percentCovered + ")</i></td>"); out.println("</tr>"); } out.println("</td>"); out.println("</tr>"); out.println("</table>"); out.println("</body>"); out.println("</html>"); } finally { if (out != null) { out.close(); } } }
3,229,347
private void generateSourceFileLists() throws IOException { generateSourceFileList(null); Iterator iter = projectData.getChildren().iterator(); while (iter.hasNext()) { PackageData packageData = (PackageData)iter.next(); generateSourceFileList(packageData); } }
private void generateSourceFileLists() throws IOException { generateSourceFileList(null); Iterator iter = projectData.getChildren().iterator(); while (iter.hasNext()) { PackageData packageData = (PackageData)iter.next(); generateSourceFileList(packageData); } }
3,229,348
private String generateTableRowForPackage(PackageData packageData) { StringBuffer ret = new StringBuffer(); String url1 = "frame-summary-" + packageData.getName() + ".html"; String url2 = "frame-sourcefiles-" + packageData.getName() + ".html"; double lineCoverage = -1; double branchCoverage = -1; double ccn = Util.getCCN(new File(sourceDir, packageData .getSourceFileName()), false); if (packageData.getNumberOfValidLines() > 0) lineCoverage = packageData.getLineCoverageRate(); if (packageData.getNumberOfValidBranches() > 0) branchCoverage = packageData.getBranchCoverageRate(); ret.append(" <tr>"); ret.append("<td class=\"text\"><a href=\"" + url1 + "\" onClick='parent.sourceFileList.location.href=\"" + url2 + "\"'>" + generatePackageName(packageData) + "</a></td>"); ret.append("<td class=\"value\">" + packageData.getChildren().size() + "</td>"); ret.append(generateTableColumnsFromData(lineCoverage, branchCoverage, ccn)); ret.append("</tr>"); return ret.toString(); }
private String generateTableRowForPackage(PackageData packageData) { StringBuffer ret = new StringBuffer(); String url1 = "frame-summary-" + packageData.getName() + ".html"; String url2 = "frame-sourcefiles-" + packageData.getName() + ".html"; double lineCoverage = -1; double branchCoverage = -1; double ccn = Util.getCCN(new File(sourceDir, packageData .getSourceFileName()), false); if (packageData.getNumberOfValidLines() > 0) lineCoverage = packageData.getLineCoverageRate(); if (packageData.getNumberOfValidBranches() > 0) branchCoverage = packageData.getBranchCoverageRate(); ret.append(" <tr>"); ret.append("<td class=\"text\"><a href=\"" + url1 + "\" onClick='parent.sourceFileList.location.href=\"" + url2 + "\"'>" + generatePackageName(packageData) + "</a></td>"); ret.append("<td class=\"value\">" + packageData.getChildren().size() + "</td>"); ret.append(generateTableColumnsFromData(lineCoverage, branchCoverage, ccn)); ret.append("</tr>"); return ret.toString(); }
3,229,349
public int getNumberOfClasses() { return getClasses().size(); }
public int getNumberOfClasses() { return getClasses().size(); }
3,229,350
public PojosFindHierarchiesQueryDefinition(QueryParameter... parameters) { super(parameters); }
public PojosFindHierarchiesQueryDefinition(QueryParameter... parameters) { super( defs, parameters ); }
3,229,351
public void run() { if(model == null) return; if(selectedNode == null) return; if(!(selectedNode instanceof SemanticTypeTree.ElementNode) || selectedNode.getFQName() == null) { fireModeCancel(); currentMethod = null; currentValueMethod = null; return; } DataElementType dataType = ((SemanticTypeTree.ElementNode)selectedNode).getType(); if(dataType == DataElementType.BOOLEAN) { gradient.setDiscrete(true); } else { gradient.setDiscrete(false); } if(selectedNode.isLazilyInitialized()) { // get attribute elementName = selectedNode.getFQName(); SemanticTypeTree.TreeNode pathNode = selectedNode; SemanticTypeTree.TypeNode parentNode = null; while(pathNode.getParent() instanceof SemanticTypeTree.TypeNode && pathNode.getParent() != null) { parentNode = (SemanticTypeTree.TypeNode)pathNode.getParent(); pathNode = parentNode; } SemanticType type = ((SemanticTypeTree.TypeNode)pathNode).getType(); attributeName = type.getName(); if(dataType == DataElementType.BOOLEAN) { displayBooleanInformation(attributeName,elementName); } else { analyzeInformation(attributeName,elementName); displayInformation(attributeName,elementName); } } else { selectedNode.markAsInitialized(true); BrowserEnvironment env = BrowserEnvironment.getInstance(); BrowserAgent agent = env.getBrowserAgent(); SemanticTypesService sts = agent.getSemanticTypesService(); SemanticTypeTree.TreeNode pathNode = selectedNode; SemanticTypeTree.TypeNode parentNode = null; while(pathNode.getParent() instanceof SemanticTypeTree.TypeNode && pathNode.getParent() != null) { parentNode = (SemanticTypeTree.TypeNode)pathNode.getParent(); parentNode.markAsInitialized(true); Set children = parentNode.getChildren(); for(Iterator iter = children.iterator(); iter.hasNext();) { Object o = iter.next(); // NOTE: this depends on the contract that the STS // retrieves the attribute as a whole, which is correct // but hard to explicitly formalize and check if(o instanceof SemanticTypeTree.ElementNode) { ((SemanticTypeTree.ElementNode)o). markAsInitialized(true); } } pathNode = parentNode; } SemanticType parentType = parentNode.getType(); String name = parentType.getName(); attributeName = name; elementName = selectedNode.getFQName(); BrowserModel source = model.getInfoSource(); Map imageIDMap = source.getImageDataMap(); List imageIDList = new ArrayList(imageIDMap.keySet()); Collections.sort(imageIDList); if(status != null) { status.showMessage("Loading "+name+" attributes..."); } try { List attributeList = sts.retrieveImageAttributes(name,selectedNode.getDBName(), imageIDList); for(Iterator iter = attributeList.iterator(); iter.hasNext();) { Attribute attribute = (Attribute)iter.next(); int imageID = attribute.getImage().getID(); ThumbnailDataModel tdm = (ThumbnailDataModel)imageIDMap.get(new Integer(imageID)); AttributeMap attrMap = tdm.getAttributeMap(); attrMap.putAttribute(attribute); } if(status != null) { status.showMessage("Loaded "+name+" attributes."); } if(dataType == DataElementType.BOOLEAN) { displayBooleanInformation(attributeName,elementName); } else { analyzeInformation(attributeName,elementName); displayInformation(attributeName,elementName); } } catch(DSOutOfServiceException dso) { if(status != null) { status.showMessage("could not retrieve "+name+" data."); } } catch(DSAccessException dsa) { if(status != null) { status.showMessage("could not retrieve "+name+" data."); } } } }
public void run() { if(model == null) return; if(selectedNode == null) return; if(!(selectedNode instanceof SemanticTypeTree.ElementNode) || selectedNode.getFQName() == null) { fireModeCancel(); currentMethod = null; currentValueMethod = null; return; } DataElementType dataType = ((SemanticTypeTree.ElementNode)selectedNode).getType(); if(dataType == DataElementType.BOOLEAN) { gradient.setDiscrete(true); } else { gradient.setDiscrete(false); } if(selectedNode.isLazilyInitialized()) { // get attribute elementName = selectedNode.getFQName(); SemanticTypeTree.TreeNode pathNode = selectedNode; SemanticTypeTree.TypeNode parentNode = null; while(pathNode.getParent() instanceof SemanticTypeTree.TypeNode && pathNode.getParent() != null) { parentNode = (SemanticTypeTree.TypeNode)pathNode.getParent(); pathNode = parentNode; } SemanticType type = ((SemanticTypeTree.TypeNode)pathNode).getType(); attributeName = type.getName(); if(dataType == DataElementType.BOOLEAN) { displayBooleanInformation(attributeName,elementName); } else { analyzeInformation(attributeName,elementName); displayInformation(attributeName,elementName); } } else { selectedNode.markAsInitialized(true); BrowserEnvironment env = BrowserEnvironment.getInstance(); BrowserAgent agent = env.getBrowserAgent(); SemanticTypesService sts = agent.getSemanticTypesService(); SemanticTypeTree.TreeNode pathNode = selectedNode; SemanticTypeTree.TypeNode parentNode = null; while(pathNode.getParent() instanceof SemanticTypeTree.TypeNode && pathNode.getParent() != null) { parentNode = (SemanticTypeTree.TypeNode)pathNode.getParent(); parentNode.markAsInitialized(true); Set children = parentNode.getChildren(); for(Iterator iter = children.iterator(); iter.hasNext();) { Object o = iter.next(); // NOTE: this depends on the contract that the STS // retrieves the attribute as a whole, which is correct // but hard to explicitly formalize and check if(o instanceof SemanticTypeTree.ElementNode) { ((SemanticTypeTree.ElementNode)o). markAsInitialized(true); } } pathNode = parentNode; } SemanticType parentType = parentNode.getType(); String name = parentType.getName(); attributeName = name; elementName = selectedNode.getFQName(); BrowserModel source = model.getInfoSource(); Map imageIDMap = source.getImageDataMap(); List imageIDList = new ArrayList(imageIDMap.keySet()); Collections.sort(imageIDList); if(status != null) { status.showMessage("Loading "+name+" attributes..."); } try { List attributeList = sts.retrieveImageAttributes(name,selectedNode.getDBName(), imageIDList); for(Iterator iter = attributeList.iterator(); iter.hasNext();) { Attribute attribute = (Attribute)iter.next(); int imageID = attribute.getImage().getID(); ThumbnailDataModel tdm = (ThumbnailDataModel)imageIDMap.get(new Integer(imageID)); AttributeMap attrMap = tdm.getAttributeMap(); attrMap.putAttribute(attribute); } if(status != null) { status.showMessage("Loaded "+name+" attributes."); } if(dataType == DataElementType.BOOLEAN) { displayBooleanInformation(attributeName,elementName); } else { analyzeInformation(attributeName,elementName); displayInformation(attributeName,elementName); } } catch(DSOutOfServiceException dso) { if(status != null) { status.showMessage("could not retrieve "+name+" data."); } } catch(DSAccessException dsa) { if(status != null) { status.showMessage("could not retrieve "+name+" data."); } } } }
3,229,352
public void run() { if(model == null) return; if(selectedNode == null) return; if(!(selectedNode instanceof SemanticTypeTree.ElementNode) || selectedNode.getFQName() == null) { fireModeCancel(); currentMethod = null; currentValueMethod = null; return; } DataElementType dataType = ((SemanticTypeTree.ElementNode)selectedNode).getType(); if(dataType == DataElementType.BOOLEAN) { gradient.setDiscrete(true); } else { gradient.setDiscrete(false); } if(selectedNode.isLazilyInitialized()) { // get attribute elementName = selectedNode.getFQName(); SemanticTypeTree.TreeNode pathNode = selectedNode; SemanticTypeTree.TypeNode parentNode = null; while(pathNode.getParent() instanceof SemanticTypeTree.TypeNode && pathNode.getParent() != null) { parentNode = (SemanticTypeTree.TypeNode)pathNode.getParent(); pathNode = parentNode; } SemanticType type = ((SemanticTypeTree.TypeNode)pathNode).getType(); attributeName = type.getName(); if(dataType == DataElementType.BOOLEAN) { displayBooleanInformation(attributeName,elementName); } else { analyzeInformation(attributeName,elementName); displayInformation(attributeName,elementName); } } else { selectedNode.markAsInitialized(true); BrowserEnvironment env = BrowserEnvironment.getInstance(); BrowserAgent agent = env.getBrowserAgent(); SemanticTypesService sts = agent.getSemanticTypesService(); SemanticTypeTree.TreeNode pathNode = selectedNode; SemanticTypeTree.TypeNode parentNode = null; while(pathNode.getParent() instanceof SemanticTypeTree.TypeNode && pathNode.getParent() != null) { parentNode = (SemanticTypeTree.TypeNode)pathNode.getParent(); parentNode.markAsInitialized(true); Set children = parentNode.getChildren(); for(Iterator iter = children.iterator(); iter.hasNext();) { Object o = iter.next(); // NOTE: this depends on the contract that the STS // retrieves the attribute as a whole, which is correct // but hard to explicitly formalize and check if(o instanceof SemanticTypeTree.ElementNode) { ((SemanticTypeTree.ElementNode)o). markAsInitialized(true); } } pathNode = parentNode; } SemanticType parentType = parentNode.getType(); String name = parentType.getName(); attributeName = name; elementName = selectedNode.getFQName(); BrowserModel source = model.getInfoSource(); Map imageIDMap = source.getImageDataMap(); List imageIDList = new ArrayList(imageIDMap.keySet()); Collections.sort(imageIDList); if(status != null) { status.showMessage("Loading "+name+" attributes..."); } try { List attributeList = sts.retrieveImageAttributes(name,selectedNode.getDBName(), imageIDList); for(Iterator iter = attributeList.iterator(); iter.hasNext();) { Attribute attribute = (Attribute)iter.next(); int imageID = attribute.getImage().getID(); ThumbnailDataModel tdm = (ThumbnailDataModel)imageIDMap.get(new Integer(imageID)); AttributeMap attrMap = tdm.getAttributeMap(); attrMap.putAttribute(attribute); } if(status != null) { status.showMessage("Loaded "+name+" attributes."); } if(dataType == DataElementType.BOOLEAN) { displayBooleanInformation(attributeName,elementName); } else { analyzeInformation(attributeName,elementName); displayInformation(attributeName,elementName); } } catch(DSOutOfServiceException dso) { if(status != null) { status.showMessage("could not retrieve "+name+" data."); } } catch(DSAccessException dsa) { if(status != null) { status.showMessage("could not retrieve "+name+" data."); } } } }
public void run() { if(model == null) return; if(selectedNode == null) return; if(!(selectedNode instanceof SemanticTypeTree.ElementNode) || selectedNode.getFQName() == null) { fireModeCancel(); currentMethod = null; currentValueMethod = null; return; } DataElementType dataType = ((SemanticTypeTree.ElementNode)selectedNode).getType(); if(dataType == DataElementType.BOOLEAN) { gradient.setDiscrete(true); } else { gradient.setDiscrete(false); } if(selectedNode.isLazilyInitialized()) { // get attribute elementName = selectedNode.getFQName(); SemanticTypeTree.TreeNode pathNode = selectedNode; SemanticTypeTree.TypeNode parentNode = null; while(pathNode.getParent() instanceof SemanticTypeTree.TypeNode && pathNode.getParent() != null) { parentNode = (SemanticTypeTree.TypeNode)pathNode.getParent(); pathNode = parentNode; } SemanticType type = ((SemanticTypeTree.TypeNode)pathNode).getType(); attributeName = type.getName(); if(dataType == DataElementType.BOOLEAN) { displayBooleanInformation(attributeName,elementName); } else { analyzeInformation(attributeName,elementName); displayInformation(attributeName,elementName); } } else { selectedNode.markAsInitialized(true); BrowserEnvironment env = BrowserEnvironment.getInstance(); BrowserAgent agent = env.getBrowserAgent(); SemanticTypesService sts = agent.getSemanticTypesService(); SemanticTypeTree.TreeNode pathNode = selectedNode; SemanticTypeTree.TypeNode parentNode = null; while(pathNode.getParent() instanceof SemanticTypeTree.TypeNode && pathNode.getParent() != null) { parentNode = (SemanticTypeTree.TypeNode)pathNode.getParent(); parentNode.markAsInitialized(true); Set children = parentNode.getChildren(); for(Iterator iter = children.iterator(); iter.hasNext();) { Object o = iter.next(); // NOTE: this depends on the contract that the STS // retrieves the attribute as a whole, which is correct // but hard to explicitly formalize and check if(o instanceof SemanticTypeTree.ElementNode) { ((SemanticTypeTree.ElementNode)o). markAsInitialized(true); } } pathNode = parentNode; } SemanticType parentType = parentNode.getType(); String name = parentType.getName(); attributeName = name; elementName = selectedNode.getFQName(); BrowserModel source = model.getInfoSource(); Map imageIDMap = source.getImageDataMap(); List imageIDList = new ArrayList(imageIDMap.keySet()); Collections.sort(imageIDList); if(status != null) { status.showMessage("Loading "+name+" attributes..."); } try { List attributeList = sts.retrieveImageAttributes(name,selectedNode.getDBName(), imageIDList); for(Iterator iter = attributeList.iterator(); iter.hasNext();) { Attribute attribute = (Attribute)iter.next(); int imageID = attribute.getImage().getID(); ThumbnailDataModel tdm = (ThumbnailDataModel)imageIDMap.get(new Integer(imageID)); AttributeMap attrMap = tdm.getAttributeMap(); attrMap.putAttribute(attribute); } if(status != null) { status.showMessage("Loaded "+name+" attributes."); } if(dataType == DataElementType.BOOLEAN) { displayBooleanInformation(attributeName,elementName); } else { analyzeInformation(attributeName,elementName); displayInformation(attributeName,elementName); } } catch(DSOutOfServiceException dso) { if(status != null) { status.showMessage("could not retrieve "+name+" data."); } } catch(DSAccessException dsa) { if(status != null) { status.showMessage("could not retrieve "+name+" data."); } } } }
3,229,353
public void run() { if(model == null) return; if(selectedNode == null) return; if(!(selectedNode instanceof SemanticTypeTree.ElementNode) || selectedNode.getFQName() == null) { fireModeCancel(); currentMethod = null; currentValueMethod = null; return; } DataElementType dataType = ((SemanticTypeTree.ElementNode)selectedNode).getType(); if(dataType == DataElementType.BOOLEAN) { gradient.setDiscrete(true); } else { gradient.setDiscrete(false); } if(selectedNode.isLazilyInitialized()) { // get attribute elementName = selectedNode.getFQName(); SemanticTypeTree.TreeNode pathNode = selectedNode; SemanticTypeTree.TypeNode parentNode = null; while(pathNode.getParent() instanceof SemanticTypeTree.TypeNode && pathNode.getParent() != null) { parentNode = (SemanticTypeTree.TypeNode)pathNode.getParent(); pathNode = parentNode; } SemanticType type = ((SemanticTypeTree.TypeNode)pathNode).getType(); attributeName = type.getName(); if(dataType == DataElementType.BOOLEAN) { displayBooleanInformation(attributeName,elementName); } else { analyzeInformation(attributeName,elementName); displayInformation(attributeName,elementName); } } else { selectedNode.markAsInitialized(true); BrowserEnvironment env = BrowserEnvironment.getInstance(); BrowserAgent agent = env.getBrowserAgent(); SemanticTypesService sts = agent.getSemanticTypesService(); SemanticTypeTree.TreeNode pathNode = selectedNode; SemanticTypeTree.TypeNode parentNode = null; while(pathNode.getParent() instanceof SemanticTypeTree.TypeNode && pathNode.getParent() != null) { parentNode = (SemanticTypeTree.TypeNode)pathNode.getParent(); parentNode.markAsInitialized(true); Set children = parentNode.getChildren(); for(Iterator iter = children.iterator(); iter.hasNext();) { Object o = iter.next(); // NOTE: this depends on the contract that the STS // retrieves the attribute as a whole, which is correct // but hard to explicitly formalize and check if(o instanceof SemanticTypeTree.ElementNode) { ((SemanticTypeTree.ElementNode)o). markAsInitialized(true); } } pathNode = parentNode; } SemanticType parentType = parentNode.getType(); String name = parentType.getName(); attributeName = name; elementName = selectedNode.getFQName(); BrowserModel source = model.getInfoSource(); Map imageIDMap = source.getImageDataMap(); List imageIDList = new ArrayList(imageIDMap.keySet()); Collections.sort(imageIDList); if(status != null) { status.showMessage("Loading "+name+" attributes..."); } try { List attributeList = sts.retrieveImageAttributes(name,selectedNode.getDBName(), imageIDList); for(Iterator iter = attributeList.iterator(); iter.hasNext();) { Attribute attribute = (Attribute)iter.next(); int imageID = attribute.getImage().getID(); ThumbnailDataModel tdm = (ThumbnailDataModel)imageIDMap.get(new Integer(imageID)); AttributeMap attrMap = tdm.getAttributeMap(); attrMap.putAttribute(attribute); } if(status != null) { status.showMessage("Loaded "+name+" attributes."); } if(dataType == DataElementType.BOOLEAN) { displayBooleanInformation(attributeName,elementName); } else { analyzeInformation(attributeName,elementName); displayInformation(attributeName,elementName); } } catch(DSOutOfServiceException dso) { if(status != null) { status.showMessage("could not retrieve "+name+" data."); } } catch(DSAccessException dsa) { if(status != null) { status.showMessage("could not retrieve "+name+" data."); } } } }
public void run() { if(model == null) return; if(selectedNode == null) return; if(!(selectedNode instanceof SemanticTypeTree.ElementNode) || selectedNode.getFQName() == null) { fireModeCancel(); currentMethod = null; currentValueMethod = null; return; } DataElementType dataType = ((SemanticTypeTree.ElementNode)selectedNode).getType(); if(dataType == DataElementType.BOOLEAN) { gradient.setDiscrete(true); } else { gradient.setDiscrete(false); } if(selectedNode.isLazilyInitialized()) { // get attribute elementName = selectedNode.getFQName(); SemanticTypeTree.TreeNode pathNode = selectedNode; SemanticTypeTree.TypeNode parentNode = null; while(pathNode.getParent() instanceof SemanticTypeTree.TypeNode && pathNode.getParent() != null) { parentNode = (SemanticTypeTree.TypeNode)pathNode.getParent(); pathNode = parentNode; } SemanticType type = ((SemanticTypeTree.TypeNode)pathNode).getType(); attributeName = type.getName(); if(dataType == DataElementType.BOOLEAN) { displayBooleanInformation(attributeName,elementName); } else { analyzeInformation(attributeName,elementName); displayInformation(attributeName,elementName); } } else { selectedNode.markAsInitialized(true); BrowserEnvironment env = BrowserEnvironment.getInstance(); BrowserAgent agent = env.getBrowserAgent(); SemanticTypesService sts = agent.getSemanticTypesService(); SemanticTypeTree.TreeNode pathNode = selectedNode; SemanticTypeTree.TypeNode parentNode = null; while(pathNode.getParent() instanceof SemanticTypeTree.TypeNode && pathNode.getParent() != null) { parentNode = (SemanticTypeTree.TypeNode)pathNode.getParent(); parentNode.markAsInitialized(true); Set children = parentNode.getChildren(); for(Iterator iter = children.iterator(); iter.hasNext();) { Object o = iter.next(); // NOTE: this depends on the contract that the STS // retrieves the attribute as a whole, which is correct // but hard to explicitly formalize and check if(o instanceof SemanticTypeTree.ElementNode) { ((SemanticTypeTree.ElementNode)o). markAsInitialized(true); } } pathNode = parentNode; } SemanticType parentType = parentNode.getType(); String name = parentType.getName(); attributeName = name; elementName = selectedNode.getFQName(); BrowserModel source = model.getInfoSource(); Map imageIDMap = source.getImageDataMap(); List imageIDList = new ArrayList(imageIDMap.keySet()); Collections.sort(imageIDList); if(status != null) { status.showMessage("Loading "+name+" attributes..."); } try { List attributeList = sts.retrieveImageAttributes(name,selectedNode.getDBName(), imageIDList); for(Iterator iter = attributeList.iterator(); iter.hasNext();) { Attribute attribute = (Attribute)iter.next(); int imageID = attribute.getImage().getID(); ThumbnailDataModel tdm = (ThumbnailDataModel)imageIDMap.get(new Integer(imageID)); AttributeMap attrMap = tdm.getAttributeMap(); attrMap.putAttribute(attribute); } if(status != null) { status.showMessage("Loaded "+name+" attributes."); } if(dataType == DataElementType.BOOLEAN) { displayBooleanInformation(attributeName,elementName); } else { analyzeInformation(attributeName,elementName); displayInformation(attributeName,elementName); } } catch(DSOutOfServiceException dso) { if(status != null) { status.showMessage("could not retrieve "+name+" data."); } } catch(DSAccessException dsa) { if(status != null) { status.showMessage("could not retrieve "+name+" data."); } } } }
3,229,354
public void run() { if(model == null) return; if(selectedNode == null) return; if(!(selectedNode instanceof SemanticTypeTree.ElementNode) || selectedNode.getFQName() == null) { fireModeCancel(); currentMethod = null; currentValueMethod = null; return; } DataElementType dataType = ((SemanticTypeTree.ElementNode)selectedNode).getType(); if(dataType == DataElementType.BOOLEAN) { gradient.setDiscrete(true); } else { gradient.setDiscrete(false); } if(selectedNode.isLazilyInitialized()) { // get attribute elementName = selectedNode.getFQName(); SemanticTypeTree.TreeNode pathNode = selectedNode; SemanticTypeTree.TypeNode parentNode = null; while(pathNode.getParent() instanceof SemanticTypeTree.TypeNode && pathNode.getParent() != null) { parentNode = (SemanticTypeTree.TypeNode)pathNode.getParent(); pathNode = parentNode; } SemanticType type = ((SemanticTypeTree.TypeNode)pathNode).getType(); attributeName = type.getName(); if(dataType == DataElementType.BOOLEAN) { displayBooleanInformation(attributeName,elementName); } else { analyzeInformation(attributeName,elementName); displayInformation(attributeName,elementName); } } else { selectedNode.markAsInitialized(true); BrowserEnvironment env = BrowserEnvironment.getInstance(); BrowserAgent agent = env.getBrowserAgent(); SemanticTypesService sts = agent.getSemanticTypesService(); SemanticTypeTree.TreeNode pathNode = selectedNode; SemanticTypeTree.TypeNode parentNode = null; while(pathNode.getParent() instanceof SemanticTypeTree.TypeNode && pathNode.getParent() != null) { parentNode = (SemanticTypeTree.TypeNode)pathNode.getParent(); parentNode.markAsInitialized(true); Set children = parentNode.getChildren(); for(Iterator iter = children.iterator(); iter.hasNext();) { Object o = iter.next(); // NOTE: this depends on the contract that the STS // retrieves the attribute as a whole, which is correct // but hard to explicitly formalize and check if(o instanceof SemanticTypeTree.ElementNode) { ((SemanticTypeTree.ElementNode)o). markAsInitialized(true); } } pathNode = parentNode; } SemanticType parentType = parentNode.getType(); String name = parentType.getName(); attributeName = name; elementName = selectedNode.getFQName(); BrowserModel source = model.getInfoSource(); Map imageIDMap = source.getImageDataMap(); List imageIDList = new ArrayList(imageIDMap.keySet()); Collections.sort(imageIDList); if(status != null) { status.showMessage("Loading "+name+" attributes..."); } try { List attributeList = sts.retrieveImageAttributes(name,selectedNode.getDBName(), imageIDList); for(Iterator iter = attributeList.iterator(); iter.hasNext();) { Attribute attribute = (Attribute)iter.next(); int imageID = attribute.getImage().getID(); ThumbnailDataModel tdm = (ThumbnailDataModel)imageIDMap.get(new Integer(imageID)); AttributeMap attrMap = tdm.getAttributeMap(); attrMap.putAttribute(attribute); } if(status != null) { status.showMessage("Loaded "+name+" attributes."); } if(dataType == DataElementType.BOOLEAN) { displayBooleanInformation(attributeName,elementName); } else { analyzeInformation(attributeName,elementName); displayInformation(attributeName,elementName); } } catch(DSOutOfServiceException dso) { if(status != null) { status.showMessage("could not retrieve "+name+" data."); } } catch(DSAccessException dsa) { if(status != null) { status.showMessage("could not retrieve "+name+" data."); } } } }
public void run() { if(model == null) return; if(selectedNode == null) return; if(!(selectedNode instanceof SemanticTypeTree.ElementNode) || selectedNode.getFQName() == null) { fireModeCancel(); currentMethod = null; currentValueMethod = null; return; } DataElementType dataType = ((SemanticTypeTree.ElementNode)selectedNode).getType(); if(dataType == DataElementType.BOOLEAN) { gradient.setDiscrete(true); } else { gradient.setDiscrete(false); } if(selectedNode.isLazilyInitialized()) { // get attribute elementName = selectedNode.getFQName(); SemanticTypeTree.TreeNode pathNode = selectedNode; SemanticTypeTree.TypeNode parentNode = null; while(pathNode.getParent() instanceof SemanticTypeTree.TypeNode && pathNode.getParent() != null) { parentNode = (SemanticTypeTree.TypeNode)pathNode.getParent(); pathNode = parentNode; } SemanticType type = ((SemanticTypeTree.TypeNode)pathNode).getType(); attributeName = type.getName(); if(dataType == DataElementType.BOOLEAN) { displayBooleanInformation(attributeName,elementName); } else { analyzeInformation(attributeName,elementName); displayInformation(attributeName,elementName); } } else { selectedNode.markAsInitialized(true); BrowserEnvironment env = BrowserEnvironment.getInstance(); BrowserAgent agent = env.getBrowserAgent(); SemanticTypesService sts = agent.getSemanticTypesService(); SemanticTypeTree.TreeNode pathNode = selectedNode; SemanticTypeTree.TypeNode parentNode = null; while(pathNode.getParent() instanceof SemanticTypeTree.TypeNode && pathNode.getParent() != null) { parentNode = (SemanticTypeTree.TypeNode)pathNode.getParent(); parentNode.markAsInitialized(true); Set children = parentNode.getChildren(); for(Iterator iter = children.iterator(); iter.hasNext();) { Object o = iter.next(); // NOTE: this depends on the contract that the STS // retrieves the attribute as a whole, which is correct // but hard to explicitly formalize and check if(o instanceof SemanticTypeTree.ElementNode) { ((SemanticTypeTree.ElementNode)o). markAsInitialized(true); } } pathNode = parentNode; } SemanticType parentType = parentNode.getType(); String name = parentType.getName(); attributeName = name; elementName = selectedNode.getFQName(); BrowserModel source = model.getInfoSource(); Map imageIDMap = source.getImageDataMap(); List imageIDList = new ArrayList(imageIDMap.keySet()); Collections.sort(imageIDList); if(status != null) { status.showMessage("Loading "+name+" attributes..."); } try { List attributeList = sts.retrieveImageAttributes(name,selectedNode.getDBName(), imageIDList); for(Iterator iter = attributeList.iterator(); iter.hasNext();) { Attribute attribute = (Attribute)iter.next(); int imageID = attribute.getImage().getID(); ThumbnailDataModel tdm = (ThumbnailDataModel)imageIDMap.get(new Integer(imageID)); AttributeMap attrMap = tdm.getAttributeMap(); attrMap.putAttribute(attribute); } if(status != null) { status.showMessage("Loaded "+name+" attributes."); } if(dataType == DataElementType.BOOLEAN) { displayBooleanInformation(attributeName,elementName); } else { analyzeInformation(attributeName,elementName); displayInformation(attributeName,elementName); } } catch(DSOutOfServiceException dso) { if(status != null) { status.showMessage("could not retrieve "+name+" data."); } } catch(DSAccessException dsa) { if(status != null) { status.showMessage("could not retrieve "+name+" data."); } } } }
3,229,355
public void run() { if(model == null) return; if(selectedNode == null) return; if(!(selectedNode instanceof SemanticTypeTree.ElementNode) || selectedNode.getFQName() == null) { fireModeCancel(); currentMethod = null; currentValueMethod = null; return; } DataElementType dataType = ((SemanticTypeTree.ElementNode)selectedNode).getType(); if(dataType == DataElementType.BOOLEAN) { gradient.setDiscrete(true); } else { gradient.setDiscrete(false); } if(selectedNode.isLazilyInitialized()) { // get attribute elementName = selectedNode.getFQName(); SemanticTypeTree.TreeNode pathNode = selectedNode; SemanticTypeTree.TypeNode parentNode = null; while(pathNode.getParent() instanceof SemanticTypeTree.TypeNode && pathNode.getParent() != null) { parentNode = (SemanticTypeTree.TypeNode)pathNode.getParent(); pathNode = parentNode; } SemanticType type = ((SemanticTypeTree.TypeNode)pathNode).getType(); attributeName = type.getName(); if(dataType == DataElementType.BOOLEAN) { displayBooleanInformation(attributeName,elementName); } else { analyzeInformation(attributeName,elementName); displayInformation(attributeName,elementName); } } else { selectedNode.markAsInitialized(true); BrowserEnvironment env = BrowserEnvironment.getInstance(); BrowserAgent agent = env.getBrowserAgent(); SemanticTypesService sts = agent.getSemanticTypesService(); SemanticTypeTree.TreeNode pathNode = selectedNode; SemanticTypeTree.TypeNode parentNode = null; while(pathNode.getParent() instanceof SemanticTypeTree.TypeNode && pathNode.getParent() != null) { parentNode = (SemanticTypeTree.TypeNode)pathNode.getParent(); parentNode.markAsInitialized(true); Set children = parentNode.getChildren(); for(Iterator iter = children.iterator(); iter.hasNext();) { Object o = iter.next(); // NOTE: this depends on the contract that the STS // retrieves the attribute as a whole, which is correct // but hard to explicitly formalize and check if(o instanceof SemanticTypeTree.ElementNode) { ((SemanticTypeTree.ElementNode)o). markAsInitialized(true); } } pathNode = parentNode; } SemanticType parentType = parentNode.getType(); String name = parentType.getName(); attributeName = name; elementName = selectedNode.getFQName(); BrowserModel source = model.getInfoSource(); Map imageIDMap = source.getImageDataMap(); List imageIDList = new ArrayList(imageIDMap.keySet()); Collections.sort(imageIDList); if(status != null) { status.showMessage("Loading "+name+" attributes..."); } try { List attributeList = sts.retrieveImageAttributes(name,selectedNode.getDBName(), imageIDList); for(Iterator iter = attributeList.iterator(); iter.hasNext();) { Attribute attribute = (Attribute)iter.next(); int imageID = attribute.getImage().getID(); ThumbnailDataModel tdm = (ThumbnailDataModel)imageIDMap.get(new Integer(imageID)); AttributeMap attrMap = tdm.getAttributeMap(); attrMap.putAttribute(attribute); } if(status != null) { status.showMessage("Loaded "+name+" attributes."); } if(dataType == DataElementType.BOOLEAN) { displayBooleanInformation(attributeName,elementName); } else { analyzeInformation(attributeName,elementName); displayInformation(attributeName,elementName); } } catch(DSOutOfServiceException dso) { if(status != null) { status.showMessage("could not retrieve "+name+" data."); } } catch(DSAccessException dsa) { if(status != null) { status.showMessage("could not retrieve "+name+" data."); } } } }
public void run() { if(model == null) return; if(selectedNode == null) return; if(!(selectedNode instanceof SemanticTypeTree.ElementNode) || selectedNode.getFQName() == null) { fireModeCancel(); currentMethod = null; currentValueMethod = null; return; } DataElementType dataType = ((SemanticTypeTree.ElementNode)selectedNode).getType(); if(dataType == DataElementType.BOOLEAN) { gradient.setDiscrete(true); } else { gradient.setDiscrete(false); } if(selectedNode.isLazilyInitialized()) { // get attribute elementName = selectedNode.getFQName(); SemanticTypeTree.TreeNode pathNode = selectedNode; SemanticTypeTree.TypeNode parentNode = null; while(pathNode.getParent() instanceof SemanticTypeTree.TypeNode && pathNode.getParent() != null) { parentNode = (SemanticTypeTree.TypeNode)pathNode.getParent(); pathNode = parentNode; } SemanticType type = ((SemanticTypeTree.TypeNode)pathNode).getType(); attributeName = type.getName(); if(dataType == DataElementType.BOOLEAN) { displayBooleanInformation(attributeName,elementName); } else { analyzeInformation(attributeName,elementName); displayInformation(attributeName,elementName); } } else { selectedNode.markAsInitialized(true); BrowserEnvironment env = BrowserEnvironment.getInstance(); BrowserAgent agent = env.getBrowserAgent(); SemanticTypesService sts = agent.getSemanticTypesService(); SemanticTypeTree.TreeNode pathNode = selectedNode; SemanticTypeTree.TypeNode parentNode = null; while(pathNode.getParent() instanceof SemanticTypeTree.TypeNode && pathNode.getParent() != null) { parentNode = (SemanticTypeTree.TypeNode)pathNode.getParent(); parentNode.markAsInitialized(true); Set children = parentNode.getChildren(); for(Iterator iter = children.iterator(); iter.hasNext();) { Object o = iter.next(); // NOTE: this depends on the contract that the STS // retrieves the attribute as a whole, which is correct // but hard to explicitly formalize and check if(o instanceof SemanticTypeTree.ElementNode) { ((SemanticTypeTree.ElementNode)o). markAsInitialized(true); } } pathNode = parentNode; } SemanticType parentType = parentNode.getType(); String name = parentType.getName(); attributeName = name; elementName = selectedNode.getFQName(); BrowserModel source = model.getInfoSource(); Map imageIDMap = source.getImageDataMap(); List imageIDList = new ArrayList(imageIDMap.keySet()); Collections.sort(imageIDList); if(status != null) { status.showMessage("Loading "+name+" attributes..."); } try { List attributeList = sts.retrieveImageAttributes(name,selectedNode.getDBName(), imageIDList); for(Iterator iter = attributeList.iterator(); iter.hasNext();) { Attribute attribute = (Attribute)iter.next(); int imageID = attribute.getImage().getID(); ThumbnailDataModel tdm = (ThumbnailDataModel)imageIDMap.get(new Integer(imageID)); AttributeMap attrMap = tdm.getAttributeMap(); attrMap.putAttribute(attribute); } if(status != null) { status.showMessage("Loaded "+name+" attributes."); } if(dataType == DataElementType.BOOLEAN) { displayBooleanInformation(attributeName,elementName); } else { analyzeInformation(attributeName,elementName); displayInformation(attributeName,elementName); } } catch(DSOutOfServiceException dso) { if(status != null) { status.showMessage("could not retrieve "+name+" data."); } } catch(DSAccessException dsa) { if(status != null) { status.showMessage("could not retrieve "+name+" data."); } } } }
3,229,356
public void run() { if(model == null) return; if(selectedNode == null) return; if(!(selectedNode instanceof SemanticTypeTree.ElementNode) || selectedNode.getFQName() == null) { fireModeCancel(); currentMethod = null; currentValueMethod = null; return; } DataElementType dataType = ((SemanticTypeTree.ElementNode)selectedNode).getType(); if(dataType == DataElementType.BOOLEAN) { gradient.setDiscrete(true); } else { gradient.setDiscrete(false); } if(selectedNode.isLazilyInitialized()) { // get attribute elementName = selectedNode.getFQName(); SemanticTypeTree.TreeNode pathNode = selectedNode; SemanticTypeTree.TypeNode parentNode = null; while(pathNode.getParent() instanceof SemanticTypeTree.TypeNode && pathNode.getParent() != null) { parentNode = (SemanticTypeTree.TypeNode)pathNode.getParent(); pathNode = parentNode; } SemanticType type = ((SemanticTypeTree.TypeNode)pathNode).getType(); attributeName = type.getName(); if(dataType == DataElementType.BOOLEAN) { displayBooleanInformation(attributeName,elementName); } else { analyzeInformation(attributeName,elementName); displayInformation(attributeName,elementName); } } else { selectedNode.markAsInitialized(true); BrowserEnvironment env = BrowserEnvironment.getInstance(); BrowserAgent agent = env.getBrowserAgent(); SemanticTypesService sts = agent.getSemanticTypesService(); SemanticTypeTree.TreeNode pathNode = selectedNode; SemanticTypeTree.TypeNode parentNode = null; while(pathNode.getParent() instanceof SemanticTypeTree.TypeNode && pathNode.getParent() != null) { parentNode = (SemanticTypeTree.TypeNode)pathNode.getParent(); parentNode.markAsInitialized(true); Set children = parentNode.getChildren(); for(Iterator iter = children.iterator(); iter.hasNext();) { Object o = iter.next(); // NOTE: this depends on the contract that the STS // retrieves the attribute as a whole, which is correct // but hard to explicitly formalize and check if(o instanceof SemanticTypeTree.ElementNode) { ((SemanticTypeTree.ElementNode)o). markAsInitialized(true); } } pathNode = parentNode; } SemanticType parentType = parentNode.getType(); String name = parentType.getName(); attributeName = name; elementName = selectedNode.getFQName(); BrowserModel source = model.getInfoSource(); Map imageIDMap = source.getImageDataMap(); List imageIDList = new ArrayList(imageIDMap.keySet()); Collections.sort(imageIDList); if(status != null) { status.showMessage("Loading "+name+" attributes..."); } try { List attributeList = sts.retrieveImageAttributes(name,selectedNode.getDBName(), imageIDList); for(Iterator iter = attributeList.iterator(); iter.hasNext();) { Attribute attribute = (Attribute)iter.next(); int imageID = attribute.getImage().getID(); ThumbnailDataModel tdm = (ThumbnailDataModel)imageIDMap.get(new Integer(imageID)); AttributeMap attrMap = tdm.getAttributeMap(); attrMap.putAttribute(attribute); } if(status != null) { status.showMessage("Loaded "+name+" attributes."); } if(dataType == DataElementType.BOOLEAN) { displayBooleanInformation(attributeName,elementName); } else { analyzeInformation(attributeName,elementName); displayInformation(attributeName,elementName); } } catch(DSOutOfServiceException dso) { if(status != null) { status.showMessage("could not retrieve "+name+" data."); } } catch(DSAccessException dsa) { if(status != null) { status.showMessage("could not retrieve "+name+" data."); } } } }
public void run() { if(model == null) return; if(selectedNode == null) return; if(!(selectedNode instanceof SemanticTypeTree.ElementNode) || selectedNode.getFQName() == null) { fireModeCancel(); currentMethod = null; currentValueMethod = null; return; } DataElementType dataType = ((SemanticTypeTree.ElementNode)selectedNode).getType(); if(dataType == DataElementType.BOOLEAN) { gradient.setDiscrete(true); } else { gradient.setDiscrete(false); } if(selectedNode.isLazilyInitialized()) { // get attribute elementName = selectedNode.getFQName(); SemanticTypeTree.TreeNode pathNode = selectedNode; SemanticTypeTree.TypeNode parentNode = null; while(pathNode.getParent() instanceof SemanticTypeTree.TypeNode && pathNode.getParent() != null) { parentNode = (SemanticTypeTree.TypeNode)pathNode.getParent(); pathNode = parentNode; } SemanticType type = ((SemanticTypeTree.TypeNode)pathNode).getType(); attributeName = type.getName(); if(dataType == DataElementType.BOOLEAN) { displayBooleanInformation(attributeName,elementName); } else { analyzeInformation(attributeName,elementName); displayInformation(attributeName,elementName); } } else { selectedNode.markAsInitialized(true); BrowserEnvironment env = BrowserEnvironment.getInstance(); BrowserAgent agent = env.getBrowserAgent(); SemanticTypesService sts = agent.getSemanticTypesService(); SemanticTypeTree.TreeNode pathNode = selectedNode; SemanticTypeTree.TypeNode parentNode = null; while(pathNode.getParent() instanceof SemanticTypeTree.TypeNode && pathNode.getParent() != null) { parentNode = (SemanticTypeTree.TypeNode)pathNode.getParent(); parentNode.markAsInitialized(true); Set children = parentNode.getChildren(); for(Iterator iter = children.iterator(); iter.hasNext();) { Object o = iter.next(); // NOTE: this depends on the contract that the STS // retrieves the attribute as a whole, which is correct // but hard to explicitly formalize and check if(o instanceof SemanticTypeTree.ElementNode) { ((SemanticTypeTree.ElementNode)o). markAsInitialized(true); } } pathNode = parentNode; } SemanticType parentType = parentNode.getType(); String name = parentType.getName(); attributeName = name; elementName = selectedNode.getFQName(); BrowserModel source = model.getInfoSource(); Map imageIDMap = source.getImageDataMap(); List imageIDList = new ArrayList(imageIDMap.keySet()); Collections.sort(imageIDList); if(status != null) { status.showMessage("Loading "+name+" attributes..."); } try { List attributeList = sts.retrieveImageAttributes(name,selectedNode.getDBName(), imageIDList); for(Iterator iter = attributeList.iterator(); iter.hasNext();) { Attribute attribute = (Attribute)iter.next(); int imageID = attribute.getImage().getID(); ThumbnailDataModel tdm = (ThumbnailDataModel)imageIDMap.get(new Integer(imageID)); AttributeMap attrMap = tdm.getAttributeMap(); attrMap.putAttribute(attribute); } if(status != null) { status.showMessage("Loaded "+name+" attributes."); } if(dataType == DataElementType.BOOLEAN) { displayBooleanInformation(attributeName,elementName); } else { analyzeInformation(attributeName,elementName); displayInformation(attributeName,elementName); } } catch(DSOutOfServiceException dso) { if(status != null) { status.showMessage("could not retrieve data."); } } catch(DSAccessException dsa) { if(status != null) { status.showMessage("could not retrieve data."); } } } }
3,229,357
public void run() { if(model == null) return; if(selectedNode == null) return; if(!(selectedNode instanceof SemanticTypeTree.ElementNode) || selectedNode.getFQName() == null) { fireModeCancel(); currentMethod = null; currentValueMethod = null; return; } DataElementType dataType = ((SemanticTypeTree.ElementNode)selectedNode).getType(); if(dataType == DataElementType.BOOLEAN) { gradient.setDiscrete(true); } else { gradient.setDiscrete(false); } if(selectedNode.isLazilyInitialized()) { // get attribute elementName = selectedNode.getFQName(); SemanticTypeTree.TreeNode pathNode = selectedNode; SemanticTypeTree.TypeNode parentNode = null; while(pathNode.getParent() instanceof SemanticTypeTree.TypeNode && pathNode.getParent() != null) { parentNode = (SemanticTypeTree.TypeNode)pathNode.getParent(); pathNode = parentNode; } SemanticType type = ((SemanticTypeTree.TypeNode)pathNode).getType(); attributeName = type.getName(); if(dataType == DataElementType.BOOLEAN) { displayBooleanInformation(attributeName,elementName); } else { analyzeInformation(attributeName,elementName); displayInformation(attributeName,elementName); } } else { selectedNode.markAsInitialized(true); BrowserEnvironment env = BrowserEnvironment.getInstance(); BrowserAgent agent = env.getBrowserAgent(); SemanticTypesService sts = agent.getSemanticTypesService(); SemanticTypeTree.TreeNode pathNode = selectedNode; SemanticTypeTree.TypeNode parentNode = null; while(pathNode.getParent() instanceof SemanticTypeTree.TypeNode && pathNode.getParent() != null) { parentNode = (SemanticTypeTree.TypeNode)pathNode.getParent(); parentNode.markAsInitialized(true); Set children = parentNode.getChildren(); for(Iterator iter = children.iterator(); iter.hasNext();) { Object o = iter.next(); // NOTE: this depends on the contract that the STS // retrieves the attribute as a whole, which is correct // but hard to explicitly formalize and check if(o instanceof SemanticTypeTree.ElementNode) { ((SemanticTypeTree.ElementNode)o). markAsInitialized(true); } } pathNode = parentNode; } SemanticType parentType = parentNode.getType(); String name = parentType.getName(); attributeName = name; elementName = selectedNode.getFQName(); BrowserModel source = model.getInfoSource(); Map imageIDMap = source.getImageDataMap(); List imageIDList = new ArrayList(imageIDMap.keySet()); Collections.sort(imageIDList); if(status != null) { status.showMessage("Loading "+name+" attributes..."); } try { List attributeList = sts.retrieveImageAttributes(name,selectedNode.getDBName(), imageIDList); for(Iterator iter = attributeList.iterator(); iter.hasNext();) { Attribute attribute = (Attribute)iter.next(); int imageID = attribute.getImage().getID(); ThumbnailDataModel tdm = (ThumbnailDataModel)imageIDMap.get(new Integer(imageID)); AttributeMap attrMap = tdm.getAttributeMap(); attrMap.putAttribute(attribute); } if(status != null) { status.showMessage("Loaded "+name+" attributes."); } if(dataType == DataElementType.BOOLEAN) { displayBooleanInformation(attributeName,elementName); } else { analyzeInformation(attributeName,elementName); displayInformation(attributeName,elementName); } } catch(DSOutOfServiceException dso) { if(status != null) { status.showMessage("could not retrieve "+name+" data."); } } catch(DSAccessException dsa) { if(status != null) { status.showMessage("could not retrieve "+name+" data."); } } } }
public void run() { if(model == null) return; if(selectedNode == null) return; if(!(selectedNode instanceof SemanticTypeTree.ElementNode) || selectedNode.getFQName() == null) { fireModeCancel(); currentMethod = null; currentValueMethod = null; return; } DataElementType dataType = ((SemanticTypeTree.ElementNode)selectedNode).getType(); if(dataType == DataElementType.BOOLEAN) { gradient.setDiscrete(true); } else { gradient.setDiscrete(false); } if(selectedNode.isLazilyInitialized()) { // get attribute elementName = selectedNode.getFQName(); SemanticTypeTree.TreeNode pathNode = selectedNode; SemanticTypeTree.TypeNode parentNode = null; while(pathNode.getParent() instanceof SemanticTypeTree.TypeNode && pathNode.getParent() != null) { parentNode = (SemanticTypeTree.TypeNode)pathNode.getParent(); pathNode = parentNode; } SemanticType type = ((SemanticTypeTree.TypeNode)pathNode).getType(); attributeName = type.getName(); if(dataType == DataElementType.BOOLEAN) { displayBooleanInformation(attributeName,elementName); } else { analyzeInformation(attributeName,elementName); displayInformation(attributeName,elementName); } } else { selectedNode.markAsInitialized(true); BrowserEnvironment env = BrowserEnvironment.getInstance(); BrowserAgent agent = env.getBrowserAgent(); SemanticTypesService sts = agent.getSemanticTypesService(); SemanticTypeTree.TreeNode pathNode = selectedNode; SemanticTypeTree.TypeNode parentNode = null; while(pathNode.getParent() instanceof SemanticTypeTree.TypeNode && pathNode.getParent() != null) { parentNode = (SemanticTypeTree.TypeNode)pathNode.getParent(); parentNode.markAsInitialized(true); Set children = parentNode.getChildren(); for(Iterator iter = children.iterator(); iter.hasNext();) { Object o = iter.next(); // NOTE: this depends on the contract that the STS // retrieves the attribute as a whole, which is correct // but hard to explicitly formalize and check if(o instanceof SemanticTypeTree.ElementNode) { ((SemanticTypeTree.ElementNode)o). markAsInitialized(true); } } pathNode = parentNode; } SemanticType parentType = parentNode.getType(); String name = parentType.getName(); attributeName = name; elementName = selectedNode.getFQName(); BrowserModel source = model.getInfoSource(); Map imageIDMap = source.getImageDataMap(); List imageIDList = new ArrayList(imageIDMap.keySet()); Collections.sort(imageIDList); if(status != null) { status.showMessage("Loading "+name+" attributes..."); } try { List attributeList = sts.retrieveImageAttributes(name,selectedNode.getDBName(), imageIDList); for(Iterator iter = attributeList.iterator(); iter.hasNext();) { Attribute attribute = (Attribute)iter.next(); int imageID = attribute.getImage().getID(); ThumbnailDataModel tdm = (ThumbnailDataModel)imageIDMap.get(new Integer(imageID)); AttributeMap attrMap = tdm.getAttributeMap(); attrMap.putAttribute(attribute); } if(status != null) { status.showMessage("Loaded "+name+" attributes."); } if(dataType == DataElementType.BOOLEAN) { displayBooleanInformation(attributeName,elementName); } else { analyzeInformation(attributeName,elementName); displayInformation(attributeName,elementName); } } catch(DSOutOfServiceException dso) { if(status != null) { status.showMessage("could not retrieve data."); } } catch(DSAccessException dsa) { if(status != null) { status.showMessage("could not retrieve data."); } } } }
3,229,358
public void nodeSelected(SemanticTypeTree.TreeNode node) { if(model == null || node == null) { return; } LoaderThread thread = new LoaderThread(node); thread.start(); }
public void nodeSelected(SemanticTypeTree.TreeNode node) { if(model == null || node == null) { return; } LoaderThread thread = new LoaderThread(node); thread.start(); }
3,229,361
public static PaintMethod getPaintMethod(final HeatMapMode mode, final String attributeName, final String elementName, final Scale scale, final Color coldColor, final Color warmColor) { PaintMethod pm = new PaintMethod() { private Map thumbnailColorMap = new IdentityHashMap(); private Color alpha = new Color(0,0,0,0); public void paint(Graphics2D g, Thumbnail t) { Rectangle2D region = t.getBounds().getBounds2D(); if(thumbnailColorMap.containsKey(t.getModel())) { Paint p = (Paint)thumbnailColorMap.get(t); if(p != null) { g.setPaint(p); g.fill(region); } } else { setupMethod(t.getModel()); // TODO: change to t, show variance Paint p = (Paint)thumbnailColorMap.get(t.getModel()); if(p != null) { g.setPaint(p); g.fill(region); } } } /** * Sets up the paint method so the data doesn't have to be * reassessed with each paint() call. That would suck. * TODO: probably include an update() method if the underlying * value changes. */ public void setupMethod(ThumbnailDataModel tdm) { AttributeMap attrMap = tdm.getAttributeMap(); List attributes = attrMap.getAttributes(attributeName); if(attributes == null || attributes.size() == 0) { thumbnailColorMap.put(tdm,null); return; } Attribute[] attrs = new Attribute[attributes.size()]; attributes.toArray(attrs); double val = mode.computeValue(attrs,elementName); Color color = scale.getColor(val,coldColor,warmColor); thumbnailColorMap.put(tdm,color); } }; return pm; }
public static PaintMethod getPaintMethod(final HeatMapMode mode, final String attributeName, final String elementName, final Scale scale, final Color coldColor, final Color warmColor) { PaintMethod pm = new PaintMethod() { private Map thumbnailColorMap = new IdentityHashMap(); private Color alpha = new Color(0,0,0,0); public void paint(Graphics2D g, Thumbnail t) { Rectangle2D region = t.getBounds().getBounds2D(); if(thumbnailColorMap.containsKey(t.getModel())) { Paint p = (Paint)thumbnailColorMap.get(t.getModel()); if(p != null) { g.setPaint(p); g.fill(region); } } else { setupMethod(t.getModel()); // TODO: change to t, show variance Paint p = (Paint)thumbnailColorMap.get(t.getModel()); if(p != null) { g.setPaint(p); g.fill(region); } } } /** * Sets up the paint method so the data doesn't have to be * reassessed with each paint() call. That would suck. * TODO: probably include an update() method if the underlying * value changes. */ public void setupMethod(ThumbnailDataModel tdm) { AttributeMap attrMap = tdm.getAttributeMap(); List attributes = attrMap.getAttributes(attributeName); if(attributes == null || attributes.size() == 0) { thumbnailColorMap.put(tdm,null); return; } Attribute[] attrs = new Attribute[attributes.size()]; attributes.toArray(attrs); double val = mode.computeValue(attrs,elementName); Color color = scale.getColor(val,coldColor,warmColor); thumbnailColorMap.put(tdm,color); } }; return pm; }
3,229,362
public static PaintMethod getPaintMethod(final HeatMapMode mode, final String attributeName, final String elementName, final Scale scale, final Color coldColor, final Color warmColor) { PaintMethod pm = new PaintMethod() { private Map thumbnailColorMap = new IdentityHashMap(); private Color alpha = new Color(0,0,0,0); public void paint(Graphics2D g, Thumbnail t) { Rectangle2D region = t.getBounds().getBounds2D(); if(thumbnailColorMap.containsKey(t.getModel())) { Paint p = (Paint)thumbnailColorMap.get(t); if(p != null) { g.setPaint(p); g.fill(region); } } else { setupMethod(t.getModel()); // TODO: change to t, show variance Paint p = (Paint)thumbnailColorMap.get(t.getModel()); if(p != null) { g.setPaint(p); g.fill(region); } } } /** * Sets up the paint method so the data doesn't have to be * reassessed with each paint() call. That would suck. * TODO: probably include an update() method if the underlying * value changes. */ public void setupMethod(ThumbnailDataModel tdm) { AttributeMap attrMap = tdm.getAttributeMap(); List attributes = attrMap.getAttributes(attributeName); if(attributes == null || attributes.size() == 0) { thumbnailColorMap.put(tdm,null); return; } Attribute[] attrs = new Attribute[attributes.size()]; attributes.toArray(attrs); double val = mode.computeValue(attrs,elementName); Color color = scale.getColor(val,coldColor,warmColor); thumbnailColorMap.put(tdm,color); } }; return pm; }
public static PaintMethod getPaintMethod(final HeatMapMode mode, final String attributeName, final String elementName, final Scale scale, final Color coldColor, final Color warmColor) { PaintMethod pm = new PaintMethod() { private Map thumbnailColorMap = new IdentityHashMap(); private Color alpha = new Color(0,0,0,0); public void paint(Graphics2D g, Thumbnail t) { Rectangle2D region = t.getBounds().getBounds2D(); if(thumbnailColorMap.containsKey(t.getModel())) { Paint p = (Paint)thumbnailColorMap.get(t); if(p != null) { g.setPaint(p); g.fill(region); } } else { setupMethod(t.getModel()); // TODO: change to t, show variance Paint p = (Paint)thumbnailColorMap.get(t.getModel()); if(p != null) { g.setPaint(p); g.fill(region); } } } /** * Sets up the paint method so the data doesn't have to be * reassessed with each paint() call. That would suck. * TODO: probably include an update() method if the underlying * value changes. */ public void setupMethod(ThumbnailDataModel tdm) { AttributeMap attrMap = tdm.getAttributeMap(); List attributes = attrMap.getAttributes(attributeName); if(attributes == null || attributes.size() == 0) { thumbnailColorMap.put(tdm,null); return; } Attribute[] attrs = new Attribute[attributes.size()]; attributes.toArray(attrs); double val = mode.computeValue(attrs,elementName); Color color = scale.getColor(val,coldColor,warmColor); Color alphaColor = new Color(color.getRed(),color.getGreen(), color.getBlue(),128); thumbnailColorMap.put(tdm,alphaColor); } }; return pm; }
3,229,363
public LogarithmicScale(double min, double max) { if(min > max || min == max) { throw new IllegalArgumentException("max cannot <= min"); } this.min = min; this.max = max; logMin = Math.log(min); logMax = Math.log(max); }
public LogarithmicScale(double min, double max) { if(min > max) { throw new IllegalArgumentException("max cannot <= min"); } this.min = min; this.max = max; logMin = Math.log(min); logMax = Math.log(max); }
3,229,364
public void preprocess(SpringApplicationContext applicationContext, XmlBeanDefinitionReader reader, Document document) { // determine the classLoader ClassLoader classLoader; NodeList classpathElements = document.getDocumentElement().getElementsByTagName("classpath"); if (classpathElements.getLength() < 1) { classLoader = getClass().getClassLoader(); } else if (classpathElements.getLength() > 1) { throw new FatalBeanException("Expected only classpath element but found " + classpathElements.getLength()); } else { Element classpathElement = (Element) classpathElements.item(0); // build the classpath List classpath = new ArrayList(); NodeList locations = classpathElement.getElementsByTagName("location"); for (int i = 0; i < locations.getLength(); i++) { Element locationElement = (Element) locations.item(i); String location = ((Text) locationElement.getFirstChild()).getData().trim(); classpath.add(location); } // convert the paths to URLS URL[] urls = new URL[classpath.size()]; for (ListIterator iterator = classpath.listIterator(); iterator.hasNext();) { String location = (String) iterator.next(); urls[iterator.previousIndex()] = repository.getResource(location); } // create the classloader classLoader = new MultiParentClassLoader(applicationContext.getDisplayName(), urls, getClass().getClassLoader()); // remove the classpath element so Spring doesn't get confused document.getDocumentElement().removeChild(classpathElement); } // assign the class loader to the xml reader and the application context reader.setBeanClassLoader(classLoader); applicationContext.setClassLoader(classLoader); Thread.currentThread().setContextClassLoader(classLoader); }
public void preprocess(SpringApplicationContext applicationContext, XmlBeanDefinitionReader reader, Document document) { // determine the classLoader ClassLoader classLoader; NodeList classpathElements = document.getDocumentElement().getElementsByTagName("classpath"); if (classpathElements.getLength() < 1) { classLoader = getClass().getClassLoader(); } else if (classpathElements.getLength() > 1) { throw new FatalBeanException("Expected only classpath element but found " + classpathElements.getLength()); } else { Element classpathElement = (Element) classpathElements.item(0); // build the classpath List classpath = new ArrayList(); NodeList locations = classpathElement.getElementsByTagName("location"); for (int i = 0; i < locations.getLength(); i++) { Element locationElement = (Element) locations.item(i); String location = ((Text) locationElement.getFirstChild()).getData().trim(); classpath.add(location); } // convert the paths to URLS URL[] urls = new URL[classpath.size()]; for (ListIterator iterator = classpath.listIterator(); iterator.hasNext();) { String location = (String) iterator.next(); urls[iterator.previousIndex()] = repository.getResource(location); } // create the classloader ClassLoader parentLoader = getClassLoader(applicationContext); classLoader = new MultiParentClassLoader(applicationContext.getDisplayName(), urls, parentLoader); // remove the classpath element so Spring doesn't get confused document.getDocumentElement().removeChild(classpathElement); } // assign the class loader to the xml reader and the application context reader.setBeanClassLoader(classLoader); applicationContext.setClassLoader(classLoader); Thread.currentThread().setContextClassLoader(classLoader); }
3,229,367
public RubyObject callIndexed(int index, RubyObject[] args) { switch (index) { case M_TO_F: return to_f(); case M_TO_S: return to_s(); case M_OP_LSHIFT: return op_lshift(args[0]); case M_OP_RSHIFT: return op_rshift(args[0]); case M_OP_PLUS: return op_plus(args[0]); case M_OP_MINUS: return op_minus(args[0]); case M_OP_MUL: return op_mul(args[0]); case M_OP_DIV: return op_div(args[0]); case M_OP_MOD: return op_mod(args[0]); case M_OP_POW: return op_pow(args[0]); case M_EQUAL: return equal(args[0]); case M_OP_CMP: return op_cmp(args[0]); case M_OP_GT: return op_gt(args[0]); case M_OP_GE: return op_ge(args[0]); case M_OP_LT: return op_lt(args[0]); case M_OP_LE: return op_le(args[0]); case M_OP_AND: return op_and(args[0]); case M_SIZE: return size(); case M_HASH: return hash(); } Asserts.assertNotReached(); return null; }
public RubyObject callIndexed(int index, RubyObject[] args) { switch (index) { case M_TO_F: return to_f(); case M_TO_S: return to_s(); case M_OP_LSHIFT: return op_lshift(args[0]); case M_OP_RSHIFT: return op_rshift(args[0]); case M_OP_PLUS: return op_plus(args[0]); case M_OP_MINUS: return op_minus(args[0]); case M_OP_MUL: return op_mul(args[0]); case M_OP_DIV: return op_div(args[0]); case M_OP_MOD: return op_mod(args[0]); case M_OP_POW: return op_pow(args[0]); case M_EQUAL: return equal(args[0]); case M_OP_CMP: return op_cmp(args[0]); case M_OP_GT: return op_gt(args[0]); case M_OP_GE: return op_ge(args[0]); case M_OP_LT: return op_lt(args[0]); case M_OP_LE: return op_le(args[0]); case M_OP_AND: return op_and(args[0]); case M_SIZE: return size(); case M_HASH: return hash(); } Asserts.assertNotReached(); return null; }
3,229,369
public static RubyClass createFixnumClass(Ruby ruby) { RubyClass fixnumClass = ruby.defineClass("Fixnum", ruby.getClasses().getIntegerClass()); fixnumClass.includeModule(ruby.getClasses().getPrecisionModule()); fixnumClass.defineSingletonMethod("induced_from", CallbackFactory.getSingletonMethod(RubyFixnum.class, "induced_from", RubyObject.class)); fixnumClass.defineMethod("to_f", IndexedCallback.create(M_TO_F, 0)); fixnumClass.defineMethod("to_s", IndexedCallback.create(M_TO_S, 0)); fixnumClass.defineMethod("to_str", IndexedCallback.create(M_TO_S, 0)); fixnumClass.defineMethod("taint", CallbackFactory.getSelfMethod(0)); fixnumClass.defineMethod("freeze", CallbackFactory.getSelfMethod(0)); fixnumClass.defineMethod("<<", IndexedCallback.create(M_OP_LSHIFT, 1)); fixnumClass.defineMethod(">>", IndexedCallback.create(M_OP_RSHIFT, 1)); fixnumClass.defineMethod("+", IndexedCallback.create(M_OP_PLUS, 1)); fixnumClass.defineMethod("-", IndexedCallback.create(M_OP_MINUS, 1)); fixnumClass.defineMethod("*", IndexedCallback.create(M_OP_MUL, 1)); fixnumClass.defineMethod("/", IndexedCallback.create(M_OP_DIV, 1)); fixnumClass.defineMethod("%", IndexedCallback.create(M_OP_MOD, 1)); fixnumClass.defineMethod("**", IndexedCallback.create(M_OP_POW, 1)); fixnumClass.defineMethod("==", IndexedCallback.create(M_EQUAL, 1)); fixnumClass.defineMethod("eql?", IndexedCallback.create(M_EQUAL, 1)); fixnumClass.defineMethod("equal?", IndexedCallback.create(M_EQUAL, 1)); fixnumClass.defineMethod("<=>", IndexedCallback.create(M_OP_CMP, 1)); fixnumClass.defineMethod(">", IndexedCallback.create(M_OP_GT, 1)); fixnumClass.defineMethod(">=", IndexedCallback.create(M_OP_GE, 1)); fixnumClass.defineMethod("<", IndexedCallback.create(M_OP_LT, 1)); fixnumClass.defineMethod("<=", IndexedCallback.create(M_OP_LE, 1)); fixnumClass.defineMethod("&", IndexedCallback.create(M_OP_AND, 1)); fixnumClass.defineMethod("|", CallbackFactory.getMethod(RubyFixnum.class, "op_or", RubyInteger.class)); fixnumClass.defineMethod("^", CallbackFactory.getMethod(RubyFixnum.class, "op_xor", RubyInteger.class)); fixnumClass.defineMethod("size", IndexedCallback.create(M_SIZE, 0)); fixnumClass.defineMethod("[]", CallbackFactory.getMethod(RubyFixnum.class, "aref", RubyInteger.class)); fixnumClass.defineMethod("hash", IndexedCallback.create(M_HASH, 0)); return fixnumClass; }
public static RubyClass createFixnumClass(Ruby ruby) { RubyClass fixnumClass = ruby.defineClass("Fixnum", ruby.getClasses().getIntegerClass()); fixnumClass.includeModule(ruby.getClasses().getPrecisionModule()); fixnumClass.defineSingletonMethod("induced_from", CallbackFactory.getSingletonMethod(RubyFixnum.class, "induced_from", RubyObject.class)); fixnumClass.defineMethod("to_f", IndexedCallback.create(M_TO_F, 0)); fixnumClass.defineMethod("to_s", IndexedCallback.create(M_TO_S, 0)); fixnumClass.defineMethod("to_str", IndexedCallback.create(M_TO_S, 0)); fixnumClass.defineMethod("taint", CallbackFactory.getSelfMethod(0)); fixnumClass.defineMethod("freeze", CallbackFactory.getSelfMethod(0)); fixnumClass.defineMethod("<<", IndexedCallback.create(M_OP_LSHIFT, 1)); fixnumClass.defineMethod(">>", IndexedCallback.create(M_OP_RSHIFT, 1)); fixnumClass.defineMethod("+", IndexedCallback.create(M_OP_PLUS, 1)); fixnumClass.defineMethod("-", IndexedCallback.create(M_OP_MINUS, 1)); fixnumClass.defineMethod("*", IndexedCallback.create(M_OP_MUL, 1)); fixnumClass.defineMethod("/", IndexedCallback.create(M_OP_DIV, 1)); fixnumClass.defineMethod("%", IndexedCallback.create(M_OP_MOD, 1)); fixnumClass.defineMethod("**", IndexedCallback.create(M_OP_POW, 1)); fixnumClass.defineMethod("==", IndexedCallback.create(M_EQUAL, 1)); fixnumClass.defineMethod("eql?", IndexedCallback.create(M_EQUAL, 1)); fixnumClass.defineMethod("equal?", IndexedCallback.create(M_EQUAL, 1)); fixnumClass.defineMethod("<=>", IndexedCallback.create(M_OP_CMP, 1)); fixnumClass.defineMethod(">", IndexedCallback.create(M_OP_GT, 1)); fixnumClass.defineMethod(">=", IndexedCallback.create(M_OP_GE, 1)); fixnumClass.defineMethod("<", IndexedCallback.create(M_OP_LT, 1)); fixnumClass.defineMethod("<=", IndexedCallback.create(M_OP_LE, 1)); fixnumClass.defineMethod("&", IndexedCallback.create(M_OP_AND, 1)); fixnumClass.defineMethod("|", CallbackFactory.getMethod(RubyFixnum.class, "op_or", RubyInteger.class)); fixnumClass.defineMethod("^", CallbackFactory.getMethod(RubyFixnum.class, "op_xor", RubyInteger.class)); fixnumClass.defineMethod("size", IndexedCallback.create(M_SIZE, 0)); fixnumClass.defineMethod("[]", CallbackFactory.getMethod(RubyFixnum.class, "aref", RubyInteger.class)); fixnumClass.defineMethod("hash", IndexedCallback.create(M_HASH, 0)); fixnumClass.defineMethod("id2name", IndexedCallback.create(M_ID2NAME, 0)); return fixnumClass; }
3,229,370
private void initCoreClasses() { ObjectMetaClass objectMetaClass = new ObjectMetaClass(this); objectMetaClass.initializeClass(); objectClass = objectMetaClass; objectClass.setConstant("Object", objectClass); RubyClass moduleClass = new ModuleMetaClass(this, objectClass); objectClass.setConstant("Module", moduleClass); RubyClass classClass = new RubyClass(this, null /* Would be Class if it could */, moduleClass, null, "Class"); objectClass.setConstant("Class", classClass); // I don't think the containment is correct here (parent cref) RubyClass metaClass = objectClass.makeMetaClass(classClass, objectMetaClass.getCRef()); metaClass = moduleClass.makeMetaClass(metaClass, objectMetaClass.getCRef()); metaClass = classClass.makeMetaClass(metaClass, objectMetaClass.getCRef()); ((ObjectMetaClass) moduleClass).initializeBootstrapClass(); kernelModule = RubyKernel.createKernelModule(this); objectClass.includeModule(kernelModule); RubyClass.createClassClass(classClass); nilClass = RubyNil.createNilClass(this); // We cannot define this constant until nil itself was made objectClass.defineConstant("NIL", getNil()); // Pre-create the core classes we know we will get referenced by starting up the runtime. RubyBoolean.createFalseClass(this); RubyBoolean.createTrueClass(this); RubyComparable.createComparable(this); RubyEnumerable.createEnumerableModule(this); stringClass = new StringMetaClass(this); stringClass.initializeClass(); new SymbolMetaClass(this).initializeClass(); RubyThreadGroup.createThreadGroupClass(this); RubyThread.createThreadClass(this); RubyException.createExceptionClass(this); RubyPrecision.createPrecisionModule(this); new NumericMetaClass(this).initializeClass(); new IntegerMetaClass(this).initializeClass(); fixnumClass = new FixnumMetaClass(this); fixnumClass.initializeClass(); new HashMetaClass(this).initializeClass(); new IOMetaClass(this).initializeClass(); new ArrayMetaClass(this).initializeClass(); Java.createJavaModule(this); RubyClass structClass = RubyStruct.createStructClass(this); tmsStruct = RubyStruct.newInstance(structClass, new IRubyObject[] { newString("Tms"), newSymbol("utime"), newSymbol("stime"), newSymbol("cutime"), newSymbol("cstime")}); RubyFloat.createFloatClass(this); new BignumMetaClass(this).initializeClass(); new BindingMetaClass(this).initializeClass(); RubyMath.createMathModule(this); // depends on all numeric types RubyRegexp.createRegexpClass(this); RubyRange.createRangeClass(this); RubyObjectSpace.createObjectSpaceModule(this); RubyGC.createGCModule(this); new ProcMetaClass(this).initializeClass(); RubyMethod.createMethodClass(this); RubyMatchData.createMatchDataClass(this); RubyMarshal.createMarshalModule(this); RubyDir.createDirClass(this); RubyFileTest.createFileTestModule(this); new FileMetaClass(this).initializeClass(); // depends on IO, FileTest RubyProcess.createProcessModule(this); new TimeMetaClass(this).initializeClass(); RubyUnboundMethod.defineUnboundMethodClass(this); RubyClass exceptionClass = getClass("Exception"); RubyClass standardError = defineClass("StandardError", exceptionClass); RubyClass runtimeError = defineClass("RuntimeError", standardError); RubyClass ioError = defineClass("IOError", standardError); RubyClass scriptError = defineClass("ScriptError", exceptionClass); RubyClass nameError = defineClass("NameError", standardError); RubyClass rangeError = defineClass("RangeError", standardError); defineClass("SystemExit", exceptionClass); defineClass("Fatal", exceptionClass); defineClass("Interrupt", exceptionClass); defineClass("SignalException", exceptionClass); defineClass("TypeError", standardError); defineClass("ArgumentError", standardError); defineClass("IndexError", standardError); defineClass("SyntaxError", scriptError); defineClass("LoadError", scriptError); defineClass("NotImplementedError", scriptError); defineClass("NoMethodError", nameError); defineClass("SecurityError", standardError); defineClass("NoMemoryError", exceptionClass); defineClass("RegexpError", standardError); defineClass("EOFError", ioError); defineClass("LocalJumpError", standardError); defineClass("ThreadError", standardError); defineClass("SystemStackError", exceptionClass); defineClass("ZeroDivisionError", standardError); // FIXME: Actually this somewhere defineClass("FloatDomainError", rangeError); NativeException.createClass(this, runtimeError); systemCallError = defineClass("SystemCallError", standardError); errnoModule = defineModule("Errno"); initErrnoErrors(); }
private void initCoreClasses() { ObjectMetaClass objectMetaClass = new ObjectMetaClass(this); objectMetaClass.initializeClass(); objectClass = objectMetaClass; objectClass.setConstant("Object", objectClass); RubyClass moduleClass = new ModuleMetaClass(this, objectClass); objectClass.setConstant("Module", moduleClass); RubyClass classClass = new RubyClass(this, null /* Would be Class if it could */, moduleClass, null, "Class"); objectClass.setConstant("Class", classClass); // I don't think the containment is correct here (parent cref) RubyClass metaClass = objectClass.makeMetaClass(classClass, objectMetaClass.getCRef()); metaClass = moduleClass.makeMetaClass(metaClass, objectMetaClass.getCRef()); metaClass = classClass.makeMetaClass(metaClass, objectMetaClass.getCRef()); ((ObjectMetaClass) moduleClass).initializeBootstrapClass(); kernelModule = RubyKernel.createKernelModule(this); objectClass.includeModule(kernelModule); RubyClass.createClassClass(classClass); nilClass = RubyNil.createNilClass(this); // We cannot define this constant until nil itself was made objectClass.defineConstant("NIL", getNil()); // Pre-create the core classes we know we will get referenced by starting up the runtime. RubyBoolean.createFalseClass(this); RubyBoolean.createTrueClass(this); RubyComparable.createComparable(this); RubyEnumerable.createEnumerableModule(this); stringClass = new StringMetaClass(this); stringClass.initializeClass(); new SymbolMetaClass(this).initializeClass(); RubyThreadGroup.createThreadGroupClass(this); RubyThread.createThreadClass(this); RubyException.createExceptionClass(this); RubyPrecision.createPrecisionModule(this); new NumericMetaClass(this).initializeClass(); new IntegerMetaClass(this).initializeClass(); fixnumClass = new FixnumMetaClass(this); fixnumClass.initializeClass(); new HashMetaClass(this).initializeClass(); new IOMetaClass(this).initializeClass(); new ArrayMetaClass(this).initializeClass(); Java.createJavaModule(this); RubyClass structClass = RubyStruct.createStructClass(this); tmsStruct = RubyStruct.newInstance(structClass, new IRubyObject[] { newString("Tms"), newSymbol("utime"), newSymbol("stime"), newSymbol("cutime"), newSymbol("cstime")}); RubyFloat.createFloatClass(this); new BignumMetaClass(this).initializeClass(); new BindingMetaClass(this).initializeClass(); RubyMath.createMathModule(this); // depends on all numeric types RubyRegexp.createRegexpClass(this); RubyRange.createRangeClass(this); RubyObjectSpace.createObjectSpaceModule(this); RubyGC.createGCModule(this); new ProcMetaClass(this).initializeClass(); RubyMethod.createMethodClass(this); RubyMatchData.createMatchDataClass(this); RubyMarshal.createMarshalModule(this); RubyDir.createDirClass(this); RubyFileTest.createFileTestModule(this); new FileMetaClass(this).initializeClass(); // depends on IO, FileTest RubyProcess.createProcessModule(this); new TimeMetaClass(this).initializeClass(); RubyUnboundMethod.defineUnboundMethodClass(this); RubyClass exceptionClass = getClass("Exception"); RubyClass standardError = defineClass("StandardError", exceptionClass); RubyClass runtimeError = defineClass("RuntimeError", standardError); RubyClass ioError = defineClass("IOError", standardError); RubyClass scriptError = defineClass("ScriptError", exceptionClass); RubyClass nameError = RubyNameError.createNameErrorClass(this, standardError); RubyClass rangeError = defineClass("RangeError", standardError); defineClass("SystemExit", exceptionClass); defineClass("Fatal", exceptionClass); defineClass("Interrupt", exceptionClass); defineClass("SignalException", exceptionClass); defineClass("TypeError", standardError); defineClass("ArgumentError", standardError); defineClass("IndexError", standardError); defineClass("SyntaxError", scriptError); defineClass("LoadError", scriptError); defineClass("NotImplementedError", scriptError); defineClass("NoMethodError", nameError); defineClass("SecurityError", standardError); defineClass("NoMemoryError", exceptionClass); defineClass("RegexpError", standardError); defineClass("EOFError", ioError); defineClass("LocalJumpError", standardError); defineClass("ThreadError", standardError); defineClass("SystemStackError", exceptionClass); defineClass("ZeroDivisionError", standardError); // FIXME: Actually this somewhere defineClass("FloatDomainError", rangeError); NativeException.createClass(this, runtimeError); systemCallError = defineClass("SystemCallError", standardError); errnoModule = defineModule("Errno"); initErrnoErrors(); }
3,229,371
public RaiseException newNameError(String message) { return newRaiseException(getClass("NameError"), message); }
public RaiseException newNameError(String message) { return newRaiseException(getClass("NameError"), message); }
3,229,372
public RaiseException newNoMethodError(String message) { return newRaiseException(getClass("NoMethodError"), message); }
public RaiseException newNoMethodError(String message) { return newRaiseException(getClass("NoMethodError"), message); }
3,229,373
public String toString(){ return "CategoryGroup"+(attributeId==null ? ":Hash"+this.hashCode() : ":"+attributeId); }
public String toString(){ return "CategoryGroup"+(attributeId==null ? ":Hash_"+this.hashCode() : ":Id_"+attributeId); }
3,229,375
protected void buildQuery(Session session) throws HibernateException, SQLException { PojoOptions po = new PojoOptions((Map) value(OPTIONS)); Class k = (Class) value(CLASS); if ( ! typeToAnnotationType.containsKey( k )) { throw new IllegalArgumentException( "Class "+k+" is not accepted by "+ PojosFindAnnotationsQueryDefinition.class.getName() ); } Class target = typeToAnnotationType.get((Class) value(CLASS)); String path = annotationTypeToPath.get(target); Criteria c = session.createCriteria(target); c.createCriteria(path,LEFT_JOIN); c.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY); c.add(Restrictions.in(path+".id",(Collection) value(IDS))); if (check("annotatorIds")) { Collection annotatorIds = (Collection) value("annotatorIds"); if (annotatorIds != null && annotatorIds.size() > 0) c.add(Restrictions.in("details.id", annotatorIds )); } setCriteria( c ); }
protected void buildQuery(Session session) throws HibernateException, SQLException { PojoOptions po = new PojoOptions((Map) value(OPTIONS)); Class k = (Class) value(CLASS); if ( ! typeToAnnotationType.containsKey( k )) { throw new IllegalArgumentException( "Class "+k+" is not accepted by "+ PojosFindAnnotationsQueryDefinition.class.getName() ); } Class target = typeToAnnotationType.get((Class) value(CLASS)); String path = annotationTypeToPath.get(target); Criteria ann = session.createCriteria(target); ann.createAlias("details.creationEvent", "ann_create"); ann.createAlias("details.updateEvent", "ann_update"); ann.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY); ann.add(Restrictions.in(path+".id",(Collection) value(IDS))); c.createCriteria(path,LEFT_JOIN); c.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY); c.add(Restrictions.in(path+".id",(Collection) value(IDS))); if (check("annotatorIds")) { Collection annotatorIds = (Collection) value("annotatorIds"); if (annotatorIds != null && annotatorIds.size() > 0) c.add(Restrictions.in("details.id", annotatorIds )); } setCriteria( c ); }
3,229,376
protected void buildQuery(Session session) throws HibernateException, SQLException { PojoOptions po = new PojoOptions((Map) value(OPTIONS)); Class k = (Class) value(CLASS); if ( ! typeToAnnotationType.containsKey( k )) { throw new IllegalArgumentException( "Class "+k+" is not accepted by "+ PojosFindAnnotationsQueryDefinition.class.getName() ); } Class target = typeToAnnotationType.get((Class) value(CLASS)); String path = annotationTypeToPath.get(target); Criteria c = session.createCriteria(target); c.createCriteria(path,LEFT_JOIN); c.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY); c.add(Restrictions.in(path+".id",(Collection) value(IDS))); if (check("annotatorIds")) { Collection annotatorIds = (Collection) value("annotatorIds"); if (annotatorIds != null && annotatorIds.size() > 0) c.add(Restrictions.in("details.id", annotatorIds )); } setCriteria( c ); }
protected void buildQuery(Session session) throws HibernateException, SQLException { PojoOptions po = new PojoOptions((Map) value(OPTIONS)); Class k = (Class) value(CLASS); if ( ! typeToAnnotationType.containsKey( k )) { throw new IllegalArgumentException( "Class "+k+" is not accepted by "+ PojosFindAnnotationsQueryDefinition.class.getName() ); } Class target = typeToAnnotationType.get((Class) value(CLASS)); String path = annotationTypeToPath.get(target); Criteria c = session.createCriteria(target); c.createCriteria(path,LEFT_JOIN); c.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY); c.add(Restrictions.in(path+".id",(Collection) value(IDS))); if (check("annotatorIds")) { Collection annotatorIds = (Collection) value("annotatorIds"); if (annotatorIds != null && annotatorIds.size() > 0) c.add(Restrictions.in("details.id", annotatorIds )); } setCriteria( c ); }
3,229,377
protected void buildQuery(Session session) throws HibernateException, SQLException { PojoOptions po = new PojoOptions((Map) value(OPTIONS)); Class k = (Class) value(CLASS); if ( ! typeToAnnotationType.containsKey( k )) { throw new IllegalArgumentException( "Class "+k+" is not accepted by "+ PojosFindAnnotationsQueryDefinition.class.getName() ); } Class target = typeToAnnotationType.get((Class) value(CLASS)); String path = annotationTypeToPath.get(target); Criteria c = session.createCriteria(target); c.createCriteria(path,LEFT_JOIN); c.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY); c.add(Restrictions.in(path+".id",(Collection) value(IDS))); if (check("annotatorIds")) { Collection annotatorIds = (Collection) value("annotatorIds"); if (annotatorIds != null && annotatorIds.size() > 0) c.add(Restrictions.in("details.id", annotatorIds )); } setCriteria( c ); }
protected void buildQuery(Session session) throws HibernateException, SQLException { PojoOptions po = new PojoOptions((Map) value(OPTIONS)); Class k = (Class) value(CLASS); if ( ! typeToAnnotationType.containsKey( k )) { throw new IllegalArgumentException( "Class "+k+" is not accepted by "+ PojosFindAnnotationsQueryDefinition.class.getName() ); } Class target = typeToAnnotationType.get((Class) value(CLASS)); String path = annotationTypeToPath.get(target); Criteria c = session.createCriteria(target); c.createCriteria(path,LEFT_JOIN); c.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY); c.add(Restrictions.in(path+".id",(Collection) value(IDS))); if (check("annotatorIds")) { Collection annotatorIds = (Collection) value("annotatorIds"); if (annotatorIds != null && annotatorIds.size() > 0) ann.add(Restrictions.in("details.id", annotatorIds )); } setCriteria( c ); }
3,229,378
protected void buildQuery(Session session) throws HibernateException, SQLException { PojoOptions po = new PojoOptions((Map) value(OPTIONS)); Class k = (Class) value(CLASS); if ( ! typeToAnnotationType.containsKey( k )) { throw new IllegalArgumentException( "Class "+k+" is not accepted by "+ PojosFindAnnotationsQueryDefinition.class.getName() ); } Class target = typeToAnnotationType.get((Class) value(CLASS)); String path = annotationTypeToPath.get(target); Criteria c = session.createCriteria(target); c.createCriteria(path,LEFT_JOIN); c.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY); c.add(Restrictions.in(path+".id",(Collection) value(IDS))); if (check("annotatorIds")) { Collection annotatorIds = (Collection) value("annotatorIds"); if (annotatorIds != null && annotatorIds.size() > 0) c.add(Restrictions.in("details.id", annotatorIds )); } setCriteria( c ); }
protected void buildQuery(Session session) throws HibernateException, SQLException { PojoOptions po = new PojoOptions((Map) value(OPTIONS)); Class k = (Class) value(CLASS); if ( ! typeToAnnotationType.containsKey( k )) { throw new IllegalArgumentException( "Class "+k+" is not accepted by "+ PojosFindAnnotationsQueryDefinition.class.getName() ); } Class target = typeToAnnotationType.get((Class) value(CLASS)); String path = annotationTypeToPath.get(target); Criteria c = session.createCriteria(target); c.createCriteria(path,LEFT_JOIN); c.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY); c.add(Restrictions.in(path+".id",(Collection) value(IDS))); if (check("annotatorIds")) { Collection annotatorIds = (Collection) value("annotatorIds"); if (annotatorIds != null && annotatorIds.size() > 0) c.add(Restrictions.in("details.id", annotatorIds )); } setCriteria( ann ); }
3,229,379
public void refreshTree() { switch (model.getState()) { case LOADING_DATA: case LOADING_LEAVES: case DISCARDED: throw new IllegalStateException( "This method cannot be invoked in the LOADING_DATA, "+ " LOADING_LEAVES or DISCARDED state."); } TreeImageDisplay root = view.getTreeRoot(); if (!root.isChildrenLoaded()) return; if (!model.isSelected()) { view.clearTree(); return; } if (model.getBrowserType() == IMAGES_EXPLORER) { root.removeAllChildrenDisplay(); model.setSelectedDisplay(root); loadFilteredImagesForHierarchy(); } else { RefreshVisitor visitor = new RefreshVisitor(this); accept(visitor, TreeImageDisplayVisitor.TREEIMAGE_SET_ONLY); root.removeAllChildrenDisplay(); model.setSelectedDisplay(root); if (visitor.getFoundNodes().size() == 0) loadData(); else model.loadRefreshedData(visitor.getFoundNodes()); } }
public void refreshTree() { switch (model.getState()) { case LOADING_DATA: case LOADING_LEAVES: case DISCARDED: throw new IllegalStateException( "This method cannot be invoked in the LOADING_DATA, "+ " LOADING_LEAVES or DISCARDED state."); } TreeImageDisplay root = view.getTreeRoot(); if (!root.isChildrenLoaded()) return; if (!model.isSelected()) { view.clearTree(); return; } if (model.getBrowserType() == IMAGES_EXPLORER) { root.removeAllChildrenDisplay(); model.setSelectedDisplay(root); loadFilteredImagesForHierarchy(); } else { RefreshVisitor visitor = new RefreshVisitor(this); accept(visitor, TreeImageDisplayVisitor.TREEIMAGE_SET_ONLY); root.removeAllChildrenDisplay(); model.setSelectedDisplay(root); if (visitor.getFoundNodes().size() == 0) loadData(); else model.loadRefreshedData(visitor.getFoundNodes()); } }
3,229,380
public void execute(EvaluationState state, InstructionContext ctx) { CallNode iVisited = (CallNode)ctx; state.getThreadContext().beginCallArgs(); IRubyObject receiver = null; IRubyObject[] args = null; try { receiver = state.begin(iVisited.getReceiverNode()); args = setupArgs(state, state.runtime, state.getThreadContext(), iVisited.getArgsNode()); } finally { state.getThreadContext().endCallArgs(); } assert receiver.getMetaClass() != null : receiver.getClass().getName(); // If reciever is self then we do the call the same way as vcall CallType callType = (receiver == state.getSelf() ? CallType.VARIABLE : CallType.NORMAL); state.setResult(receiver.callMethod(iVisited.getName(), args, callType)); if (iVisited.getName().equals("blah")) ; }
public void execute(EvaluationState state, InstructionContext ctx) { CallNode iVisited = (CallNode)ctx; state.getThreadContext().beginCallArgs(); IRubyObject receiver = null; IRubyObject[] args = null; try { receiver = state.begin(iVisited.getReceiverNode()); args = setupArgs(state, state.runtime, state.getThreadContext(), iVisited.getArgsNode()); } finally { state.getThreadContext().endCallArgs(); } assert receiver.getMetaClass() != null : receiver.getClass().getName(); // If reciever is self then we do the call the same way as vcall CallType callType = (receiver == state.getSelf() ? CallType.VARIABLE : CallType.NORMAL); state.setResult(receiver.callMethod(iVisited.getName(), args, callType)); }
3,229,381
public void execute(EvaluationState state, InstructionContext ctx) { ClassVarAsgnNode iVisited = (ClassVarAsgnNode)ctx; state.getThreadContext().getRubyClass().setClassVar(iVisited.getName(), state.getResult()); }
public void execute(EvaluationState state, InstructionContext ctx) { ClassVarAsgnNode iVisited = (ClassVarAsgnNode)ctx; ((RubyModule) state.getThreadContext().peekCRef().getValue()).setClassVar(iVisited.getName(), state.getResult()); }
3,229,382
FindRegExTitleAndAnnotationVisitor(HiViewer viewer, String regEx) { super(viewer, regEx); colors = Colors.getInstance(); inAnno = false; }
FindRegExTitleAndAnnotationVisitor(HiViewer viewer, Pattern pattern) { super(viewer, regEx); colors = Colors.getInstance(); inAnno = false; }
3,229,383
FindRegExTitleAndAnnotationVisitor(HiViewer viewer, String regEx) { super(viewer, regEx); colors = Colors.getInstance(); inAnno = false; }
FindRegExTitleAndAnnotationVisitor(HiViewer viewer, String regEx) { super(viewer, pattern); colors = Colors.getInstance(); inAnno = false; }
3,229,384
FindRegExVisitor(HiViewer viewer, String regEx) { super(viewer); if (regEx == null) throw new IllegalArgumentException("No regular expression."); pattern = RegExFactory.createCaseInsensitivePattern(regEx); foundNodes = new HashSet(); }
FindRegExVisitor(HiViewer viewer, Pattern pattern) { super(viewer); if (regEx == null) throw new IllegalArgumentException("No regular expression."); pattern = RegExFactory.createCaseInsensitivePattern(regEx); foundNodes = new HashSet(); }
3,229,385
FindRegExVisitor(HiViewer viewer, String regEx) { super(viewer); if (regEx == null) throw new IllegalArgumentException("No regular expression."); pattern = RegExFactory.createCaseInsensitivePattern(regEx); foundNodes = new HashSet(); }
FindRegExVisitor(HiViewer viewer, String regEx) { super(viewer); if (regEx == null) throw new IllegalArgumentException("No regular expression."); pattern = RegExFactory.createCaseInsensitivePattern(regEx); foundNodes = new HashSet(); }
3,229,386
public List childNodes() { return Collections.EMPTY_LIST; }
public List childNodes() { return EMPTY_LIST; }
3,229,387
private void initOverlayShapes() { int width = getImage().getWidth(null); int height = getImage().getHeight(null); PaintShapeGenerator generator = PaintShapeGenerator.getInstance(); if(multipleModeOn) { Shape prevShape = generator.getPrevImageShape(); Shape nextShape = generator.getNextImageShape(); AffineTransform prevXForm = AffineTransform.getTranslateInstance(5,height-prevShape.getBounds2D().getHeight()-5); AffineTransform nextXForm = AffineTransform.getTranslateInstance(width-nextShape.getBounds2D().getWidth()-5, height-nextShape.getBounds2D().getHeight()-5); this.prevImageShape = prevXForm.createTransformedShape(prevShape); this.nextImageShape = nextXForm.createTransformedShape(nextShape); } BrowserEnvironment env = BrowserEnvironment.getInstance(); IconManager manager = env.getIconManager(); openIconImage = manager.getLargeImage(IconManager.ZOOM_BAR); closeIconImage = manager.getLargeImage(IconManager.CLOSE_IMAGE); annotateIconImage = manager.getLargeImage(IconManager.ANNOTATE); int iconWidth = openIconImage.getWidth(null); int iconHeight = openIconImage.getHeight(null); openIconShape = new Rectangle2D.Double(width-iconWidth-8,64, iconWidth,iconHeight); iconWidth = closeIconImage.getWidth(null); iconHeight = closeIconImage.getHeight(null); closeIconShape = new Rectangle2D.Double(width-iconWidth-8,8, iconWidth,iconHeight); iconWidth = annotateIconImage.getWidth(null); iconHeight = annotateIconImage.getHeight(null); annotateIconShape = new Rectangle2D.Double(width-iconWidth-8,36, iconWidth,iconHeight); }
iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); private iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); void iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); initOverlayShapes() iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); { iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); int iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); width iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); = iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); getImage().getWidth(null); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); int iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); height iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); = iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); getImage().getHeight(null); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); PaintShapeGenerator iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); generator iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); = iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); PaintShapeGenerator.getInstance(); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); if(multipleModeOn) iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); { iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); Shape iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); prevShape iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); = iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); generator.getPrevImageShape(); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); Shape iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); nextShape iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); = iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); generator.getNextImageShape(); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); AffineTransform iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); prevXForm iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); = iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); AffineTransform.getTranslateInstance(5,height-prevShape.getBounds2D().getHeight()-5); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); AffineTransform iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); nextXForm iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); = iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); AffineTransform.getTranslateInstance(width-nextShape.getBounds2D().getWidth()-5, iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); height-nextShape.getBounds2D().getHeight()-5); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); this.prevImageShape iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); = iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); prevXForm.createTransformedShape(prevShape); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); this.nextImageShape iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); = iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); nextXForm.createTransformedShape(nextShape); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); } iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); BrowserEnvironment iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); env iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); = iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); BrowserEnvironment.getInstance(); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); IconManager iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); manager iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); = iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); env.getIconManager(); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); openIconImage iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); = iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); manager.getLargeImage(IconManager.ZOOM_BAR); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); closeIconImage iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); = iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); manager.getLargeImage(IconManager.CLOSE_IMAGE); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); annotateIconImage iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); = iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); manager.getLargeImage(IconManager.ANNOTATE); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); int iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); = iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); openIconImage.getWidth(null); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); int iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconHeight iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); = iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); openIconImage.getHeight(null); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); openIconShape iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); = iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); new iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); Rectangle2D.Double(width-iconWidth-8,64, iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); = iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); closeIconImage.getWidth(null); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconHeight iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); = iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); closeIconImage.getHeight(null); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); closeIconShape iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); = iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); new iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); Rectangle2D.Double(width-iconWidth-8,8, iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); = iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); annotateIconImage.getWidth(null); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconHeight iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); = iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); annotateIconImage.getHeight(null); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); annotateIconShape iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); = iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); new iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); Rectangle2D.Double(width-iconWidth-8,36, iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); }
3,229,388
public static PiccoloAction getAnnotateImageAction(final Thumbnail t, final Point point) { PiccoloAction action = new PiccoloAction() { public void execute() { BrowserEnvironment env = BrowserEnvironment.getInstance(); BrowserAgent agent = env.getBrowserAgent(); agent.annotateImage(t,point); } public void execute(PInputEvent e) { execute(); } }; return action; }
public static PiccoloAction getAnnotateImageAction(final Thumbnail t, final Point point) { PiccoloAction action = new PiccoloAction() { public void execute() { BrowserEnvironment env = BrowserEnvironment.getInstance(); BrowserAgent agent = env.getBrowserAgent(); agent.annotateImage(t,point); } public void execute(PInputEvent e) { execute(); } }; return action; }
3,229,391
public static PiccoloAction getAnnotateImageAction(final Thumbnail t, final Point point) { PiccoloAction action = new PiccoloAction() { public void execute() { BrowserEnvironment env = BrowserEnvironment.getInstance(); BrowserAgent agent = env.getBrowserAgent(); agent.annotateImage(t,point); } public void execute(PInputEvent e) { execute(); } }; return action; }
public static PiccoloAction getAnnotateImageAction(final Thumbnail t, final Point point) { PiccoloAction action = new PiccoloAction() { public void execute() { BrowserEnvironment env = BrowserEnvironment.getInstance(); BrowserAgent agent = env.getBrowserAgent(); agent.annotateImage(t); } public void execute(PInputEvent e) { execute(); } }; return action; }
3,229,392
public static JPopupMenu getThumbnailMenu(final Thumbnail t) { final JMenuItem annotateItem = new JMenuItem("Annotate"); final JPopupMenu menu = new JPopupMenu() { public void show(Component arg0, int arg1, int arg2) { super.show(arg0, arg1, arg2); Point p = arg0.getLocationOnScreen(); final Point displayPoint = new Point(p.x+arg1,p.y+arg2); System.err.println("display="+displayPoint); annotateItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { PiccoloAction action = PiccoloActionFactory.getAnnotateImageAction(t,displayPoint); action.execute(); } }); } }; JMenuItem openItem = new JMenuItem("Open"); openItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { PiccoloAction action = PiccoloActionFactory.getOpenInViewerAction(t); action.execute(); } }); menu.add(openItem); menu.addSeparator(); JMenuItem infoItem = new JMenuItem("View Info"); infoItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { PiccoloAction action = PiccoloActionFactory.getInfoFromDMAction(t); action.execute(); } }); menu.add(infoItem); menu.add(annotateItem); return menu; }
publicstaticJPopupMenugetThumbnailMenu(finalThumbnailt){finalJMenuItemannotateItem=newJMenuItem("Annotate");finalJPopupMenumenu=newJPopupMenu(){publicvoidshow(Componentarg0,intarg1,intarg2){super.show(arg0,arg1,arg2);Pointp=arg0.getLocationOnScreen();finalPointdisplayPoint=newPoint(p.x+arg1,p.y+arg2);System.err.println("display="+displayPoint);annotateItem.addActionListener(newActionListener(){publicvoidactionPerformed(ActionEvente){PiccoloActionaction=PiccoloActionFactory.getAnnotateImageAction(t,displayPoint);action.execute();}});}};JMenuItemopenItem=newJMenuItem("Open");openItem.addActionListener(newActionListener(){publicvoidactionPerformed(ActionEventarg0){PiccoloActionaction=PiccoloActionFactory.getOpenInViewerAction(t);action.execute();}});menu.add(openItem);menu.addSeparator();JMenuIteminfoItem=newJMenuItem("ViewInfo");infoItem.addActionListener(newActionListener(){publicvoidactionPerformed(ActionEvente){PiccoloActionaction=PiccoloActionFactory.getInfoFromDMAction(t);action.execute();}});menu.add(infoItem);menu.add(annotateItem);returnmenu;}
3,229,393
public static JPopupMenu getThumbnailMenu(final Thumbnail t) { final JMenuItem annotateItem = new JMenuItem("Annotate"); final JPopupMenu menu = new JPopupMenu() { public void show(Component arg0, int arg1, int arg2) { super.show(arg0, arg1, arg2); Point p = arg0.getLocationOnScreen(); final Point displayPoint = new Point(p.x+arg1,p.y+arg2); System.err.println("display="+displayPoint); annotateItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { PiccoloAction action = PiccoloActionFactory.getAnnotateImageAction(t,displayPoint); action.execute(); } }); } }; JMenuItem openItem = new JMenuItem("Open"); openItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { PiccoloAction action = PiccoloActionFactory.getOpenInViewerAction(t); action.execute(); } }); menu.add(openItem); menu.addSeparator(); JMenuItem infoItem = new JMenuItem("View Info"); infoItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { PiccoloAction action = PiccoloActionFactory.getInfoFromDMAction(t); action.execute(); } }); menu.add(infoItem); menu.add(annotateItem); return menu; }
public static JPopupMenu getThumbnailMenu(final Thumbnail t) { final JMenuItem annotateItem = new JMenuItem("Annotate"); final JPopupMenu menu = new JPopupMenu() { public void show(Component arg0, int arg1, int arg2) { super.show(arg0, arg1, arg2); Point p = arg0.getLocationOnScreen(); final Point displayPoint = new Point(p.x+arg1,p.y+arg2); annotateItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { PiccoloAction action = PiccoloActionFactory.getAnnotateImageAction(t,displayPoint); action.execute(); } }); } }; JMenuItem openItem = new JMenuItem("Open"); openItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { PiccoloAction action = PiccoloActionFactory.getOpenInViewerAction(t); action.execute(); } }); menu.add(openItem); menu.addSeparator(); JMenuItem infoItem = new JMenuItem("View Info"); infoItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { PiccoloAction action = PiccoloActionFactory.getInfoFromDMAction(t); action.execute(); } }); menu.add(infoItem); menu.add(annotateItem); return menu; }
3,229,394
private static IRubyObject evalInternal(ThreadContext context, Node node, IRubyObject self) { IRuby runtime = context.getRuntime(); bigloop: do { if (node == null) return runtime.getNil(); switch (node.nodeId) { case NodeTypes.ALIASNODE: { AliasNode iVisited = (AliasNode) node; if (context.getRubyClass() == null) { throw runtime.newTypeError("no class to make alias"); } context.getRubyClass().defineAlias(iVisited.getNewName(), iVisited.getOldName()); context.getRubyClass().callMethod(context, "method_added", runtime.newSymbol(iVisited.getNewName())); return runtime.getNil(); } case NodeTypes.ANDNODE: { BinaryOperatorNode iVisited = (BinaryOperatorNode) node; IRubyObject result = evalInternal(context, iVisited.getFirstNode(), self); if (!result.isTrue()) return result; node = iVisited.getSecondNode(); continue bigloop; } case NodeTypes.ARGSCATNODE: { ArgsCatNode iVisited = (ArgsCatNode) node; IRubyObject args = evalInternal(context, iVisited.getFirstNode(), self); IRubyObject secondArgs = splatValue(evalInternal(context, iVisited.getSecondNode(), self)); RubyArray list = args instanceof RubyArray ? (RubyArray) args : runtime.newArray(args); return list.concat(secondArgs); } // case NodeTypes.ARGSNODE: // EvaluateVisitor.argsNodeVisitor.execute(this, node); // break; // case NodeTypes.ARGUMENTNODE: // EvaluateVisitor.argumentNodeVisitor.execute(this, node); // break; case NodeTypes.ARRAYNODE: { ArrayNode iVisited = (ArrayNode) node; IRubyObject[] array = new IRubyObject[iVisited.size()]; int i = 0; for (Iterator iterator = iVisited.iterator(); iterator.hasNext();) { Node next = (Node) iterator.next(); array[i++] = evalInternal(context, next, self); } return runtime.newArray(array); } // case NodeTypes.ASSIGNABLENODE: // EvaluateVisitor.assignableNodeVisitor.execute(this, node); // break; case NodeTypes.BACKREFNODE: { BackRefNode iVisited = (BackRefNode) node; IRubyObject backref = context.getBackref(); switch (iVisited.getType()) { case '~': return backref; case '&': return RubyRegexp.last_match(backref); case '`': return RubyRegexp.match_pre(backref); case '\'': return RubyRegexp.match_post(backref); case '+': return RubyRegexp.match_last(backref); } break; } case NodeTypes.BEGINNODE: { BeginNode iVisited = (BeginNode) node; node = iVisited.getBodyNode(); continue bigloop; } case NodeTypes.BIGNUMNODE: { BignumNode iVisited = (BignumNode) node; return RubyBignum.newBignum(runtime, iVisited.getValue()); } // case NodeTypes.BINARYOPERATORNODE: // EvaluateVisitor.binaryOperatorNodeVisitor.execute(this, node); // break; // case NodeTypes.BLOCKARGNODE: // EvaluateVisitor.blockArgNodeVisitor.execute(this, node); // break; case NodeTypes.BLOCKNODE: { BlockNode iVisited = (BlockNode) node; IRubyObject result = runtime.getNil(); for (Iterator iter = iVisited.iterator(); iter.hasNext();) { result = evalInternal(context, (Node) iter.next(), self); } return result; } case NodeTypes.BLOCKPASSNODE: { BlockPassNode iVisited = (BlockPassNode) node; IRubyObject proc = evalInternal(context, iVisited.getBodyNode(), self); if (proc.isNil()) { context.setNoBlock(); try { return evalInternal(context, iVisited.getIterNode(), self); } finally { context.clearNoBlock(); } } // If not already a proc then we should try and make it one. if (!(proc instanceof RubyProc)) { proc = proc.convertToType("Proc", "to_proc", false); if (!(proc instanceof RubyProc)) { throw runtime.newTypeError("wrong argument type " + proc.getMetaClass().getName() + " (expected Proc)"); } } // TODO: Add safety check for taintedness Block block = (Block) context.getCurrentBlock(); if (block != null) { IRubyObject blockObject = block.getBlockObject(); // The current block is already associated with the proc. No need to create new // block for it. Just eval! if (blockObject != null && blockObject == proc) { try { context.setBlockAvailable(); return evalInternal(context, iVisited.getIterNode(), self); } finally { context.clearBlockAvailable(); } } } context.preBlockPassEval(((RubyProc) proc).getBlock()); try { return evalInternal(context, iVisited.getIterNode(), self); } finally { context.postBlockPassEval(); } } case NodeTypes.BREAKNODE: { BreakNode iVisited = (BreakNode) node; IRubyObject result = evalInternal(context, iVisited.getValueNode(), self); JumpException je = new JumpException(JumpException.JumpType.BreakJump); je.setPrimaryData(result); je.setSecondaryData(node); throw je; } case NodeTypes.CALLNODE: { CallNode iVisited = (CallNode) node; context.beginCallArgs(); IRubyObject receiver = null; IRubyObject[] args = null; try { receiver = evalInternal(context, iVisited.getReceiverNode(), self); args = setupArgs(context, iVisited.getArgsNode(), self); } finally { context.endCallArgs(); } assert receiver.getMetaClass() != null : receiver.getClass().getName(); // If reciever is self then we do the call the same way as vcall CallType callType = (receiver == self ? CallType.VARIABLE : CallType.NORMAL); return receiver.callMethod(context, iVisited.getName(), args, callType); } case NodeTypes.CASENODE: { CaseNode iVisited = (CaseNode) node; IRubyObject expression = null; if (iVisited.getCaseNode() != null) { expression = evalInternal(context, iVisited.getCaseNode(), self); } context.pollThreadEvents(); IRubyObject result = runtime.getNil(); Node firstWhenNode = iVisited.getFirstWhenNode(); while (firstWhenNode != null) { if (!(firstWhenNode instanceof WhenNode)) { node = firstWhenNode; continue bigloop; } WhenNode whenNode = (WhenNode) firstWhenNode; if (whenNode.getExpressionNodes() instanceof ArrayNode) { for (Iterator iter = ((ArrayNode) whenNode.getExpressionNodes()).iterator(); iter .hasNext();) { Node tag = (Node) iter.next(); context.setPosition(tag.getPosition()); if (isTrace(runtime)) { callTraceFunction(context, "line", self); } // Ruby grammar has nested whens in a case body because of // productions case_body and when_args. if (tag instanceof WhenNode) { RubyArray expressions = (RubyArray) evalInternal(context, ((WhenNode) tag) .getExpressionNodes(), self); for (int j = 0; j < expressions.getLength(); j++) { IRubyObject condition = expressions.entry(j); if ((expression != null && condition.callMethod(context, "===", expression) .isTrue()) || (expression == null && condition.isTrue())) { node = ((WhenNode) firstWhenNode).getBodyNode(); continue bigloop; } } continue; } result = evalInternal(context, tag, self); if ((expression != null && result.callMethod(context, "===", expression).isTrue()) || (expression == null && result.isTrue())) { node = whenNode.getBodyNode(); continue bigloop; } } } else { result = evalInternal(context, whenNode.getExpressionNodes(), self); if ((expression != null && result.callMethod(context, "===", expression).isTrue()) || (expression == null && result.isTrue())) { node = ((WhenNode) firstWhenNode).getBodyNode(); continue bigloop; } } context.pollThreadEvents(); firstWhenNode = whenNode.getNextCase(); } return runtime.getNil(); } case NodeTypes.CLASSNODE: { ClassNode iVisited = (ClassNode) node; Node superNode = iVisited.getSuperNode(); RubyClass superClass = superNode == null ? null : (RubyClass) evalInternal(context, superNode, self); Node classNameNode = iVisited.getCPath(); String name = ((INameNode) classNameNode).getName(); RubyModule enclosingClass = getEnclosingModule(context, classNameNode, self); RubyClass rubyClass = enclosingClass.defineOrGetClassUnder(name, superClass); if (context.getWrapper() != null) { rubyClass.extendObject(context.getWrapper()); rubyClass.includeModule(context.getWrapper()); } return evalClassDefinitionBody(context, iVisited.getScope(), iVisited.getBodyNode(), rubyClass, self); } case NodeTypes.CLASSVARASGNNODE: { ClassVarAsgnNode iVisited = (ClassVarAsgnNode) node; IRubyObject result = evalInternal(context, iVisited.getValueNode(), self); RubyModule rubyClass = (RubyModule) context.peekCRef().getValue(); if (rubyClass == null) { rubyClass = self.getMetaClass(); } else if (rubyClass.isSingleton()) { rubyClass = (RubyModule) rubyClass.getInstanceVariable("__attached__"); } rubyClass.setClassVar(iVisited.getName(), result); return result; } case NodeTypes.CLASSVARDECLNODE: { ClassVarDeclNode iVisited = (ClassVarDeclNode) node; // FIXME: shouldn't we use cref here? if (context.getRubyClass() == null) { throw runtime.newTypeError("no class/module to define class variable"); } IRubyObject result = evalInternal(context, iVisited.getValueNode(), self); ((RubyModule) context.peekCRef().getValue()).setClassVar(iVisited.getName(), result); return runtime.getNil(); } case NodeTypes.CLASSVARNODE: { ClassVarNode iVisited = (ClassVarNode) node; RubyModule rubyClass = (RubyModule) context.peekCRef().getValue(); if (rubyClass == null) { rubyClass = self.getMetaClass(); } else if (rubyClass.isSingleton()) { rubyClass = (RubyModule)rubyClass.getInstanceVariable("__attached__"); } return rubyClass.getClassVar(iVisited.getName()); } case NodeTypes.COLON2NODE: { Colon2Node iVisited = (Colon2Node) node; Node leftNode = iVisited.getLeftNode(); // TODO: Made this more colon3 friendly because of cpath production // rule in grammar (it is convenient to think of them as the same thing // at a grammar level even though evaluation is). if (leftNode == null) { return runtime.getObject().getConstantFrom(iVisited.getName()); } else { IRubyObject result = evalInternal(context, iVisited.getLeftNode(), self); if (result instanceof RubyModule) { return ((RubyModule) result).getConstantFrom(iVisited.getName()); } else { return result.callMethod(context, iVisited.getName()); } } } case NodeTypes.COLON3NODE: { Colon3Node iVisited = (Colon3Node) node; return runtime.getObject().getConstantFrom(iVisited.getName()); } case NodeTypes.CONSTDECLNODE: { ConstDeclNode iVisited = (ConstDeclNode) node; IRubyObject result = evalInternal(context, iVisited.getValueNode(), self); IRubyObject module; if (iVisited.getPathNode() != null) { module = evalInternal(context, iVisited.getPathNode(), self); } else { // FIXME: why do we check RubyClass and then use CRef? if (context.getRubyClass() == null) { // TODO: wire into new exception handling mechanism throw runtime.newTypeError("no class/module to define constant"); } module = (RubyModule) context.peekCRef().getValue(); } // FIXME: shouldn't we use the result of this set in setResult? ((RubyModule) module).setConstant(iVisited.getName(), result); return result; } case NodeTypes.CONSTNODE: { ConstNode iVisited = (ConstNode) node; return context.getConstant(iVisited.getName()); } case NodeTypes.DASGNNODE: { DAsgnNode iVisited = (DAsgnNode) node; IRubyObject result = evalInternal(context, iVisited.getValueNode(), self); // System.out.println("DSetting: " + iVisited.getName() + " at index " + iVisited.getIndex() + " and at depth " + iVisited.getDepth() + " and set " + result); context.getCurrentScope().setValue(iVisited.getIndex(), result, iVisited.getDepth()); return result; } case NodeTypes.DEFINEDNODE: { DefinedNode iVisited = (DefinedNode) node; String definition = getDefinition(context, iVisited.getExpressionNode(), self); if (definition != null) { return runtime.newString(definition); } else { return runtime.getNil(); } } case NodeTypes.DEFNNODE: { DefnNode iVisited = (DefnNode) node; RubyModule containingClass = context.getRubyClass(); if (containingClass == null) { throw runtime.newTypeError("No class to add method."); } String name = iVisited.getName(); if (containingClass == runtime.getObject() && name.equals("initialize")) { runtime.getWarnings().warn("redefining Object#initialize may cause infinite loop"); } Visibility visibility = context.getCurrentVisibility(); if (name.equals("initialize") || visibility.isModuleFunction()) { visibility = Visibility.PRIVATE; } DefaultMethod newMethod = new DefaultMethod(containingClass, iVisited.getScope(), iVisited.getBodyNode(), (ArgsNode) iVisited.getArgsNode(), visibility, context.peekCRef()); if (iVisited.getBodyNode() != null) { iVisited.getBodyNode().accept(new CreateJumpTargetVisitor(newMethod)); } containingClass.addMethod(name, newMethod); if (context.getCurrentVisibility().isModuleFunction()) { containingClass.getSingletonClass().addMethod( name, new WrapperCallable(containingClass.getSingletonClass(), newMethod, Visibility.PUBLIC)); containingClass.callMethod(context, "singleton_method_added", runtime.newSymbol(name)); } // 'class << state.self' and 'class << obj' uses defn as opposed to defs if (containingClass.isSingleton()) { ((MetaClass) containingClass).getAttachedObject().callMethod( context, "singleton_method_added", runtime.newSymbol(iVisited.getName())); } else { containingClass.callMethod(context, "method_added", runtime.newSymbol(name)); } return runtime.getNil(); } case NodeTypes.DEFSNODE: { DefsNode iVisited = (DefsNode) node; IRubyObject receiver = evalInternal(context, iVisited.getReceiverNode(), self); if (runtime.getSafeLevel() >= 4 && !receiver.isTaint()) { throw runtime.newSecurityError("Insecure; can't define singleton method."); } if (receiver.isFrozen()) { throw runtime.newFrozenError("object"); } if (!receiver.singletonMethodsAllowed()) { throw runtime.newTypeError("can't define singleton method \"" + iVisited.getName() + "\" for " + receiver.getType()); } RubyClass rubyClass = receiver.getSingletonClass(); if (runtime.getSafeLevel() >= 4) { ICallable method = (ICallable) rubyClass.getMethods().get(iVisited.getName()); if (method != null) { throw runtime.newSecurityError("Redefining method prohibited."); } } DefaultMethod newMethod = new DefaultMethod(rubyClass, iVisited.getScope(), iVisited.getBodyNode(), (ArgsNode) iVisited.getArgsNode(), Visibility.PUBLIC, context.peekCRef()); if (iVisited.getBodyNode() != null) { iVisited.getBodyNode().accept(new CreateJumpTargetVisitor(newMethod)); } rubyClass.addMethod(iVisited.getName(), newMethod); receiver.callMethod(context, "singleton_method_added", runtime.newSymbol(iVisited.getName())); return runtime.getNil(); } case NodeTypes.DOTNODE: { DotNode iVisited = (DotNode) node; return RubyRange.newRange(runtime, evalInternal(context, iVisited.getBeginNode(), self), evalInternal(context, iVisited .getEndNode(), self), iVisited.isExclusive()); } case NodeTypes.DREGEXPNODE: { DRegexpNode iVisited = (DRegexpNode) node; StringBuffer sb = new StringBuffer(); for (Iterator iterator = iVisited.iterator(); iterator.hasNext();) { Node iterNode = (Node) iterator.next(); sb.append(evalInternal(context, iterNode, self).toString()); } String lang = null; int opts = iVisited.getOptions(); if((opts & 16) != 0) { // param n lang = "n"; } else if((opts & 48) != 0) { // param s lang = "s"; } else if((opts & 64) != 0) { // param s lang = "u"; } return RubyRegexp.newRegexp(runtime, sb.toString(), iVisited.getOptions(), lang); } case NodeTypes.DSTRNODE: { DStrNode iVisited = (DStrNode) node; StringBuffer sb = new StringBuffer(); for (Iterator iterator = iVisited.iterator(); iterator.hasNext();) { Node iterNode = (Node) iterator.next(); sb.append(evalInternal(context, iterNode, self).toString()); } return runtime.newString(sb.toString()); } case NodeTypes.DSYMBOLNODE: { DSymbolNode iVisited = (DSymbolNode) node; StringBuffer sb = new StringBuffer(); for (Iterator iterator = iVisited.getNode().iterator(); iterator.hasNext();) { Node iterNode = (Node) iterator.next(); sb.append(evalInternal(context, iterNode, self).toString()); } return runtime.newSymbol(sb.toString()); } case NodeTypes.DVARNODE: { DVarNode iVisited = (DVarNode) node; // System.out.println("DGetting: " + iVisited.getName() + " at index " + iVisited.getIndex() + " and at depth " + iVisited.getDepth()); IRubyObject obj = context.getCurrentScope().getValue(iVisited.getIndex(), iVisited.getDepth()); // FIXME: null check is removable once we figure out how to assign to unset named block args return obj == null ? runtime.getNil() : obj; } case NodeTypes.DXSTRNODE: { DXStrNode iVisited = (DXStrNode) node; StringBuffer sb = new StringBuffer(); for (Iterator iterator = iVisited.iterator(); iterator.hasNext();) { Node iterNode = (Node) iterator.next(); sb.append(evalInternal(context, iterNode, self).toString()); } return self.callMethod(context, "`", runtime.newString(sb.toString())); } case NodeTypes.ENSURENODE: { EnsureNode iVisited = (EnsureNode) node; // save entering the try if there's nothing to ensure if (iVisited.getEnsureNode() != null) { IRubyObject result = runtime.getNil(); try { result = evalInternal(context, iVisited.getBodyNode(), self); } finally { evalInternal(context, iVisited.getEnsureNode(), self); } return result; } node = iVisited.getBodyNode(); continue bigloop; } case NodeTypes.EVSTRNODE: { EvStrNode iVisited = (EvStrNode) node; node = iVisited.getBody(); continue bigloop; } case NodeTypes.FALSENODE: { context.pollThreadEvents(); return runtime.getFalse(); } case NodeTypes.FCALLNODE: { FCallNode iVisited = (FCallNode) node; context.beginCallArgs(); IRubyObject[] args; try { args = setupArgs(context, iVisited.getArgsNode(), self); } finally { context.endCallArgs(); } return self.callMethod(context, iVisited.getName(), args, CallType.FUNCTIONAL); } case NodeTypes.FIXNUMNODE: { FixnumNode iVisited = (FixnumNode) node; return runtime.newFixnum(iVisited.getValue()); } case NodeTypes.FLIPNODE: { FlipNode iVisited = (FlipNode) node; IRubyObject result = runtime.getNil(); if (iVisited.isExclusive()) { if (!context.getCurrentScope().getValue(iVisited.getIndex(), iVisited.getDepth()).isTrue()) { result = evalInternal(context, iVisited.getBeginNode(), self).isTrue() ? runtime.getFalse() : runtime.getTrue(); context.getCurrentScope().setValue(iVisited.getIndex(), result, iVisited.getDepth()); return result; } else { if (evalInternal(context, iVisited.getEndNode(), self).isTrue()) { context.getCurrentScope().setValue(iVisited.getIndex(), runtime.getFalse(), iVisited.getDepth()); } return runtime.getTrue(); } } else { if (!context.getCurrentScope().getValue(iVisited.getIndex(), iVisited.getDepth()).isTrue()) { if (evalInternal(context, iVisited.getBeginNode(), self).isTrue()) { context.getCurrentScope().setValue( iVisited.getIndex(), evalInternal(context, iVisited.getEndNode(), self).isTrue() ? runtime.getFalse() : runtime.getTrue(), iVisited.getDepth()); return runtime.getTrue(); } else { return runtime.getFalse(); } } else { if (evalInternal(context, iVisited.getEndNode(), self).isTrue()) { context.getCurrentScope().setValue(iVisited.getIndex(), runtime.getFalse(), iVisited.getDepth()); } return runtime.getTrue(); } } } case NodeTypes.FLOATNODE: { FloatNode iVisited = (FloatNode) node; return RubyFloat.newFloat(runtime, iVisited.getValue()); } case NodeTypes.FORNODE: { ForNode iVisited = (ForNode) node; // For nodes do not have to create an addition scope so we just pass null context.preForLoopEval(Block.createBlock(iVisited.getVarNode(), null, iVisited.getCallable(), self)); try { while (true) { try { ISourcePosition position = context.getPosition(); context.beginCallArgs(); IRubyObject recv = null; try { recv = evalInternal(context, iVisited.getIterNode(), self); } finally { context.setPosition(position); context.endCallArgs(); } return recv.callMethod(context, "each", IRubyObject.NULL_ARRAY, CallType.NORMAL); } catch (JumpException je) { switch (je.getJumpType().getTypeId()) { case JumpType.RETRY: // do nothing, allow loop to retry break; default: throw je; } } } } catch (JumpException je) { switch (je.getJumpType().getTypeId()) { case JumpType.BREAK: IRubyObject breakValue = (IRubyObject) je.getPrimaryData(); return breakValue == null ? runtime.getNil() : breakValue; default: throw je; } } finally { context.postForLoopEval(); } } case NodeTypes.GLOBALASGNNODE: { GlobalAsgnNode iVisited = (GlobalAsgnNode) node; IRubyObject result = evalInternal(context, iVisited.getValueNode(), self); runtime.getGlobalVariables().set(iVisited.getName(), result); return result; } case NodeTypes.GLOBALVARNODE: { GlobalVarNode iVisited = (GlobalVarNode) node; return runtime.getGlobalVariables().get(iVisited.getName()); } case NodeTypes.HASHNODE: { HashNode iVisited = (HashNode) node; Map hash = null; if (iVisited.getListNode() != null) { hash = new HashMap(iVisited.getListNode().size() / 2); for (Iterator iterator = iVisited.getListNode().iterator(); iterator.hasNext();) { // insert all nodes in sequence, hash them in the final instruction // KEY IRubyObject key = evalInternal(context, (Node) iterator.next(), self); IRubyObject value = evalInternal(context, (Node) iterator.next(), self); hash.put(key, value); } } if (hash == null) { return RubyHash.newHash(runtime); } return RubyHash.newHash(runtime, hash, runtime.getNil()); } case NodeTypes.IFNODE: { IfNode iVisited = (IfNode) node; IRubyObject result = evalInternal(context, iVisited.getCondition(), self); if (result.isTrue()) { node = iVisited.getThenBody(); continue bigloop; } else { node = iVisited.getElseBody(); continue bigloop; } } case NodeTypes.INSTASGNNODE: { InstAsgnNode iVisited = (InstAsgnNode) node; IRubyObject result = evalInternal(context, iVisited.getValueNode(), self); self.setInstanceVariable(iVisited.getName(), result); return result; } case NodeTypes.INSTVARNODE: { InstVarNode iVisited = (InstVarNode) node; IRubyObject variable = self.getInstanceVariable(iVisited.getName()); return variable == null ? runtime.getNil() : variable; } // case NodeTypes.ISCOPINGNODE: // EvaluateVisitor.iScopingNodeVisitor.execute(this, node); // break; case NodeTypes.ITERNODE: { IterNode iVisited = (IterNode) node; context.preIterEval(Block.createBlock(iVisited.getVarNode(), new DynamicScope(iVisited.getScope(), context.getCurrentScope()), iVisited.getCallable(), self)); try { while (true) { try { context.setBlockAvailable(); return evalInternal(context, iVisited.getIterNode(), self); } catch (JumpException je) { switch (je.getJumpType().getTypeId()) { case JumpType.RETRY: // allow loop to retry break; default: throw je; } } finally { context.clearBlockAvailable(); } } } catch (JumpException je) { switch (je.getJumpType().getTypeId()) { case JumpType.BREAK: IRubyObject breakValue = (IRubyObject) je.getPrimaryData(); return breakValue == null ? runtime.getNil() : breakValue; default: throw je; } } finally { context.postIterEval(); } } case NodeTypes.LOCALASGNNODE: { LocalAsgnNode iVisited = (LocalAsgnNode) node; IRubyObject result = evalInternal(context, iVisited.getValueNode(), self); // System.out.println("LSetting: " + iVisited.getName() + " at index " + iVisited.getIndex() + " and at depth " + iVisited.getDepth() + " and set " + result); context.getCurrentScope().setValue(iVisited.getIndex(), result, iVisited.getDepth()); return result; } case NodeTypes.LOCALVARNODE: { LocalVarNode iVisited = (LocalVarNode) node; //System.out.println("DGetting: " + iVisited.getName() + " at index " + iVisited.getIndex() + " and at depth " + iVisited.getDepth()); IRubyObject result = context.getCurrentScope().getValue(iVisited.getIndex(), iVisited.getDepth()); return result == null ? runtime.getNil() : result; } case NodeTypes.MATCH2NODE: { Match2Node iVisited = (Match2Node) node; IRubyObject recv = evalInternal(context, iVisited.getReceiverNode(), self); IRubyObject value = evalInternal(context, iVisited.getValueNode(), self); return ((RubyRegexp) recv).match(value); } case NodeTypes.MATCH3NODE: { Match3Node iVisited = (Match3Node) node; IRubyObject recv = evalInternal(context, iVisited.getReceiverNode(), self); IRubyObject value = evalInternal(context, iVisited.getValueNode(), self); if (value instanceof RubyString) { return ((RubyRegexp) recv).match(value); } else { return value.callMethod(context, "=~", recv); } } case NodeTypes.MATCHNODE: { MatchNode iVisited = (MatchNode) node; return ((RubyRegexp) evalInternal(context, iVisited.getRegexpNode(), self)).match2(); } case NodeTypes.MODULENODE: { ModuleNode iVisited = (ModuleNode) node; Node classNameNode = iVisited.getCPath(); String name = ((INameNode) classNameNode).getName(); RubyModule enclosingModule = getEnclosingModule(context, classNameNode, self); if (enclosingModule == null) { throw runtime.newTypeError("no outer class/module"); } RubyModule module; if (enclosingModule == runtime.getObject()) { module = runtime.getOrCreateModule(name); } else { module = enclosingModule.defineModuleUnder(name); } return evalClassDefinitionBody(context, iVisited.getScope(), iVisited.getBodyNode(), module, self); } case NodeTypes.MULTIPLEASGNNODE: { MultipleAsgnNode iVisited = (MultipleAsgnNode) node; return AssignmentVisitor.assign(context, self, iVisited, evalInternal(context, iVisited.getValueNode(), self), false); } case NodeTypes.NEWLINENODE: { NewlineNode iVisited = (NewlineNode) node; // something in here is used to build up ruby stack trace... context.setPosition(iVisited.getPosition()); if (isTrace(runtime)) { callTraceFunction(context, "line", self); } // TODO: do above but not below for additional newline nodes node = iVisited.getNextNode(); continue bigloop; } case NodeTypes.NEXTNODE: { NextNode iVisited = (NextNode) node; context.pollThreadEvents(); IRubyObject result = evalInternal(context, iVisited.getValueNode(), self); // now used as an interpreter event JumpException je = new JumpException(JumpException.JumpType.NextJump); je.setPrimaryData(result); je.setSecondaryData(iVisited); //state.setCurrentException(je); throw je; } case NodeTypes.NILNODE: return runtime.getNil(); case NodeTypes.NOTNODE: { NotNode iVisited = (NotNode) node; IRubyObject result = evalInternal(context, iVisited.getConditionNode(), self); return result.isTrue() ? runtime.getFalse() : runtime.getTrue(); } case NodeTypes.NTHREFNODE: { NthRefNode iVisited = (NthRefNode) node; return RubyRegexp.nth_match(iVisited.getMatchNumber(), context.getBackref()); } case NodeTypes.OPASGNANDNODE: { BinaryOperatorNode iVisited = (BinaryOperatorNode) node; // add in reverse order IRubyObject result = evalInternal(context, iVisited.getFirstNode(), self); if (!result.isTrue()) return result; node = iVisited.getSecondNode(); continue bigloop; } case NodeTypes.OPASGNNODE: { OpAsgnNode iVisited = (OpAsgnNode) node; IRubyObject receiver = evalInternal(context, iVisited.getReceiverNode(), self); IRubyObject value = receiver.callMethod(context, iVisited.getVariableName()); if (iVisited.getOperatorName().equals("||")) { if (value.isTrue()) { return value; } value = evalInternal(context, iVisited.getValueNode(), self); } else if (iVisited.getOperatorName().equals("&&")) { if (!value.isTrue()) { return value; } value = evalInternal(context, iVisited.getValueNode(), self); } else { value = value.callMethod(context, iVisited.getOperatorName(), evalInternal(context, iVisited.getValueNode(), self)); } receiver.callMethod(context, iVisited.getVariableName() + "=", value); context.pollThreadEvents(); return value; } case NodeTypes.OPASGNORNODE: { OpAsgnOrNode iVisited = (OpAsgnOrNode) node; String def = getDefinition(context, iVisited.getFirstNode(), self); IRubyObject result = runtime.getNil(); if (def != null) { result = evalInternal(context, iVisited.getFirstNode(), self); } if (!result.isTrue()) { result = evalInternal(context, iVisited.getSecondNode(), self); } return result; } case NodeTypes.OPELEMENTASGNNODE: { OpElementAsgnNode iVisited = (OpElementAsgnNode) node; IRubyObject receiver = evalInternal(context, iVisited.getReceiverNode(), self); IRubyObject[] args = setupArgs(context, iVisited.getArgsNode(), self); IRubyObject firstValue = receiver.callMethod(context, "[]", args); if (iVisited.getOperatorName().equals("||")) { if (firstValue.isTrue()) { return firstValue; } firstValue = evalInternal(context, iVisited.getValueNode(), self); } else if (iVisited.getOperatorName().equals("&&")) { if (!firstValue.isTrue()) { return firstValue; } firstValue = evalInternal(context, iVisited.getValueNode(), self); } else { firstValue = firstValue.callMethod(context, iVisited.getOperatorName(), evalInternal(context, iVisited .getValueNode(), self)); } IRubyObject[] expandedArgs = new IRubyObject[args.length + 1]; System.arraycopy(args, 0, expandedArgs, 0, args.length); expandedArgs[expandedArgs.length - 1] = firstValue; return receiver.callMethod(context, "[]=", expandedArgs); } case NodeTypes.OPTNNODE: { OptNNode iVisited = (OptNNode) node; IRubyObject result = runtime.getNil(); while (RubyKernel.gets(runtime.getTopSelf(), IRubyObject.NULL_ARRAY).isTrue()) { loop: while (true) { // Used for the 'redo' command try { result = evalInternal(context, iVisited.getBodyNode(), self); break; } catch (JumpException je) { switch (je.getJumpType().getTypeId()) { case JumpType.REDO: // do nothing, this iteration restarts break; case JumpType.NEXT: // recheck condition break loop; case JumpType.BREAK: // end loop return (IRubyObject) je.getPrimaryData(); default: throw je; } } } } return result; } case NodeTypes.ORNODE: { OrNode iVisited = (OrNode) node; IRubyObject result = evalInternal(context, iVisited.getFirstNode(), self); if (!result.isTrue()) { result = evalInternal(context, iVisited.getSecondNode(), self); } return result; } // case NodeTypes.POSTEXENODE: // EvaluateVisitor.postExeNodeVisitor.execute(this, node); // break; case NodeTypes.REDONODE: { context.pollThreadEvents(); // now used as an interpreter event JumpException je = new JumpException(JumpException.JumpType.RedoJump); je.setSecondaryData(node); throw je; } case NodeTypes.REGEXPNODE: { RegexpNode iVisited = (RegexpNode) node; String lang = null; int opts = iVisited.getOptions(); if((opts & 16) != 0) { // param n lang = "n"; } else if((opts & 48) != 0) { // param s lang = "s"; } else if((opts & 64) != 0) { // param s lang = "u"; } try { return RubyRegexp.newRegexp(runtime, iVisited.getPattern(), lang); } catch(java.util.regex.PatternSyntaxException e) { throw runtime.newSyntaxError(e.getMessage()); } } case NodeTypes.RESCUEBODYNODE: { RescueBodyNode iVisited = (RescueBodyNode) node; node = iVisited.getBodyNode(); continue bigloop; } case NodeTypes.RESCUENODE: { RescueNode iVisited = (RescueNode)node; RescuedBlock : while (true) { try { // Execute rescue block IRubyObject result = evalInternal(context, iVisited.getBodyNode(), self); // If no exception is thrown execute else block if (iVisited.getElseNode() != null) { if (iVisited.getRescueNode() == null) { runtime.getWarnings().warn(iVisited.getElseNode().getPosition(), "else without rescue is useless"); } result = evalInternal(context, iVisited.getElseNode(), self); } return result; } catch (RaiseException raiseJump) { RubyException raisedException = raiseJump.getException(); // TODO: Rubicon TestKernel dies without this line. A cursory glance implies we // falsely set $! to nil and this sets it back to something valid. This should // get fixed at the same time we address bug #1296484. runtime.getGlobalVariables().set("$!", raisedException); RescueBodyNode rescueNode = iVisited.getRescueNode(); while (rescueNode != null) { Node exceptionNodes = rescueNode.getExceptionNodes(); ListNode exceptionNodesList; if (exceptionNodes instanceof SplatNode) { exceptionNodesList = (ListNode) evalInternal(context, exceptionNodes, self); } else { exceptionNodesList = (ListNode) exceptionNodes; } if (isRescueHandled(context, raisedException, exceptionNodesList, self)) { try { return evalInternal(context, rescueNode, self); } catch (JumpException je) { if (je.getJumpType() == JumpException.JumpType.RetryJump) { // should be handled in the finally block below //state.runtime.getGlobalVariables().set("$!", state.runtime.getNil()); //state.threadContext.setRaisedException(null); continue RescuedBlock; } else { throw je; } } } rescueNode = rescueNode.getOptRescueNode(); } // no takers; bubble up throw raiseJump; } finally { // clear exception when handled or retried runtime.getGlobalVariables().set("$!", runtime.getNil()); } } } case NodeTypes.RETRYNODE: { context.pollThreadEvents(); JumpException je = new JumpException(JumpException.JumpType.RetryJump); throw je; } case NodeTypes.RETURNNODE: { ReturnNode iVisited = (ReturnNode) node; IRubyObject result = evalInternal(context, iVisited.getValueNode(), self); JumpException je = new JumpException(JumpException.JumpType.ReturnJump); je.setPrimaryData(iVisited.getTarget()); je.setSecondaryData(result); je.setTertiaryData(iVisited); throw je; } case NodeTypes.ROOTNODE: { RootNode iVisited = (RootNode) node; DynamicScope scope = iVisited.getScope(); // Serialization killed our dynamic scope. We can just create an empty one // since serialization cannot serialize an eval (which is the only thing // which is capable of having a non-empty dynamic scope). if (scope == null) { scope = new DynamicScope(iVisited.getStaticScope(), null); } // Each root node has a top-level scope that we need to push context.preRootNode(scope); // FIXME: Wire up BEGIN and END nodes try { return eval(context, iVisited.getBodyNode(), self); } finally { context.postRootNode(); } } case NodeTypes.SCLASSNODE: { SClassNode iVisited = (SClassNode) node; IRubyObject receiver = evalInternal(context, iVisited.getReceiverNode(), self); RubyClass singletonClass; if (receiver.isNil()) { singletonClass = runtime.getNilClass(); } else if (receiver == runtime.getTrue()) { singletonClass = runtime.getClass("TrueClass"); } else if (receiver == runtime.getFalse()) { singletonClass = runtime.getClass("FalseClass"); } else { if (runtime.getSafeLevel() >= 4 && !receiver.isTaint()) { throw runtime.newSecurityError("Insecure: can't extend object."); } singletonClass = receiver.getSingletonClass(); } if (context.getWrapper() != null) { singletonClass.extendObject(context.getWrapper()); singletonClass.includeModule(context.getWrapper()); } return evalClassDefinitionBody(context, iVisited.getScope(), iVisited.getBodyNode(), singletonClass, self); } case NodeTypes.SELFNODE: return self; case NodeTypes.SPLATNODE: { SplatNode iVisited = (SplatNode) node; return splatValue(evalInternal(context, iVisited.getValue(), self)); } //// case NodeTypes.STARNODE: //// EvaluateVisitor.starNodeVisitor.execute(this, node); //// break; case NodeTypes.STRNODE: { StrNode iVisited = (StrNode) node; return runtime.newString(iVisited.getValue()); } case NodeTypes.SUPERNODE: { SuperNode iVisited = (SuperNode) node; if (context.getFrameLastClass() == null) { String name = context.getFrameLastFunc(); throw runtime.newNameError("Superclass method '" + name + "' disabled.", name); } context.beginCallArgs(); IRubyObject[] args = null; try { args = setupArgs(context, iVisited.getArgsNode(), self); } finally { context.endCallArgs(); } return context.callSuper(args); } case NodeTypes.SVALUENODE: { SValueNode iVisited = (SValueNode) node; return aValueSplat(evalInternal(context, iVisited.getValue(), self)); } case NodeTypes.SYMBOLNODE: { SymbolNode iVisited = (SymbolNode) node; return runtime.newSymbol(iVisited.getName()); } case NodeTypes.TOARYNODE: { ToAryNode iVisited = (ToAryNode) node; return aryToAry(evalInternal(context, iVisited.getValue(), self)); } case NodeTypes.TRUENODE: { context.pollThreadEvents(); return runtime.getTrue(); } case NodeTypes.UNDEFNODE: { UndefNode iVisited = (UndefNode) node; if (context.getRubyClass() == null) { throw runtime .newTypeError("No class to undef method '" + iVisited.getName() + "'."); } context.getRubyClass().undef(iVisited.getName()); return runtime.getNil(); } case NodeTypes.UNTILNODE: { UntilNode iVisited = (UntilNode) node; IRubyObject result = runtime.getNil(); while (!(result = evalInternal(context, iVisited.getConditionNode(), self)).isTrue()) { loop: while (true) { // Used for the 'redo' command try { result = evalInternal(context, iVisited.getBodyNode(), self); break loop; } catch (JumpException je) { switch (je.getJumpType().getTypeId()) { case JumpType.REDO: continue; case JumpType.NEXT: break loop; case JumpType.BREAK: return (IRubyObject) je.getPrimaryData(); default: throw je; } } } } return result; } case NodeTypes.VALIASNODE: { VAliasNode iVisited = (VAliasNode) node; runtime.getGlobalVariables().alias(iVisited.getNewName(), iVisited.getOldName()); return runtime.getNil(); } case NodeTypes.VCALLNODE: { VCallNode iVisited = (VCallNode) node; return self.callMethod(context, iVisited.getName(), IRubyObject.NULL_ARRAY, CallType.VARIABLE); } case NodeTypes.WHENNODE: assert false; return null; case NodeTypes.WHILENODE: { WhileNode iVisited = (WhileNode) node; IRubyObject result = runtime.getNil(); boolean firstTest = iVisited.evaluateAtStart(); while (!firstTest || (result = evalInternal(context, iVisited.getConditionNode(), self)).isTrue()) { firstTest = true; loop: while (true) { // Used for the 'redo' command try { evalInternal(context, iVisited.getBodyNode(), self); break loop; } catch (JumpException je) { switch (je.getJumpType().getTypeId()) { case JumpType.REDO: continue; case JumpType.NEXT: break loop; case JumpType.BREAK: return result; default: throw je; } } } } return result; } case NodeTypes.XSTRNODE: { XStrNode iVisited = (XStrNode) node; return self.callMethod(context, "`", runtime.newString(iVisited.getValue())); } case NodeTypes.YIELDNODE: { YieldNode iVisited = (YieldNode) node; IRubyObject result = evalInternal(context, iVisited.getArgsNode(), self); if (iVisited.getArgsNode() == null) { result = null; } return context.yieldCurrentBlock(result, null, null, iVisited.getCheckState()); } case NodeTypes.ZARRAYNODE: { return runtime.newArray(); } case NodeTypes.ZSUPERNODE: { if (context.getFrameLastClass() == null) { String name = context.getFrameLastFunc(); throw runtime.newNameError("superclass method '" + name + "' disabled", name); } return context.callSuper(context.getFrameArgs(), true); } } } while (true); }
private static IRubyObject evalInternal(ThreadContext context, Node node, IRubyObject self) { IRuby runtime = context.getRuntime(); bigloop: do { if (node == null) return runtime.getNil(); switch (node.nodeId) { case NodeTypes.ALIASNODE: { AliasNode iVisited = (AliasNode) node; if (context.getRubyClass() == null) { throw runtime.newTypeError("no class to make alias"); } context.getRubyClass().defineAlias(iVisited.getNewName(), iVisited.getOldName()); context.getRubyClass().callMethod(context, "method_added", runtime.newSymbol(iVisited.getNewName())); return runtime.getNil(); } case NodeTypes.ANDNODE: { BinaryOperatorNode iVisited = (BinaryOperatorNode) node; IRubyObject result = evalInternal(context, iVisited.getFirstNode(), self); if (!result.isTrue()) return result; node = iVisited.getSecondNode(); continue bigloop; } case NodeTypes.ARGSCATNODE: { ArgsCatNode iVisited = (ArgsCatNode) node; IRubyObject args = evalInternal(context, iVisited.getFirstNode(), self); IRubyObject secondArgs = splatValue(evalInternal(context, iVisited.getSecondNode(), self)); RubyArray list = args instanceof RubyArray ? (RubyArray) args : runtime.newArray(args); return list.concat(secondArgs); } // case NodeTypes.ARGSNODE: // EvaluateVisitor.argsNodeVisitor.execute(this, node); // break; // case NodeTypes.ARGUMENTNODE: // EvaluateVisitor.argumentNodeVisitor.execute(this, node); // break; case NodeTypes.ARRAYNODE: { ArrayNode iVisited = (ArrayNode) node; IRubyObject[] array = new IRubyObject[iVisited.size()]; int i = 0; for (Iterator iterator = iVisited.iterator(); iterator.hasNext();) { Node next = (Node) iterator.next(); array[i++] = evalInternal(context, next, self); } return runtime.newArray(array); } // case NodeTypes.ASSIGNABLENODE: // EvaluateVisitor.assignableNodeVisitor.execute(this, node); // break; case NodeTypes.BACKREFNODE: { BackRefNode iVisited = (BackRefNode) node; IRubyObject backref = context.getBackref(); switch (iVisited.getType()) { case '~': return backref; case '&': return RubyRegexp.last_match(backref); case '`': return RubyRegexp.match_pre(backref); case '\'': return RubyRegexp.match_post(backref); case '+': return RubyRegexp.match_last(backref); } break; } case NodeTypes.BEGINNODE: { BeginNode iVisited = (BeginNode) node; node = iVisited.getBodyNode(); continue bigloop; } case NodeTypes.BIGNUMNODE: { BignumNode iVisited = (BignumNode) node; return RubyBignum.newBignum(runtime, iVisited.getValue()); } // case NodeTypes.BINARYOPERATORNODE: // EvaluateVisitor.binaryOperatorNodeVisitor.execute(this, node); // break; // case NodeTypes.BLOCKARGNODE: // EvaluateVisitor.blockArgNodeVisitor.execute(this, node); // break; case NodeTypes.BLOCKNODE: { BlockNode iVisited = (BlockNode) node; IRubyObject result = runtime.getNil(); for (Iterator iter = iVisited.iterator(); iter.hasNext();) { result = evalInternal(context, (Node) iter.next(), self); } return result; } case NodeTypes.BLOCKPASSNODE: { BlockPassNode iVisited = (BlockPassNode) node; IRubyObject proc = evalInternal(context, iVisited.getBodyNode(), self); if (proc.isNil()) { context.setNoBlock(); try { return evalInternal(context, iVisited.getIterNode(), self); } finally { context.clearNoBlock(); } } // If not already a proc then we should try and make it one. if (!(proc instanceof RubyProc)) { proc = proc.convertToType("Proc", "to_proc", false); if (!(proc instanceof RubyProc)) { throw runtime.newTypeError("wrong argument type " + proc.getMetaClass().getName() + " (expected Proc)"); } } // TODO: Add safety check for taintedness Block block = (Block) context.getCurrentBlock(); if (block != null) { IRubyObject blockObject = block.getBlockObject(); // The current block is already associated with the proc. No need to create new // block for it. Just eval! if (blockObject != null && blockObject == proc) { try { context.setBlockAvailable(); return evalInternal(context, iVisited.getIterNode(), self); } finally { context.clearBlockAvailable(); } } } context.preBlockPassEval(((RubyProc) proc).getBlock()); try { return evalInternal(context, iVisited.getIterNode(), self); } finally { context.postBlockPassEval(); } } case NodeTypes.BREAKNODE: { BreakNode iVisited = (BreakNode) node; IRubyObject result = evalInternal(context, iVisited.getValueNode(), self); JumpException je = new JumpException(JumpException.JumpType.BreakJump); je.setPrimaryData(result); je.setSecondaryData(node); throw je; } case NodeTypes.CALLNODE: { CallNode iVisited = (CallNode) node; context.beginCallArgs(); IRubyObject receiver = null; IRubyObject[] args = null; try { receiver = evalInternal(context, iVisited.getReceiverNode(), self); args = setupArgs(context, iVisited.getArgsNode(), self); } finally { context.endCallArgs(); } assert receiver.getMetaClass() != null : receiver.getClass().getName(); // If reciever is self then we do the call the same way as vcall CallType callType = (receiver == self ? CallType.VARIABLE : CallType.NORMAL); return receiver.callMethod(context, iVisited.getName(), args, callType); } case NodeTypes.CASENODE: { CaseNode iVisited = (CaseNode) node; IRubyObject expression = null; if (iVisited.getCaseNode() != null) { expression = evalInternal(context, iVisited.getCaseNode(), self); } context.pollThreadEvents(); IRubyObject result = runtime.getNil(); Node firstWhenNode = iVisited.getFirstWhenNode(); while (firstWhenNode != null) { if (!(firstWhenNode instanceof WhenNode)) { node = firstWhenNode; continue bigloop; } WhenNode whenNode = (WhenNode) firstWhenNode; if (whenNode.getExpressionNodes() instanceof ArrayNode) { for (Iterator iter = ((ArrayNode) whenNode.getExpressionNodes()).iterator(); iter .hasNext();) { Node tag = (Node) iter.next(); context.setPosition(tag.getPosition()); if (isTrace(runtime)) { callTraceFunction(context, "line", self); } // Ruby grammar has nested whens in a case body because of // productions case_body and when_args. if (tag instanceof WhenNode) { RubyArray expressions = (RubyArray) evalInternal(context, ((WhenNode) tag) .getExpressionNodes(), self); for (int j = 0; j < expressions.getLength(); j++) { IRubyObject condition = expressions.entry(j); if ((expression != null && condition.callMethod(context, "===", expression) .isTrue()) || (expression == null && condition.isTrue())) { node = ((WhenNode) firstWhenNode).getBodyNode(); continue bigloop; } } continue; } result = evalInternal(context, tag, self); if ((expression != null && result.callMethod(context, "===", expression).isTrue()) || (expression == null && result.isTrue())) { node = whenNode.getBodyNode(); continue bigloop; } } } else { result = evalInternal(context, whenNode.getExpressionNodes(), self); if ((expression != null && result.callMethod(context, "===", expression).isTrue()) || (expression == null && result.isTrue())) { node = ((WhenNode) firstWhenNode).getBodyNode(); continue bigloop; } } context.pollThreadEvents(); firstWhenNode = whenNode.getNextCase(); } return runtime.getNil(); } case NodeTypes.CLASSNODE: { ClassNode iVisited = (ClassNode) node; Node superNode = iVisited.getSuperNode(); RubyClass superClass = superNode == null ? null : (RubyClass) evalInternal(context, superNode, self); Node classNameNode = iVisited.getCPath(); String name = ((INameNode) classNameNode).getName(); RubyModule enclosingClass = getEnclosingModule(context, classNameNode, self); RubyClass rubyClass = enclosingClass.defineOrGetClassUnder(name, superClass); if (context.getWrapper() != null) { rubyClass.extendObject(context.getWrapper()); rubyClass.includeModule(context.getWrapper()); } return evalClassDefinitionBody(context, iVisited.getScope(), iVisited.getBodyNode(), rubyClass, self); } case NodeTypes.CLASSVARASGNNODE: { ClassVarAsgnNode iVisited = (ClassVarAsgnNode) node; IRubyObject result = evalInternal(context, iVisited.getValueNode(), self); RubyModule rubyClass = (RubyModule) context.peekCRef().getValue(); if (rubyClass == null) { rubyClass = self.getMetaClass(); } else if (rubyClass.isSingleton()) { rubyClass = (RubyModule) rubyClass.getInstanceVariable("__attached__"); } rubyClass.setClassVar(iVisited.getName(), result); return result; } case NodeTypes.CLASSVARDECLNODE: { ClassVarDeclNode iVisited = (ClassVarDeclNode) node; // FIXME: shouldn't we use cref here? if (context.getRubyClass() == null) { throw runtime.newTypeError("no class/module to define class variable"); } IRubyObject result = evalInternal(context, iVisited.getValueNode(), self); ((RubyModule) context.peekCRef().getValue()).setClassVar(iVisited.getName(), result); return runtime.getNil(); } case NodeTypes.CLASSVARNODE: { ClassVarNode iVisited = (ClassVarNode) node; RubyModule rubyClass = (RubyModule) context.peekCRef().getValue(); if (rubyClass == null) { rubyClass = self.getMetaClass(); } else if (rubyClass.isSingleton()) { rubyClass = (RubyModule)rubyClass.getInstanceVariable("__attached__"); } return rubyClass.getClassVar(iVisited.getName()); } case NodeTypes.COLON2NODE: { Colon2Node iVisited = (Colon2Node) node; Node leftNode = iVisited.getLeftNode(); // TODO: Made this more colon3 friendly because of cpath production // rule in grammar (it is convenient to think of them as the same thing // at a grammar level even though evaluation is). if (leftNode == null) { return runtime.getObject().getConstantFrom(iVisited.getName()); } else { IRubyObject result = evalInternal(context, iVisited.getLeftNode(), self); if (result instanceof RubyModule) { return ((RubyModule) result).getConstantFrom(iVisited.getName()); } else { return result.callMethod(context, iVisited.getName()); } } } case NodeTypes.COLON3NODE: { Colon3Node iVisited = (Colon3Node) node; return runtime.getObject().getConstantFrom(iVisited.getName()); } case NodeTypes.CONSTDECLNODE: { ConstDeclNode iVisited = (ConstDeclNode) node; IRubyObject result = evalInternal(context, iVisited.getValueNode(), self); IRubyObject module; if (iVisited.getPathNode() != null) { module = evalInternal(context, iVisited.getPathNode(), self); } else { // FIXME: why do we check RubyClass and then use CRef? if (context.getRubyClass() == null) { // TODO: wire into new exception handling mechanism throw runtime.newTypeError("no class/module to define constant"); } module = (RubyModule) context.peekCRef().getValue(); } // FIXME: shouldn't we use the result of this set in setResult? ((RubyModule) module).setConstant(iVisited.getName(), result); return result; } case NodeTypes.CONSTNODE: { ConstNode iVisited = (ConstNode) node; return context.getConstant(iVisited.getName()); } case NodeTypes.DASGNNODE: { DAsgnNode iVisited = (DAsgnNode) node; IRubyObject result = evalInternal(context, iVisited.getValueNode(), self); // System.out.println("DSetting: " + iVisited.getName() + " at index " + iVisited.getIndex() + " and at depth " + iVisited.getDepth() + " and set " + result); context.getCurrentScope().setValue(iVisited.getIndex(), result, iVisited.getDepth()); return result; } case NodeTypes.DEFINEDNODE: { DefinedNode iVisited = (DefinedNode) node; String definition = getDefinition(context, iVisited.getExpressionNode(), self); if (definition != null) { return runtime.newString(definition); } else { return runtime.getNil(); } } case NodeTypes.DEFNNODE: { DefnNode iVisited = (DefnNode) node; RubyModule containingClass = context.getRubyClass(); if (containingClass == null) { throw runtime.newTypeError("No class to add method."); } String name = iVisited.getName(); if (containingClass == runtime.getObject() && name.equals("initialize")) { runtime.getWarnings().warn("redefining Object#initialize may cause infinite loop"); } Visibility visibility = context.getCurrentVisibility(); if (name.equals("initialize") || visibility.isModuleFunction()) { visibility = Visibility.PRIVATE; } DefaultMethod newMethod = new DefaultMethod(containingClass, iVisited.getScope(), iVisited.getBodyNode(), (ArgsNode) iVisited.getArgsNode(), visibility, context.peekCRef()); if (iVisited.getBodyNode() != null) { iVisited.getBodyNode().accept(new CreateJumpTargetVisitor(newMethod)); } containingClass.addMethod(name, newMethod); if (context.getCurrentVisibility().isModuleFunction()) { containingClass.getSingletonClass().addMethod( name, new WrapperCallable(containingClass.getSingletonClass(), newMethod, Visibility.PUBLIC)); containingClass.callMethod(context, "singleton_method_added", runtime.newSymbol(name)); } // 'class << state.self' and 'class << obj' uses defn as opposed to defs if (containingClass.isSingleton()) { ((MetaClass) containingClass).getAttachedObject().callMethod( context, "singleton_method_added", runtime.newSymbol(iVisited.getName())); } else { containingClass.callMethod(context, "method_added", runtime.newSymbol(name)); } return runtime.getNil(); } case NodeTypes.DEFSNODE: { DefsNode iVisited = (DefsNode) node; IRubyObject receiver = evalInternal(context, iVisited.getReceiverNode(), self); if (runtime.getSafeLevel() >= 4 && !receiver.isTaint()) { throw runtime.newSecurityError("Insecure; can't define singleton method."); } if (receiver.isFrozen()) { throw runtime.newFrozenError("object"); } if (!receiver.singletonMethodsAllowed()) { throw runtime.newTypeError("can't define singleton method \"" + iVisited.getName() + "\" for " + receiver.getType()); } RubyClass rubyClass = receiver.getSingletonClass(); if (runtime.getSafeLevel() >= 4) { ICallable method = (ICallable) rubyClass.getMethods().get(iVisited.getName()); if (method != null) { throw runtime.newSecurityError("Redefining method prohibited."); } } DefaultMethod newMethod = new DefaultMethod(rubyClass, iVisited.getScope(), iVisited.getBodyNode(), (ArgsNode) iVisited.getArgsNode(), Visibility.PUBLIC, context.peekCRef()); if (iVisited.getBodyNode() != null) { iVisited.getBodyNode().accept(new CreateJumpTargetVisitor(newMethod)); } rubyClass.addMethod(iVisited.getName(), newMethod); receiver.callMethod(context, "singleton_method_added", runtime.newSymbol(iVisited.getName())); return runtime.getNil(); } case NodeTypes.DOTNODE: { DotNode iVisited = (DotNode) node; return RubyRange.newRange(runtime, evalInternal(context, iVisited.getBeginNode(), self), evalInternal(context, iVisited .getEndNode(), self), iVisited.isExclusive()); } case NodeTypes.DREGEXPNODE: { DRegexpNode iVisited = (DRegexpNode) node; StringBuffer sb = new StringBuffer(); for (Iterator iterator = iVisited.iterator(); iterator.hasNext();) { Node iterNode = (Node) iterator.next(); sb.append(evalInternal(context, iterNode, self).toString()); } String lang = null; int opts = iVisited.getOptions(); if((opts & 16) != 0) { // param n lang = "n"; } else if((opts & 48) != 0) { // param s lang = "s"; } else if((opts & 64) != 0) { // param s lang = "u"; } return RubyRegexp.newRegexp(runtime, sb.toString(), iVisited.getOptions(), lang); } case NodeTypes.DSTRNODE: { DStrNode iVisited = (DStrNode) node; StringBuffer sb = new StringBuffer(); for (Iterator iterator = iVisited.iterator(); iterator.hasNext();) { Node iterNode = (Node) iterator.next(); sb.append(evalInternal(context, iterNode, self).toString()); } return runtime.newString(sb.toString()); } case NodeTypes.DSYMBOLNODE: { DSymbolNode iVisited = (DSymbolNode) node; StringBuffer sb = new StringBuffer(); for (Iterator iterator = iVisited.getNode().iterator(); iterator.hasNext();) { Node iterNode = (Node) iterator.next(); sb.append(evalInternal(context, iterNode, self).toString()); } return runtime.newSymbol(sb.toString()); } case NodeTypes.DVARNODE: { DVarNode iVisited = (DVarNode) node; // System.out.println("DGetting: " + iVisited.getName() + " at index " + iVisited.getIndex() + " and at depth " + iVisited.getDepth()); IRubyObject obj = context.getCurrentScope().getValue(iVisited.getIndex(), iVisited.getDepth()); // FIXME: null check is removable once we figure out how to assign to unset named block args return obj == null ? runtime.getNil() : obj; } case NodeTypes.DXSTRNODE: { DXStrNode iVisited = (DXStrNode) node; StringBuffer sb = new StringBuffer(); for (Iterator iterator = iVisited.iterator(); iterator.hasNext();) { Node iterNode = (Node) iterator.next(); sb.append(evalInternal(context, iterNode, self).toString()); } return self.callMethod(context, "`", runtime.newString(sb.toString())); } case NodeTypes.ENSURENODE: { EnsureNode iVisited = (EnsureNode) node; // save entering the try if there's nothing to ensure if (iVisited.getEnsureNode() != null) { IRubyObject result = runtime.getNil(); try { result = evalInternal(context, iVisited.getBodyNode(), self); } finally { evalInternal(context, iVisited.getEnsureNode(), self); } return result; } node = iVisited.getBodyNode(); continue bigloop; } case NodeTypes.EVSTRNODE: { EvStrNode iVisited = (EvStrNode) node; node = iVisited.getBody(); continue bigloop; } case NodeTypes.FALSENODE: { context.pollThreadEvents(); return runtime.getFalse(); } case NodeTypes.FCALLNODE: { FCallNode iVisited = (FCallNode) node; context.beginCallArgs(); IRubyObject[] args; try { args = setupArgs(context, iVisited.getArgsNode(), self); } finally { context.endCallArgs(); } return self.callMethod(context, iVisited.getName(), args, CallType.FUNCTIONAL); } case NodeTypes.FIXNUMNODE: { FixnumNode iVisited = (FixnumNode) node; return runtime.newFixnum(iVisited.getValue()); } case NodeTypes.FLIPNODE: { FlipNode iVisited = (FlipNode) node; IRubyObject result = runtime.getNil(); if (iVisited.isExclusive()) { if (!context.getCurrentScope().getValue(iVisited.getIndex(), iVisited.getDepth()).isTrue()) { result = evalInternal(context, iVisited.getBeginNode(), self).isTrue() ? runtime.getFalse() : runtime.getTrue(); context.getCurrentScope().setValue(iVisited.getIndex(), result, iVisited.getDepth()); return result; } else { if (evalInternal(context, iVisited.getEndNode(), self).isTrue()) { context.getCurrentScope().setValue(iVisited.getIndex(), runtime.getFalse(), iVisited.getDepth()); } return runtime.getTrue(); } } else { if (!context.getCurrentScope().getValue(iVisited.getIndex(), iVisited.getDepth()).isTrue()) { if (evalInternal(context, iVisited.getBeginNode(), self).isTrue()) { context.getCurrentScope().setValue( iVisited.getIndex(), evalInternal(context, iVisited.getEndNode(), self).isTrue() ? runtime.getFalse() : runtime.getTrue(), iVisited.getDepth()); return runtime.getTrue(); } else { return runtime.getFalse(); } } else { if (evalInternal(context, iVisited.getEndNode(), self).isTrue()) { context.getCurrentScope().setValue(iVisited.getIndex(), runtime.getFalse(), iVisited.getDepth()); } return runtime.getTrue(); } } } case NodeTypes.FLOATNODE: { FloatNode iVisited = (FloatNode) node; return RubyFloat.newFloat(runtime, iVisited.getValue()); } case NodeTypes.FORNODE: { ForNode iVisited = (ForNode) node; // For nodes do not have to create an addition scope so we just pass null context.preForLoopEval(Block.createBlock(iVisited.getVarNode(), null, iVisited.getCallable(), self)); try { while (true) { try { ISourcePosition position = context.getPosition(); context.beginCallArgs(); IRubyObject recv = null; try { recv = evalInternal(context, iVisited.getIterNode(), self); } finally { context.setPosition(position); context.endCallArgs(); } return recv.callMethod(context, "each", IRubyObject.NULL_ARRAY, CallType.NORMAL); } catch (JumpException je) { switch (je.getJumpType().getTypeId()) { case JumpType.RETRY: // do nothing, allow loop to retry break; default: throw je; } } } } catch (JumpException je) { switch (je.getJumpType().getTypeId()) { case JumpType.BREAK: IRubyObject breakValue = (IRubyObject) je.getPrimaryData(); return breakValue == null ? runtime.getNil() : breakValue; default: throw je; } } finally { context.postForLoopEval(); } } case NodeTypes.GLOBALASGNNODE: { GlobalAsgnNode iVisited = (GlobalAsgnNode) node; IRubyObject result = evalInternal(context, iVisited.getValueNode(), self); runtime.getGlobalVariables().set(iVisited.getName(), result); return result; } case NodeTypes.GLOBALVARNODE: { GlobalVarNode iVisited = (GlobalVarNode) node; return runtime.getGlobalVariables().get(iVisited.getName()); } case NodeTypes.HASHNODE: { HashNode iVisited = (HashNode) node; Map hash = null; if (iVisited.getListNode() != null) { hash = new HashMap(iVisited.getListNode().size() / 2); for (Iterator iterator = iVisited.getListNode().iterator(); iterator.hasNext();) { // insert all nodes in sequence, hash them in the final instruction // KEY IRubyObject key = evalInternal(context, (Node) iterator.next(), self); IRubyObject value = evalInternal(context, (Node) iterator.next(), self); hash.put(key, value); } } if (hash == null) { return RubyHash.newHash(runtime); } return RubyHash.newHash(runtime, hash, runtime.getNil()); } case NodeTypes.IFNODE: { IfNode iVisited = (IfNode) node; IRubyObject result = evalInternal(context, iVisited.getCondition(), self); if (result.isTrue()) { node = iVisited.getThenBody(); continue bigloop; } else { node = iVisited.getElseBody(); continue bigloop; } } case NodeTypes.INSTASGNNODE: { InstAsgnNode iVisited = (InstAsgnNode) node; IRubyObject result = evalInternal(context, iVisited.getValueNode(), self); self.setInstanceVariable(iVisited.getName(), result); return result; } case NodeTypes.INSTVARNODE: { InstVarNode iVisited = (InstVarNode) node; IRubyObject variable = self.getInstanceVariable(iVisited.getName()); return variable == null ? runtime.getNil() : variable; } // case NodeTypes.ISCOPINGNODE: // EvaluateVisitor.iScopingNodeVisitor.execute(this, node); // break; case NodeTypes.ITERNODE: { IterNode iVisited = (IterNode) node; context.preIterEval(Block.createBlock(iVisited.getVarNode(), new DynamicScope(iVisited.getScope(), context.getCurrentScope()), iVisited.getCallable(), self)); try { while (true) { try { context.setBlockAvailable(); return evalInternal(context, iVisited.getIterNode(), self); } catch (JumpException je) { switch (je.getJumpType().getTypeId()) { case JumpType.RETRY: // allow loop to retry break; default: throw je; } } finally { context.clearBlockAvailable(); } } } catch (JumpException je) { switch (je.getJumpType().getTypeId()) { case JumpType.BREAK: IRubyObject breakValue = (IRubyObject) je.getPrimaryData(); return breakValue == null ? runtime.getNil() : breakValue; default: throw je; } } finally { context.postIterEval(); } } case NodeTypes.LOCALASGNNODE: { LocalAsgnNode iVisited = (LocalAsgnNode) node; IRubyObject result = evalInternal(context, iVisited.getValueNode(), self); // System.out.println("LSetting: " + iVisited.getName() + " at index " + iVisited.getIndex() + " and at depth " + iVisited.getDepth() + " and set " + result); context.getCurrentScope().setValue(iVisited.getIndex(), result, iVisited.getDepth()); return result; } case NodeTypes.LOCALVARNODE: { LocalVarNode iVisited = (LocalVarNode) node; //System.out.println("DGetting: " + iVisited.getName() + " at index " + iVisited.getIndex() + " and at depth " + iVisited.getDepth()); IRubyObject result = context.getCurrentScope().getValue(iVisited.getIndex(), iVisited.getDepth()); return result == null ? runtime.getNil() : result; } case NodeTypes.MATCH2NODE: { Match2Node iVisited = (Match2Node) node; IRubyObject recv = evalInternal(context, iVisited.getReceiverNode(), self); IRubyObject value = evalInternal(context, iVisited.getValueNode(), self); return ((RubyRegexp) recv).match(value); } case NodeTypes.MATCH3NODE: { Match3Node iVisited = (Match3Node) node; IRubyObject recv = evalInternal(context, iVisited.getReceiverNode(), self); IRubyObject value = evalInternal(context, iVisited.getValueNode(), self); if (value instanceof RubyString) { return ((RubyRegexp) recv).match(value); } else { return value.callMethod(context, "=~", recv); } } case NodeTypes.MATCHNODE: { MatchNode iVisited = (MatchNode) node; return ((RubyRegexp) evalInternal(context, iVisited.getRegexpNode(), self)).match2(); } case NodeTypes.MODULENODE: { ModuleNode iVisited = (ModuleNode) node; Node classNameNode = iVisited.getCPath(); String name = ((INameNode) classNameNode).getName(); RubyModule enclosingModule = getEnclosingModule(context, classNameNode, self); if (enclosingModule == null) { throw runtime.newTypeError("no outer class/module"); } RubyModule module; if (enclosingModule == runtime.getObject()) { module = runtime.getOrCreateModule(name); } else { module = enclosingModule.defineModuleUnder(name); } return evalClassDefinitionBody(context, iVisited.getScope(), iVisited.getBodyNode(), module, self); } case NodeTypes.MULTIPLEASGNNODE: { MultipleAsgnNode iVisited = (MultipleAsgnNode) node; return AssignmentVisitor.assign(context, self, iVisited, evalInternal(context, iVisited.getValueNode(), self), false); } case NodeTypes.NEWLINENODE: { NewlineNode iVisited = (NewlineNode) node; // something in here is used to build up ruby stack trace... context.setPosition(iVisited.getPosition()); if (isTrace(runtime)) { callTraceFunction(context, "line", self); } // TODO: do above but not below for additional newline nodes node = iVisited.getNextNode(); continue bigloop; } case NodeTypes.NEXTNODE: { NextNode iVisited = (NextNode) node; context.pollThreadEvents(); IRubyObject result = evalInternal(context, iVisited.getValueNode(), self); // now used as an interpreter event JumpException je = new JumpException(JumpException.JumpType.NextJump); je.setPrimaryData(result); je.setSecondaryData(iVisited); //state.setCurrentException(je); throw je; } case NodeTypes.NILNODE: return runtime.getNil(); case NodeTypes.NOTNODE: { NotNode iVisited = (NotNode) node; IRubyObject result = evalInternal(context, iVisited.getConditionNode(), self); return result.isTrue() ? runtime.getFalse() : runtime.getTrue(); } case NodeTypes.NTHREFNODE: { NthRefNode iVisited = (NthRefNode) node; return RubyRegexp.nth_match(iVisited.getMatchNumber(), context.getBackref()); } case NodeTypes.OPASGNANDNODE: { BinaryOperatorNode iVisited = (BinaryOperatorNode) node; // add in reverse order IRubyObject result = evalInternal(context, iVisited.getFirstNode(), self); if (!result.isTrue()) return result; node = iVisited.getSecondNode(); continue bigloop; } case NodeTypes.OPASGNNODE: { OpAsgnNode iVisited = (OpAsgnNode) node; IRubyObject receiver = evalInternal(context, iVisited.getReceiverNode(), self); IRubyObject value = receiver.callMethod(context, iVisited.getVariableName()); if (iVisited.getOperatorName().equals("||")) { if (value.isTrue()) { return value; } value = evalInternal(context, iVisited.getValueNode(), self); } else if (iVisited.getOperatorName().equals("&&")) { if (!value.isTrue()) { return value; } value = evalInternal(context, iVisited.getValueNode(), self); } else { value = value.callMethod(context, iVisited.getOperatorName(), evalInternal(context, iVisited.getValueNode(), self)); } receiver.callMethod(context, iVisited.getVariableName() + "=", value); context.pollThreadEvents(); return value; } case NodeTypes.OPASGNORNODE: { OpAsgnOrNode iVisited = (OpAsgnOrNode) node; String def = getDefinition(context, iVisited.getFirstNode(), self); IRubyObject result = runtime.getNil(); if (def != null) { result = evalInternal(context, iVisited.getFirstNode(), self); } if (!result.isTrue()) { result = evalInternal(context, iVisited.getSecondNode(), self); } return result; } case NodeTypes.OPELEMENTASGNNODE: { OpElementAsgnNode iVisited = (OpElementAsgnNode) node; IRubyObject receiver = evalInternal(context, iVisited.getReceiverNode(), self); IRubyObject[] args = setupArgs(context, iVisited.getArgsNode(), self); IRubyObject firstValue = receiver.callMethod(context, "[]", args); if (iVisited.getOperatorName().equals("||")) { if (firstValue.isTrue()) { return firstValue; } firstValue = evalInternal(context, iVisited.getValueNode(), self); } else if (iVisited.getOperatorName().equals("&&")) { if (!firstValue.isTrue()) { return firstValue; } firstValue = evalInternal(context, iVisited.getValueNode(), self); } else { firstValue = firstValue.callMethod(context, iVisited.getOperatorName(), evalInternal(context, iVisited .getValueNode(), self)); } IRubyObject[] expandedArgs = new IRubyObject[args.length + 1]; System.arraycopy(args, 0, expandedArgs, 0, args.length); expandedArgs[expandedArgs.length - 1] = firstValue; return receiver.callMethod(context, "[]=", expandedArgs); } case NodeTypes.OPTNNODE: { OptNNode iVisited = (OptNNode) node; IRubyObject result = runtime.getNil(); while (RubyKernel.gets(runtime.getTopSelf(), IRubyObject.NULL_ARRAY).isTrue()) { loop: while (true) { // Used for the 'redo' command try { result = evalInternal(context, iVisited.getBodyNode(), self); break; } catch (JumpException je) { switch (je.getJumpType().getTypeId()) { case JumpType.REDO: // do nothing, this iteration restarts break; case JumpType.NEXT: // recheck condition break loop; case JumpType.BREAK: // end loop return (IRubyObject) je.getPrimaryData(); default: throw je; } } } } return result; } case NodeTypes.ORNODE: { OrNode iVisited = (OrNode) node; IRubyObject result = evalInternal(context, iVisited.getFirstNode(), self); if (!result.isTrue()) { result = evalInternal(context, iVisited.getSecondNode(), self); } return result; } // case NodeTypes.POSTEXENODE: // EvaluateVisitor.postExeNodeVisitor.execute(this, node); // break; case NodeTypes.REDONODE: { context.pollThreadEvents(); // now used as an interpreter event JumpException je = new JumpException(JumpException.JumpType.RedoJump); je.setSecondaryData(node); throw je; } case NodeTypes.REGEXPNODE: { RegexpNode iVisited = (RegexpNode) node; String lang = null; int opts = iVisited.getOptions(); if((opts & 16) != 0) { // param n lang = "n"; } else if((opts & 48) != 0) { // param s lang = "s"; } else if((opts & 64) != 0) { // param s lang = "u"; } try { return RubyRegexp.newRegexp(runtime, iVisited.getPattern(), lang); } catch(java.util.regex.PatternSyntaxException e) { throw runtime.newSyntaxError(e.getMessage()); } } case NodeTypes.RESCUEBODYNODE: { RescueBodyNode iVisited = (RescueBodyNode) node; node = iVisited.getBodyNode(); continue bigloop; } case NodeTypes.RESCUENODE: { RescueNode iVisited = (RescueNode)node; RescuedBlock : while (true) { try { // Execute rescue block IRubyObject result = evalInternal(context, iVisited.getBodyNode(), self); // If no exception is thrown execute else block if (iVisited.getElseNode() != null) { if (iVisited.getRescueNode() == null) { runtime.getWarnings().warn(iVisited.getElseNode().getPosition(), "else without rescue is useless"); } result = evalInternal(context, iVisited.getElseNode(), self); } return result; } catch (RaiseException raiseJump) { RubyException raisedException = raiseJump.getException(); // TODO: Rubicon TestKernel dies without this line. A cursory glance implies we // falsely set $! to nil and this sets it back to something valid. This should // get fixed at the same time we address bug #1296484. runtime.getGlobalVariables().set("$!", raisedException); RescueBodyNode rescueNode = iVisited.getRescueNode(); while (rescueNode != null) { Node exceptionNodes = rescueNode.getExceptionNodes(); ListNode exceptionNodesList; if (exceptionNodes instanceof SplatNode) { exceptionNodesList = (ListNode) evalInternal(context, exceptionNodes, self); } else { exceptionNodesList = (ListNode) exceptionNodes; } if (isRescueHandled(context, raisedException, exceptionNodesList, self)) { try { return evalInternal(context, rescueNode, self); } catch (JumpException je) { if (je.getJumpType() == JumpException.JumpType.RetryJump) { // should be handled in the finally block below //state.runtime.getGlobalVariables().set("$!", state.runtime.getNil()); //state.threadContext.setRaisedException(null); continue RescuedBlock; } else { throw je; } } } rescueNode = rescueNode.getOptRescueNode(); } // no takers; bubble up throw raiseJump; } finally { // clear exception when handled or retried runtime.getGlobalVariables().set("$!", runtime.getNil()); } } } case NodeTypes.RETRYNODE: { context.pollThreadEvents(); JumpException je = new JumpException(JumpException.JumpType.RetryJump); throw je; } case NodeTypes.RETURNNODE: { ReturnNode iVisited = (ReturnNode) node; IRubyObject result = evalInternal(context, iVisited.getValueNode(), self); JumpException je = new JumpException(JumpException.JumpType.ReturnJump); je.setPrimaryData(iVisited.getTarget()); je.setSecondaryData(result); je.setTertiaryData(iVisited); throw je; } case NodeTypes.ROOTNODE: { RootNode iVisited = (RootNode) node; DynamicScope scope = iVisited.getScope(); // Serialization killed our dynamic scope. We can just create an empty one // since serialization cannot serialize an eval (which is the only thing // which is capable of having a non-empty dynamic scope). if (scope == null) { scope = new DynamicScope(iVisited.getStaticScope(), null); } // Each root node has a top-level scope that we need to push context.preRootNode(scope); // FIXME: Wire up BEGIN and END nodes try { return eval(context, iVisited.getBodyNode(), self); } finally { context.postRootNode(); } } case NodeTypes.SCLASSNODE: { SClassNode iVisited = (SClassNode) node; IRubyObject receiver = evalInternal(context, iVisited.getReceiverNode(), self); RubyClass singletonClass; if (receiver.isNil()) { singletonClass = runtime.getNilClass(); } else if (receiver == runtime.getTrue()) { singletonClass = runtime.getClass("TrueClass"); } else if (receiver == runtime.getFalse()) { singletonClass = runtime.getClass("FalseClass"); } else { if (runtime.getSafeLevel() >= 4 && !receiver.isTaint()) { throw runtime.newSecurityError("Insecure: can't extend object."); } singletonClass = receiver.getSingletonClass(); } if (context.getWrapper() != null) { singletonClass.extendObject(context.getWrapper()); singletonClass.includeModule(context.getWrapper()); } return evalClassDefinitionBody(context, iVisited.getScope(), iVisited.getBodyNode(), singletonClass, self); } case NodeTypes.SELFNODE: return self; case NodeTypes.SPLATNODE: { SplatNode iVisited = (SplatNode) node; return splatValue(evalInternal(context, iVisited.getValue(), self)); } //// case NodeTypes.STARNODE: //// EvaluateVisitor.starNodeVisitor.execute(this, node); //// break; case NodeTypes.STRNODE: { StrNode iVisited = (StrNode) node; return runtime.newString(iVisited.getValue()); } case NodeTypes.SUPERNODE: { SuperNode iVisited = (SuperNode) node; if (context.getFrameLastClass() == null) { String name = context.getFrameLastFunc(); throw runtime.newNameError("Superclass method '" + name + "' disabled.", name); } context.beginCallArgs(); IRubyObject[] args = null; try { args = setupArgs(context, iVisited.getArgsNode(), self); } finally { context.endCallArgs(); } return context.callSuper(args); } case NodeTypes.SVALUENODE: { SValueNode iVisited = (SValueNode) node; return aValueSplat(evalInternal(context, iVisited.getValue(), self)); } case NodeTypes.SYMBOLNODE: { SymbolNode iVisited = (SymbolNode) node; return runtime.newSymbol(iVisited.getName()); } case NodeTypes.TOARYNODE: { ToAryNode iVisited = (ToAryNode) node; return aryToAry(evalInternal(context, iVisited.getValue(), self)); } case NodeTypes.TRUENODE: { context.pollThreadEvents(); return runtime.getTrue(); } case NodeTypes.UNDEFNODE: { UndefNode iVisited = (UndefNode) node; if (context.getRubyClass() == null) { throw runtime .newTypeError("No class to undef method '" + iVisited.getName() + "'."); } context.getRubyClass().undef(iVisited.getName()); return runtime.getNil(); } case NodeTypes.UNTILNODE: { UntilNode iVisited = (UntilNode) node; IRubyObject result = runtime.getNil(); while (!(result = evalInternal(context, iVisited.getConditionNode(), self)).isTrue()) { loop: while (true) { // Used for the 'redo' command try { result = evalInternal(context, iVisited.getBodyNode(), self); break loop; } catch (JumpException je) { switch (je.getJumpType().getTypeId()) { case JumpType.REDO: continue; case JumpType.NEXT: break loop; case JumpType.BREAK: return (IRubyObject) je.getPrimaryData(); default: throw je; } } } } return result; } case NodeTypes.VALIASNODE: { VAliasNode iVisited = (VAliasNode) node; runtime.getGlobalVariables().alias(iVisited.getNewName(), iVisited.getOldName()); return runtime.getNil(); } case NodeTypes.VCALLNODE: { VCallNode iVisited = (VCallNode) node; return self.callMethod(context, iVisited.getName(), IRubyObject.NULL_ARRAY, CallType.VARIABLE); } case NodeTypes.WHENNODE: assert false; return null; case NodeTypes.WHILENODE: { WhileNode iVisited = (WhileNode) node; IRubyObject result = runtime.getNil(); boolean firstTest = iVisited.evaluateAtStart(); while (!firstTest || (result = evalInternal(context, iVisited.getConditionNode(), self)).isTrue()) { firstTest = true; loop: while (true) { // Used for the 'redo' command try { evalInternal(context, iVisited.getBodyNode(), self); break loop; } catch (JumpException je) { switch (je.getJumpType().getTypeId()) { case JumpType.REDO: continue; case JumpType.NEXT: break loop; case JumpType.BREAK: return result; default: throw je; } } } } return result; } case NodeTypes.XSTRNODE: { XStrNode iVisited = (XStrNode) node; return self.callMethod(context, "`", runtime.newString(iVisited.getValue())); } case NodeTypes.YIELDNODE: { YieldNode iVisited = (YieldNode) node; IRubyObject result = evalInternal(context, iVisited.getArgsNode(), self); if (iVisited.getArgsNode() == null) { result = null; } return context.yieldCurrentBlock(result, null, null, iVisited.getCheckState()); } case NodeTypes.ZARRAYNODE: { return runtime.newArray(); } case NodeTypes.ZSUPERNODE: { if (context.getFrameLastClass() == null) { String name = context.getFrameLastFunc(); throw runtime.newNameError("superclass method '" + name + "' disabled", name); } return context.callSuper(context.getFrameArgs(), true); } } } while (true); }
3,229,395
public SessionHandler(DataSource dataSource, SessionFactory factory) { this.dataSource = dataSource; this.delegate = new HibernateInterceptor(); this.factory = factory; this.delegate.setSessionFactory(factory); }
publicSessionHandler(DataSourcedataSource,SessionFactoryfactory){this.dataSource=dataSource;this.delegate=newHibernateInterceptor();this.factory=factory;this.delegate.setSessionFactory(factory);}
3,229,396
private Object doStateful(MethodInvocation invocation) throws Throwable { Object result = null; try { newOrRestoredSession(invocation); result = invocation.proceed(); return result; } finally { if (isCloseSession(invocation)) { closeSession(); } else { disconnectSession(); } resetThreadSession(); // Everything successfully turned off. Decrement. if (sessions.containsKey(invocation.getThis())) { sessions.get(invocation.getThis()).calls--; } } }
catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } privatecatch (Throwable e) { e.printStackTrace(); throw e; } Objectcatch (Throwable e) { e.printStackTrace(); throw e; } doStateful(MethodInvocationcatch (Throwable e) { e.printStackTrace(); throw e; } invocation)catch (Throwable e) { e.printStackTrace(); throw e; } throwscatch (Throwable e) { e.printStackTrace(); throw e; } Throwablecatch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } {catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } Objectcatch (Throwable e) { e.printStackTrace(); throw e; } resultcatch (Throwable e) { e.printStackTrace(); throw e; } =catch (Throwable e) { e.printStackTrace(); throw e; } null;catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } trycatch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } {catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } newOrRestoredSession(invocation);catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } resultcatch (Throwable e) { e.printStackTrace(); throw e; } =catch (Throwable e) { e.printStackTrace(); throw e; } invocation.proceed();catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } returncatch (Throwable e) { e.printStackTrace(); throw e; } result;catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } }catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } finallycatch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } {catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } ifcatch (Throwable e) { e.printStackTrace(); throw e; } (isCloseSession(invocation))catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } {catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } closeSession();catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } }catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } elsecatch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } {catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } disconnectSession();catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } }catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } resetThreadSession();catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } //catch (Throwable e) { e.printStackTrace(); throw e; } Everythingcatch (Throwable e) { e.printStackTrace(); throw e; } successfullycatch (Throwable e) { e.printStackTrace(); throw e; } turnedcatch (Throwable e) { e.printStackTrace(); throw e; } off.catch (Throwable e) { e.printStackTrace(); throw e; } Decrement.catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } ifcatch (Throwable e) { e.printStackTrace(); throw e; } (sessions.containsKey(invocation.getThis()))catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } {catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } sessions.get(invocation.getThis()).calls--;catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } }catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } }catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } }
3,229,397
private Object doStateful(MethodInvocation invocation) throws Throwable { Object result = null; try { newOrRestoredSession(invocation); result = invocation.proceed(); return result; } finally { if (isCloseSession(invocation)) { closeSession(); } else { disconnectSession(); } resetThreadSession(); // Everything successfully turned off. Decrement. if (sessions.containsKey(invocation.getThis())) { sessions.get(invocation.getThis()).calls--; } } }
private Object doStateful(MethodInvocation invocation) throws Throwable { Object result = null; try { newOrRestoredSession(invocation); result = invocation.proceed(); return result; } finally { if (isCloseSession(invocation)) { closeSession(); } else { disconnectSession(); } resetThreadSession(); // Everything successfully turned off. Decrement. if (sessions.containsKey(invocation.getThis())) { sessions.get(invocation.getThis()).calls--; } } }
3,229,398
private Object doStateful(MethodInvocation invocation) throws Throwable { Object result = null; try { newOrRestoredSession(invocation); result = invocation.proceed(); return result; } finally { if (isCloseSession(invocation)) { closeSession(); } else { disconnectSession(); } resetThreadSession(); // Everything successfully turned off. Decrement. if (sessions.containsKey(invocation.getThis())) { sessions.get(invocation.getThis()).calls--; } } }
private Object doStateful(MethodInvocation invocation) throws Throwable { Object result = null; try { newOrRestoredSession(invocation); result = invocation.proceed(); return result; } finally { if (isCloseSession(invocation)) { closeSession(); } else { disconnectSession(); } resetThreadSession(); // Everything successfully turned off. Decrement. if (sessions.containsKey(invocation.getThis())) { sessions.get(invocation.getThis()).calls--; } } }
3,229,399
public String render (WikiPage page) throws WikiPageRenderer.RenderException { WikiData[] dataElement = page.getData(); StringBuffer sb = new StringBuffer (2048); for (int x=0; x<dataElement.length; x++) { int type = dataElement[x].getType (); String data = (String) dataElement[x].getData (); String str = null; switch (type) { case WikiDataTypes.START_BOLD: str = renderBoldStart (); break; case WikiDataTypes.END_BOLD: str = renderBoldEnd (); break; case WikiDataTypes.START_UNDERLINE: str = renderUnderlineStart(); break; case WikiDataTypes.END_UNDERLINE: str = renderUnderlineEnd(); break; case WikiDataTypes.START_ITALIC: str = renderItalicStart(); break; case WikiDataTypes.END_ITALIC: str = renderItalicEnd(); break; case WikiDataTypes.PARAGRAPH_BREAK: str = renderParagraphBreak(); break; case WikiDataTypes.LINE_BREAK: str = renderLineBreak(); break; case WikiDataTypes.HORIZ_LINE: str = renderHorizLine(); break; case WikiDataTypes.PLAIN_TEXT: str = renderPlainText (data); break; case WikiDataTypes.PAGE_REFERENCE: str = renderWikiTerm (data, page.getTitle()); break; case WikiDataTypes.INDENT: int many = (data != null && data.length() > 0) ? Integer.parseInt(data) : 1; str = renderIndent (many); break; case WikiDataTypes.START_NAMED_HEADER: str = renderHeaderStart (data); break; case WikiDataTypes.END_NAMED_HEADER: str = renderHeaderEnd (data); break; case WikiDataTypes.URL: str = _urlRenderer.renderURL (data); break; // @deprecated "image" is now a URL type. case WikiDataTypes.IMAGE: str = renderImage (data); break; // @deprecated "javadoc" is now a URL type. case WikiDataTypes.JAVADOC: str = renderJavaDoc (data); break; case WikiDataTypes.START_COLOR: str = renderColorStart (data); break; case WikiDataTypes.END_COLOR: str = renderColorEnd (); break; case WikiDataTypes.EMAIL: str = renderEmail (data); break; case WikiDataTypes.QUOTED_BLOCK: str = renderQuotedBlock (data); break; case WikiDataTypes.SPACE: str = renderSpace (); break; case WikiDataTypes.LT: str = renderLT (); break; case WikiDataTypes.GT: str = renderGT (); break; default: str = renderUnknown (dataElement[x]); } // esac if (str != null) sb.append (str); } // for x return sb.toString (); }
public String render (WikiPage page) throws WikiPageRenderer.RenderException { WikiData[] dataElement = page.getData(); StringBuffer sb = new StringBuffer (2048); for (int x=0; x<dataElement.length; x++) { int type = dataElement[x].getType (); String data = (String) dataElement[x].getData (); String str = null; switch (type) { case WikiDataTypes.START_BOLD: str = renderBoldStart (); break; case WikiDataTypes.END_BOLD: str = renderBoldEnd (); break; case WikiDataTypes.START_UNDERLINE: str = renderUnderlineStart(); break; case WikiDataTypes.END_UNDERLINE: str = renderUnderlineEnd(); break; case WikiDataTypes.START_ITALIC: str = renderItalicStart(); break; case WikiDataTypes.END_ITALIC: str = renderItalicEnd(); break; case WikiDataTypes.PARAGRAPH_BREAK: str = renderParagraphBreak(); break; case WikiDataTypes.LINE_BREAK: str = renderLineBreak(); break; case WikiDataTypes.HORIZ_LINE: str = renderHorizLine(); break; case WikiDataTypes.PLAIN_TEXT: str = renderPlainText (data); break; case WikiDataTypes.PAGE_REFERENCE: str = renderWikiTerm (data, page.getTitle()); break; case WikiDataTypes.INDENT: int many = (data != null && data.length() > 0) ? Integer.parseInt(data) : 1; str = renderIndent (many); break; case WikiDataTypes.START_NAMED_HEADER: str = renderHeaderStart (data); break; case WikiDataTypes.END_NAMED_HEADER: str = renderHeaderEnd (data); break; case WikiDataTypes.URL: str = _urlRenderer.renderURL (data); break; // @deprecated "image" is now a URL type. case WikiDataTypes.IMAGE: str = renderImage (data); break; // @deprecated "javadoc" is now a URL type. case WikiDataTypes.JAVADOC: str = renderJavaDoc (data); break; case WikiDataTypes.START_COLOR: str = renderColorStart (data); break; case WikiDataTypes.END_COLOR: str = renderColorEnd (); break; case WikiDataTypes.EMAIL: str = renderEmail (data); break; case WikiDataTypes.QUOTED_BLOCK: str = renderQuotedBlock (data); break; case WikiDataTypes.SPACE: str = renderSpace (); break; case WikiDataTypes.LT: str = renderLT (); break; case WikiDataTypes.GT: str = renderGT (); break; default: str = renderUnknown (dataElement[x]); } // esac if (str != null) sb.append (str); } // for x return sb.toString (); }
3,229,400
public Object filter(String fieldId, Object o) { Object result; if (o == null) { return null; } else if (o instanceof IObject) { result = filter(fieldId, (Filterable) o); } else if (o instanceof Collection) { result = filter(fieldId, (Collection) o); } else if (o instanceof Map) { result = filter(fieldId, (Map) o); } else if ( o instanceof Details || o instanceof Number || o instanceof String || o instanceof Date) { result = o; } else { throw new RuntimeException( "Update Filter cannot allow unknown types to be saved." + o.getClass().getName()+" is not in {IObject,Collection,Map}"); } return result; }
public Object filter(String fieldId, Object o) { Object result; if (o == null) { return null; } else if (o instanceof IObject) { result = filter(fieldId, (Filterable) o); } else if (o instanceof Collection) { result = filter(fieldId, (Collection) o); } else if (o instanceof Map) { result = filter(fieldId, (Map) o); } else if ( o instanceof Details || o instanceof Number || o instanceof String || o instanceof Date || o instanceof Boolean) { result = o; } else { throw new RuntimeException( "Update Filter cannot allow unknown types to be saved." + o.getClass().getName()+" is not in {IObject,Collection,Map}"); } return result; }
3,229,401
public static RubyNumeric rand(IRubyObject recv, IRubyObject args[]) { if (args.length == 0) { double result = recv.getRuntime().random.nextDouble(); return RubyFloat.newFloat(recv.getRuntime(), result); } else if (args.length == 1) { RubyInteger integerCeil = (RubyInteger) args[0].convertToType("Integer", "to_int", true); long ceil = integerCeil.getLongValue(); if (ceil > Integer.MAX_VALUE) { throw new NotImplementedError(recv.getRuntime(), "Random values larger than Integer.MAX_VALUE not supported"); } return RubyFixnum.newFixnum(recv.getRuntime(), recv.getRuntime().random.nextInt((int) ceil)); } else { throw new ArgumentError(recv.getRuntime(), "wrong # of arguments(" + args.length + " for 1)"); } }
public static RubyNumeric rand(IRubyObject recv, IRubyObject args[]) { if (args.length == 0) { double result = recv.getRuntime().random.nextDouble(); return RubyFloat.newFloat(recv.getRuntime(), result); } else if (args.length == 1) { RubyInteger integerCeil = (RubyInteger) args[0].convertToType("Integer", "to_int", true); long ceil = integerCeil.getLongValue(); if (ceil > Integer.MAX_VALUE) { throw new NotImplementedError(recv.getRuntime(), "Random values larger than Integer.MAX_VALUE not supported"); } return RubyFixnum.newFixnum(recv.getRuntime(), recv.getRuntime().random.nextInt((int) ceil)); } else { throw new ArgumentError(recv.getRuntime(), "wrong # of arguments(" + args.length + " for 1)"); } }
3,229,402
public static RubyNumeric rand(IRubyObject recv, IRubyObject args[]) { if (args.length == 0) { double result = recv.getRuntime().random.nextDouble(); return RubyFloat.newFloat(recv.getRuntime(), result); } else if (args.length == 1) { RubyInteger integerCeil = (RubyInteger) args[0].convertToType("Integer", "to_int", true); long ceil = integerCeil.getLongValue(); if (ceil > Integer.MAX_VALUE) { throw new NotImplementedError(recv.getRuntime(), "Random values larger than Integer.MAX_VALUE not supported"); } return RubyFixnum.newFixnum(recv.getRuntime(), recv.getRuntime().random.nextInt((int) ceil)); } else { throw new ArgumentError(recv.getRuntime(), "wrong # of arguments(" + args.length + " for 1)"); } }
public static RubyNumeric rand(IRubyObject recv, IRubyObject args[]) { if (args.length == 0) { double result = recv.getRuntime().random.nextDouble(); return RubyFloat.newFloat(recv.getRuntime(), result); } else if (args.length == 1) { RubyInteger integerCeil = (RubyInteger) args[0].convertToType("Integer", "to_int", true); ceil = integerCeil.getLongValue(); ceil = Math.abs(ceil); if (ceil > Integer.MAX_VALUE) { throw new NotImplementedError(recv.getRuntime(), "Random values larger than Integer.MAX_VALUE not supported"); } return RubyFixnum.newFixnum(recv.getRuntime(), recv.getRuntime().random.nextInt((int) ceil)); } else { throw new ArgumentError(recv.getRuntime(), "wrong # of arguments(" + args.length + " for 1)"); } }
3,229,403
public static RubyNumeric rand(IRubyObject recv, IRubyObject args[]) { if (args.length == 0) { double result = recv.getRuntime().random.nextDouble(); return RubyFloat.newFloat(recv.getRuntime(), result); } else if (args.length == 1) { RubyInteger integerCeil = (RubyInteger) args[0].convertToType("Integer", "to_int", true); long ceil = integerCeil.getLongValue(); if (ceil > Integer.MAX_VALUE) { throw new NotImplementedError(recv.getRuntime(), "Random values larger than Integer.MAX_VALUE not supported"); } return RubyFixnum.newFixnum(recv.getRuntime(), recv.getRuntime().random.nextInt((int) ceil)); } else { throw new ArgumentError(recv.getRuntime(), "wrong # of arguments(" + args.length + " for 1)"); } }
public static RubyNumeric rand(IRubyObject recv, IRubyObject args[]) { if (args.length == 0) { double result = recv.getRuntime().random.nextDouble(); return RubyFloat.newFloat(recv.getRuntime(), result); } else if (args.length == 1) { RubyInteger integerCeil = (RubyInteger) args[0].convertToType("Integer", "to_int", true); long ceil = integerCeil.getLongValue(); if (ceil > Integer.MAX_VALUE) { throw new NotImplementedError(recv.getRuntime(), "Random values larger than Integer.MAX_VALUE not supported"); } } else { throw new ArgumentError(recv.getRuntime(), "wrong # of arguments(" + args.length + " for 1)"); } }
3,229,404
public static RubyInteger srand(IRubyObject recv, IRubyObject[] args) { long oldRandomSeed = recv.getRuntime().randomSeed; if (args.length > 0) { RubyInteger integerSeed = (RubyInteger) args[0].convertToType("Integer", "to_int", true); recv.getRuntime().randomSeed = integerSeed.getLongValue(); } else { recv.getRuntime().randomSeed = System.currentTimeMillis(); // FIXME } recv.getRuntime().random.setSeed(recv.getRuntime().randomSeed); return RubyFixnum.newFixnum(recv.getRuntime(), oldRandomSeed); }
public static RubyInteger srand(IRubyObject recv, IRubyObject[] args) { long oldRandomSeed = recv.getRuntime().randomSeed; if (args.length > 0) { RubyInteger integerSeed = (RubyInteger) args[0].convertToType("Integer", "to_int", true); recv.getRuntime().randomSeed = integerSeed.getLongValue(); } else { recv.getRuntime().randomSeed = System.currentTimeMillis(); // FIXME } recv.getRuntime().random.setSeed(recv.getRuntime().randomSeed); return RubyFixnum.newFixnum(recv.getRuntime(), oldRandomSeed); }
3,229,406
public void create() { applicationContext = OmeroContext.getManagedServerContext(); serviceFactory = new ServiceFactory( applicationContext ); eventContext = (EventContext) applicationContext.getBean("eventContext"); localQuery = (LocalQuery) applicationContext.getBean(IQuery.class.getName()); localUpdate = (LocalUpdate) applicationContext.getBean(IUpdate.class.getName()); log.debug("Created:\n"+getLogString()); }
public void create() { applicationContext = OmeroContext.getManagedServerContext(); serviceFactory = new InternalServiceFactory( applicationContext ); localQuery = (LocalQuery) serviceFactory.getQueryService(); localUpdate = (LocalUpdate) serviceFactory.getUpdateService(); eventContext = (EventContext) applicationContext.getBean("eventContext"); localQuery = (LocalQuery) applicationContext.getBean(IQuery.class.getName()); localUpdate = (LocalUpdate) applicationContext.getBean(IUpdate.class.getName()); log.debug("Created:\n"+getLogString()); }
3,229,407
public void create() { applicationContext = OmeroContext.getManagedServerContext(); serviceFactory = new ServiceFactory( applicationContext ); eventContext = (EventContext) applicationContext.getBean("eventContext"); localQuery = (LocalQuery) applicationContext.getBean(IQuery.class.getName()); localUpdate = (LocalUpdate) applicationContext.getBean(IUpdate.class.getName()); log.debug("Created:\n"+getLogString()); }
public void create() { applicationContext = OmeroContext.getManagedServerContext(); serviceFactory = new ServiceFactory( applicationContext ); eventContext = (EventContext) applicationContext.getBean("eventContext"); localQuery = (LocalQuery) applicationContext.getBean(IQuery.class.getName()); localUpdate = (LocalUpdate) applicationContext.getBean(IUpdate.class.getName()); log.debug("Created:\n"+getLogString()); }
3,229,408
protected Object wrap( InvocationContext context, String factoryName ) throws Exception { try { login(); AOPAdapter adapter = AOPAdapter.create( (ProxyFactoryBean) applicationContext.getBean(factoryName), context ); return adapter.proceed( ); } catch (Throwable t) { throw translateException( t ); } finally { logout(); } }
protected Object wrap( InvocationContext context, Class<? extends ServiceInterface> factoryClass ) throws Exception { try { login(); AOPAdapter adapter = AOPAdapter.create( (ProxyFactoryBean) applicationContext.getBean(factoryName), context ); return adapter.proceed( ); } catch (Throwable t) { throw translateException( t ); } finally { logout(); } }
3,229,409
public RubyClass defineOrGetClassUnder(String name, RubyClass superClazz) { IRubyObject type = getConstantAt(name); if (type == null) { return (RubyClass) setConstant(name, getRuntime().defineClassUnder(name, superClazz, cref)); } if (!(type instanceof RubyClass)) { throw getRuntime().newTypeError(name + " is not a class."); } return (RubyClass) type; }
public RubyClass defineOrGetClassUnder(String name, RubyClass superClazz) { IRubyObject type = getConstantAt(name); if (type == null) { return (RubyClass) setConstant(name, getRuntime().defineClassUnder(name, superClazz, cref)); } if (!(type instanceof RubyClass)) { throw getRuntime().newTypeError(name + " is not a class."); } return (RubyClass) type; }
3,229,412
public double getDoubleValue() { return (double)value; }
public double getDoubleValue() { return (double) value; }
3,229,414
public static RubyFixnum m_newFixnum(Ruby ruby, long value) { // Cache for Fixnums (Performance) if ((value & ~Ruby.FIXNUM_CACHE_MAX) == 0) { return ruby.fixnumCache[(int)value]; } return new RubyFixnum(ruby, value); }
public static RubyFixnum m_newFixnum(Ruby ruby, long value) { // Cache for Fixnums (Performance) if ((value & ~Ruby.FIXNUM_CACHE_MAX) == 0) { return ruby.fixnumCache[(int) value]; } return new RubyFixnum(ruby, value); }
3,229,415
public static RubyFixnum m_newFixnum(Ruby ruby, long value) { // Cache for Fixnums (Performance) if ((value & ~Ruby.FIXNUM_CACHE_MAX) == 0) { return ruby.fixnumCache[(int)value]; } return new RubyFixnum(ruby, value); }
public static RubyFixnum m_newFixnum(Ruby ruby, long value) { // Cache for Fixnums (Performance) if ((value & ~Ruby.FIXNUM_CACHE_MAX) == 0) { return ruby.fixnumCache[(int)value]; } return new RubyFixnum(ruby, value); }
3,229,416
public RubyBoolean op_equal(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyBoolean.m_newBoolean(getRuby(), getDoubleValue() == other.getDoubleValue()); } else { return RubyBoolean.m_newBoolean(getRuby(), getLongValue() == other.getLongValue()); } }
public RubyBoolean op_equal(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyBoolean.m_newBoolean(getRuby(), getDoubleValue() == other.getDoubleValue()); } else { return RubyBoolean.m_newBoolean(getRuby(), getLongValue() == other.getLongValue()); } }
3,229,417
public RubyBoolean op_equal(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyBoolean.m_newBoolean(getRuby(), getDoubleValue() == other.getDoubleValue()); } else { return RubyBoolean.m_newBoolean(getRuby(), getLongValue() == other.getLongValue()); } }
public RubyBoolean op_equal(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyBoolean.m_newBoolean(getRuby(), getDoubleValue() == other.getDoubleValue()); } else { return RubyBoolean.m_newBoolean( getRuby(), getLongValue() == ((RubyNumeric) other).getLongValue()); } }
3,229,418
public RubyBoolean op_ge(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyFloat.m_newFloat(getRuby(), getDoubleValue()).op_ge(other); } else { return getLongValue() >= other.getLongValue() ? getRuby().getTrue() : getRuby().getFalse(); } }
public RubyBoolean op_ge(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyFloat.m_newFloat(getRuby(), getDoubleValue()).op_ge(other); } else { return getLongValue() >= other.getLongValue() ? getRuby().getTrue() : getRuby().getFalse(); } }
3,229,419
public RubyBoolean op_gt(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyFloat.m_newFloat(getRuby(), getDoubleValue()).op_gt(other); } else { return getLongValue() > other.getLongValue() ? getRuby().getTrue() : getRuby().getFalse(); } }
public RubyBoolean op_gt(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyFloat.m_newFloat(getRuby(), getDoubleValue()).op_gt(other); } else { return getLongValue() > other.getLongValue() ? getRuby().getTrue() : getRuby().getFalse(); } }
3,229,420
public RubyBoolean op_le(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyFloat.m_newFloat(getRuby(), getDoubleValue()).op_le(other); } else { return getLongValue() <= other.getLongValue() ? getRuby().getTrue() : getRuby().getFalse(); } }
public RubyBoolean op_le(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyFloat.m_newFloat(getRuby(), getDoubleValue()).op_le(other); } else { return getLongValue() <= other.getLongValue() ? getRuby().getTrue() : getRuby().getFalse(); } }
3,229,421
public RubyBoolean op_lt(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyFloat.m_newFloat(getRuby(), getDoubleValue()).op_lt(other); } else { return getLongValue() < other.getLongValue() ? getRuby().getTrue() : getRuby().getFalse(); } }
public RubyBoolean op_lt(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyFloat.m_newFloat(getRuby(), getDoubleValue()).op_lt(other); } else { return getLongValue() < other.getLongValue() ? getRuby().getTrue() : getRuby().getFalse(); } }
3,229,422
public RubyNumeric op_minus(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyFloat.m_newFloat(getRuby(), getDoubleValue()).op_minus(other); } else if (other instanceof RubyBignum || needBignumAdd(-other.getLongValue())) { return RubyBignum.m_newBignum(getRuby(), value).op_minus(other); } else { return m_newFixnum(value - other.getLongValue()); } }
public RubyNumeric op_minus(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyFloat.m_newFloat(getRuby(), getDoubleValue()).op_minus(other); } else if ( other instanceof RubyBignum || needBignumAdd(-other.getLongValue())) { return RubyBignum.m_newBignum(getRuby(), value).op_minus(other); } else { return m_newFixnum(value - other.getLongValue()); } }
3,229,423
public RubyNumeric op_mul(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyFloat.m_newFloat(getRuby(), getDoubleValue()).op_mul(other); } else if (other instanceof RubyBignum || needBignumMul(other.getLongValue())) { return RubyBignum.m_newBignum(getRuby(), getLongValue()).op_mul(other); } else { return m_newFixnum(getRuby(), getValue() * other.getLongValue()); } }
public RubyNumeric op_mul(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyFloat.m_newFloat(getRuby(), getDoubleValue()).op_mul(other); } else if ( other instanceof RubyBignum || needBignumMul(other.getLongValue())) { return RubyBignum.m_newBignum(getRuby(), getLongValue()).op_mul(other); } else { return m_newFixnum(getRuby(), getValue() * other.getLongValue()); } }
3,229,424
public RubyNumeric op_plus(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyFloat.m_newFloat(getRuby(), getDoubleValue()).op_plus(other); } else if (other instanceof RubyBignum || needBignumAdd(other.getLongValue())) { return RubyBignum.m_newBignum(getRuby(), value).op_plus(other); } else { return m_newFixnum(value + other.getLongValue()); } }
public RubyNumeric op_plus(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyFloat.m_newFloat(getRuby(), getDoubleValue()).op_plus(other); } else if ( other instanceof RubyBignum || needBignumAdd(other.getLongValue())) { return RubyBignum.m_newBignum(getRuby(), value).op_plus(other); } else { return m_newFixnum(value + other.getLongValue()); } }
3,229,425
public List childNodes() { return Collections.EMPTY_LIST; }
public List childNodes() { return EMPTY_LIST; }
3,229,426
public ImagePixel(Integer attributeId, String pixelType, Integer sizeY, Integer sizeZ, String fileSha1, String path, Integer sizeT, Long imageServerId, Integer sizeX, Integer sizeC, Integer bitsPerPixel, org.openmicroscopy.omero.model.Image image, org.openmicroscopy.omero.model.Repository repository, org.openmicroscopy.omero.model.ModuleExecution moduleExecution, Set images, Set displayOptions, Set channelComponents) { this.attributeId = attributeId; this.pixelType = pixelType; this.sizeY = sizeY; this.sizeZ = sizeZ; this.fileSha1 = fileSha1; this.path = path; this.sizeT = sizeT; this.imageServerId = imageServerId; this.sizeX = sizeX; this.sizeC = sizeC; this.bitsPerPixel = bitsPerPixel; this.image = image; this.repository = repository; this.moduleExecution = moduleExecution; this.images = images; this.displayOptions = displayOptions; this.channelComponents = channelComponents; }
public ImagePixel(Integer attributeId, String pixelType, Integer sizeY, Integer sizeZ, String fileSha1, String path, Integer sizeT, Long imageServerId, Integer sizeX, Integer sizeC, Integer bitsPerPixel, org.openmicroscopy.omero.model.Image image, org.openmicroscopy.omero.model.Repository repository, org.openmicroscopy.omero.model.ModuleExecution moduleExecution, Set images, Set displayOptions, Set channelComponents) { this.attributeId = attributeId; this.pixelType = pixelType; this.sizeY = sizeY; this.sizeZ = sizeZ; this.fileSha1 = fileSha1; this.path = path; this.sizeT = sizeT; this.imageServerId = imageServerId; this.sizeX = sizeX; this.sizeC = sizeC; this.bitsPerPixel = bitsPerPixel; this.image = image; this.repository = repository; this.moduleExecution = moduleExecution; this.images = images; this.displayOptions = displayOptions; this.channelComponents = channelComponents; }
3,229,427
public org.openmicroscopy.omero.model.Image getImage() { return this.image; }
public Image getImage() { return this.image; }
3,229,428
public org.openmicroscopy.omero.model.ModuleExecution getModuleExecution() { return this.moduleExecution; }
public ModuleExecution getModuleExecution() { return this.moduleExecution; }
3,229,429
public org.openmicroscopy.omero.model.Repository getRepository() { return this.repository; }
public Repository getRepository() { return this.repository; }
3,229,430
public void setImage(org.openmicroscopy.omero.model.Image image) { this.image = image; }
public void setImage(Image image) { this.image = image; }
3,229,431
public void setModuleExecution(org.openmicroscopy.omero.model.ModuleExecution moduleExecution) { this.moduleExecution = moduleExecution; }
public void setModuleExecution(ModuleExecution moduleExecution) { this.moduleExecution = moduleExecution; }
3,229,432
public void setRepository(org.openmicroscopy.omero.model.Repository repository) { this.repository = repository; }
public void setRepository(Repository repository) { this.repository = repository; }
3,229,433
protected void onDisplayChange(TreeImageDisplay selectedDisplay) { if (selectedDisplay == null) { setEnabled(false); return; } if (selectedDisplay.getParentDisplay() == null) { //root name = BROWSE; setEnabled(model.getSelectedBrowser().getBrowserType() == Browser.IMAGES_EXPLORER); return; } Object ho = selectedDisplay.getUserObject(); if (ho == null || !(ho instanceof DataObject)) setEnabled(false); else { Browser browser = model.getSelectedBrowser(); if (browser != null) { if (browser.getSelectedDisplays().length > 1) { setEnabled(true); name = BROWSE; return; } } if ((ho instanceof ImageData)) name = VIEW; else name = BROWSE; if (selectedDisplay instanceof TreeImageSet) { setEnabled(((TreeImageSet) selectedDisplay).getNumberItems() > 0); } else setEnabled(true); } }
protected void onDisplayChange(TreeImageDisplay selectedDisplay) { if (selectedDisplay == null) { setEnabled(false); return; } if (selectedDisplay.getParentDisplay() == null) { //root name = BROWSE; setEnabled(model.getSelectedBrowser().getBrowserType() == Browser.IMAGES_EXPLORER); return; } Object ho = selectedDisplay.getUserObject(); if (ho == null || !(ho instanceof DataObject)) setEnabled(false); else { Browser browser = model.getSelectedBrowser(); if (browser != null) { if (browser.getSelectedDisplays().length > 1) { setEnabled(true); name = BROWSE; return; } } if ((ho instanceof ImageData)) name = VIEW; else name = BROWSE; if (selectedDisplay instanceof TreeImageSet) { setEnabled( ((TreeImageSet) selectedDisplay).getNumberItems() > 0); } else setEnabled(true); } }
3,229,434
protected String renderEndList() { return "</ul>"; }
protected String renderEndList() { return "</ul>\n"; }
3,229,435
protected String renderHorizLine() { return "<hr>"; }
protected String renderHorizLine() { return "<hr>\n"; }
3,229,436
protected String renderLineBreak() { return "<br>"; }
protected String renderLineBreak() { return "<br>\n"; }
3,229,437
protected String renderParagraphBreak() { return "<br><br>"; }
protected String renderParagraphBreak() { return "<br><br>\n"; }
3,229,438