Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
JDK 11 jdk.rmic.jmod - RMI Compiler Tool
JDK 11 jdk.rmic.jmod is the JMOD file for JDK 11 RMI (Remote Method Invocation) Compiler Tool tool,
which can be invoked by the "rmic" command.
JDK 11 RMI Compiler Tool tool compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\jdk.rmic.jmod.
JDK 11 RMI Compiler Tool tool compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 RMI Compiler Tool tool source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\jdk.rmic.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ sun/tools/asm/SwitchData.java
/* * Copyright (c) 1994, 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package sun.tools.asm; import sun.tools.java.*; import java.util.Hashtable; import java.util.Enumeration; import java.util.Arrays; /** * WARNING: The contents of this source file are not part of any * supported API. Code that depends on them does so at its own risk: * they are subject to change or removal without notice. */ public final class SwitchData { int minValue, maxValue; Label defaultLabel = new Label(); Hashtable<Integer, Label> tab = new Hashtable<>(); // JCOV Hashtable<Integer, Long> whereCaseTab = null; // end JCOV /** * Get a label */ public Label get(int n) { return tab.get(n); } /** * Get a label */ public Label get(Integer n) { return tab.get(n); } /** * Add a label */ public void add(int n, Label lbl) { if (tab.size() == 0) { minValue = n; maxValue = n; } else { if (n < minValue) { minValue = n; } if (n > maxValue) { maxValue = n; } } tab.put(Integer.valueOf(n), lbl); } /** * Get the default label */ public Label getDefaultLabel() { return defaultLabel; } /** * Return the keys of this enumaration sorted in ascending order */ public synchronized Enumeration<Integer> sortedKeys() { return new SwitchDataEnumeration(tab); } // JCOV public void initTableCase() { whereCaseTab = new Hashtable<Integer, Long>(); } public void addTableCase(int index, long where) { if (whereCaseTab != null) whereCaseTab.put(Integer.valueOf(index), Long.valueOf(where)); } // this puts String key into Hashtable<Integer, Long> @SuppressWarnings("unchecked") public void addTableDefault(long where) { if (whereCaseTab != null) ((Hashtable)whereCaseTab).put("default", Long.valueOf(where)); } public long whereCase(Object key) { Long i = whereCaseTab.get(key); return (i == null) ? 0L : i.longValue(); } public boolean getDefault() { return (whereCase("default") != 0L); } // end JCOV } class SwitchDataEnumeration implements Enumeration<Integer> { private Integer table[]; private int current_index = 0; /** * Create a new enumeration from the hashtable. Each key in the * hash table will be an Integer, with the value being a label. The * enumeration returns the keys in sorted order. */ SwitchDataEnumeration(Hashtable<Integer, Label> tab) { table = new Integer[tab.size()]; int i = 0; for (Enumeration<Integer> e = tab.keys() ; e.hasMoreElements() ; ) { table[i++] = e.nextElement(); } Arrays.sort(table); current_index = 0; } /** * Are there more keys to return? */ public boolean hasMoreElements() { return current_index < table.length; } /** * Return the next key. */ public Integer nextElement() { return table[current_index++]; } }
⏎ sun/tools/asm/SwitchData.java
Or download all of them as a single archive file:
File name: jdk.rmic-11.0.1-src.zip File size: 418901 bytes Release date: 2018-11-04 Download
⇒ JDK 11 jdk.scripting.nashorn.jmod - Scripting Nashorn Module
2020-04-25, 37665👍, 0💬
Popular Posts:
Apache Neethi provides general framework for the programmers to use WS Policy. It is compliant with ...
JSP(tm) Standard Tag Library 1.0 implementation - Jakarta Taglibs hosts the Standard Taglib 1.0, an ...
maven-compat-3.8.6.jar is the JAR file for Apache Maven 3.8.6 Compact module. The JAR file name may ...
How to download and install Apache XMLBeans Source Package? The source package contains Java source ...
ASM is an all purpose Java bytecode manipulation and analysis framework. It can be used to modify ex...