Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
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 (322)
Collections:
Other Resources:
JDK 17 jdk.jdeps.jmod - JDeps Tool
JDK 17 jdk.jdeps.jmod is the JMOD file for JDK 17 JDeps tool,
which can be invoked by the "jdeps" command.
JDK 17 JDeps tool compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\jdk.jdeps.jmod.
JDK 17 JDeps tool compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 JDeps tool source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\jdk.jdeps.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ com/sun/tools/jdeprscan/scan/MethodSig.java
/*
* Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package com.sun.tools.jdeprscan.scan;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
* Represents a method's signature, that is, its parameter types
* and its return type.
*/
public class MethodSig {
final List<String> parameters;
final String returnType;
/**
* Parses the method descriptor and returns a MethodSig instance.
*
* @param desc the descriptor to parse
* @return the new MethodSig instance
*/
public static MethodSig fromDesc(String desc) {
return parse(desc, 0, desc.length());
}
/**
* Returns this method's return type.
*
* @return the return type
*/
public String getReturnType() {
return returnType;
}
/**
* Returns a list of parameters of this method.
*
* @return the parameter list
*/
public List<String> getParameters() {
return parameters;
}
/**
* Returns a string describing this method.
*
* @return the string description
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("parameters");
if (parameters.isEmpty()) {
sb.append(" none");
} else {
int i = 0;
for (String p : parameters) {
sb.append(String.format(" %d=%s", i++, p));
}
}
sb.append(String.format(" return %s", returnType));
return sb.toString();
}
private MethodSig(List<String> parameters, String returnType) {
this.parameters = Collections.unmodifiableList(parameters);
this.returnType = returnType;
}
private static IllegalArgumentException ex(String desc, int pos) {
return new IllegalArgumentException(String.format(
"illegal descriptor \"%s\" at position %d", desc, pos));
}
private static MethodSig parse(String desc, int start, int end)
throws IllegalArgumentException {
int p = start;
int dims = 0;
boolean inReturnType = false;
String returnType = null;
List<String> parameters = new ArrayList<>();
while (p < end) {
String type;
char ch;
switch (ch = desc.charAt(p)) {
case '(':
p++;
continue;
case ')':
p++;
inReturnType = true;
continue;
case '[':
p++;
dims++;
continue;
case 'B': // byte
case 'C': // char
case 'D': // double
case 'F': // float
case 'I': // int
case 'J': // long
case 'S': // short
case 'Z': // boolean
case 'V': // void
type = Character.toString(ch);
p++;
break;
case 'L':
int sep = desc.indexOf(';', p);
if (sep == -1 || sep >= end)
throw ex(desc, p);
type = desc.substring(p, ++sep);
p = sep;
break;
default:
throw ex(desc, p);
}
StringBuilder sb = new StringBuilder();
for ( ; dims > 0; dims-- )
sb.append("[");
sb.append(type);
if (inReturnType) {
returnType = sb.toString();
} else {
parameters.add(sb.toString());
}
}
if (returnType == null) {
throw ex(desc, end);
}
return new MethodSig(parameters, returnType);
}
}
⏎ com/sun/tools/jdeprscan/scan/MethodSig.java
Or download all of them as a single archive file:
File name: jdk.jdeps-17.0.5-src.zip File size: 258425 bytes Release date: 2022-09-13 Download
⇒ JDK 17 jdk.jdi.jmod - JDI Tool
2023-04-17, ≈28🔥, 0💬
Popular Posts:
Jackson is "the Java JSON library" or "the best JSON parser for Java". Or simply as "JSON for Java"....
Old version of xml-apis.jar. JAR File Size and Download Location: File name: xmlParserAPIs.jar File ...
Where to find answers to frequently asked questions on Downloading and Installing ojdbc.jar - JDBC D...
What Is commons-logging-1.2.jar? commons-logging-1.2.jar is the JAR file for Apache Commons Logging ...
Where to get the Java source code for Connector/J 8.0 Protocol Impl module? Java source code files f...