1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-09 10:05:24 +02:00

[180606] [api] Move classes that parse Java class files into internal package.

This commit is contained in:
Kushal Munir 2007-04-03 02:09:40 +00:00
parent 830d3b8415
commit 439df4639e
26 changed files with 47 additions and 25 deletions

View file

@ -10,6 +10,7 @@ Require-Bundle: org.eclipse.core.runtime
Eclipse-LazyStart: true Eclipse-LazyStart: true
Export-Package: org.eclipse.rse.internal.services;x-internal:=true, Export-Package: org.eclipse.rse.internal.services;x-internal:=true,
org.eclipse.rse.internal.services.clientserver.archiveutils;x-internal:=true, org.eclipse.rse.internal.services.clientserver.archiveutils;x-internal:=true,
org.eclipse.rse.internal.services.clientserver.java;x-internal:=true,
org.eclipse.rse.internal.services.shells;x-internal:=true, org.eclipse.rse.internal.services.shells;x-internal:=true,
org.eclipse.rse.services, org.eclipse.rse.services,
org.eclipse.rse.services.clientserver, org.eclipse.rse.services.clientserver,

View file

@ -14,7 +14,7 @@
* {Name} (company) - description of contribution. * {Name} (company) - description of contribution.
********************************************************************************/ ********************************************************************************/
package org.eclipse.rse.services.clientserver.java; package org.eclipse.rse.internal.services.clientserver.java;
/** /**
* This class represents 4 byte numeric information. * This class represents 4 byte numeric information.

View file

@ -14,7 +14,7 @@
* {Name} (company) - description of contribution. * {Name} (company) - description of contribution.
********************************************************************************/ ********************************************************************************/
package org.eclipse.rse.services.clientserver.java; package org.eclipse.rse.internal.services.clientserver.java;
/** /**
* This class represents 8 byte numeric information. * This class represents 8 byte numeric information.

View file

@ -14,7 +14,7 @@
* {Name} (company) - description of contribution. * {Name} (company) - description of contribution.
********************************************************************************/ ********************************************************************************/
package org.eclipse.rse.services.clientserver.java; package org.eclipse.rse.internal.services.clientserver.java;
/** /**
* This class represents a attribute. * This class represents a attribute.

View file

@ -14,7 +14,9 @@
* {Name} (company) - description of contribution. * {Name} (company) - description of contribution.
********************************************************************************/ ********************************************************************************/
package org.eclipse.rse.services.clientserver.java; package org.eclipse.rse.internal.services.clientserver.java;
import org.eclipse.rse.services.clientserver.java.BasicClassFileParser;
/** /**
* This class represents various string constants, class and interface names, field names, and other constants * This class represents various string constants, class and interface names, field names, and other constants

View file

@ -14,7 +14,7 @@
* {Name} (company) - description of contribution. * {Name} (company) - description of contribution.
********************************************************************************/ ********************************************************************************/
package org.eclipse.rse.services.clientserver.java; package org.eclipse.rse.internal.services.clientserver.java;
/** /**
* This class represents information about a field or method. * This class represents information about a field or method.

View file

@ -14,7 +14,7 @@
* {Name} (company) - description of contribution. * {Name} (company) - description of contribution.
********************************************************************************/ ********************************************************************************/
package org.eclipse.rse.services.clientserver.java; package org.eclipse.rse.internal.services.clientserver.java;
/** /**
* This class represents reference information. * This class represents reference information.

View file

@ -14,7 +14,7 @@
* {Name} (company) - description of contribution. * {Name} (company) - description of contribution.
********************************************************************************/ ********************************************************************************/
package org.eclipse.rse.services.clientserver.java; package org.eclipse.rse.internal.services.clientserver.java;
/** /**
* This singleton class converts an array of unsigned bytes (represented by shorts) to UTF-8 * This singleton class converts an array of unsigned bytes (represented by shorts) to UTF-8

View file

@ -14,7 +14,7 @@
* {Name} (company) - description of contribution. * {Name} (company) - description of contribution.
********************************************************************************/ ********************************************************************************/
package org.eclipse.rse.services.clientserver.java; package org.eclipse.rse.internal.services.clientserver.java;
/** /**
* This class represents class information. * This class represents class information.

View file

@ -14,7 +14,7 @@
* {Name} (company) - description of contribution. * {Name} (company) - description of contribution.
********************************************************************************/ ********************************************************************************/
package org.eclipse.rse.services.clientserver.java; package org.eclipse.rse.internal.services.clientserver.java;
/** /**
* This class represents double information. * This class represents double information.

View file

@ -14,7 +14,7 @@
* {Name} (company) - description of contribution. * {Name} (company) - description of contribution.
********************************************************************************/ ********************************************************************************/
package org.eclipse.rse.services.clientserver.java; package org.eclipse.rse.internal.services.clientserver.java;
import java.io.File; import java.io.File;
import java.io.FileInputStream; import java.io.FileInputStream;

View file

@ -14,7 +14,7 @@
* {Name} (company) - description of contribution. * {Name} (company) - description of contribution.
********************************************************************************/ ********************************************************************************/
package org.eclipse.rse.services.clientserver.java; package org.eclipse.rse.internal.services.clientserver.java;
import java.io.DataInputStream; import java.io.DataInputStream;
import java.io.EOFException; import java.io.EOFException;
@ -46,7 +46,7 @@ public class EnhancedDataInputStream extends DataInputStream {
* @exception EOFException if this input stream reaches the end before * @exception EOFException if this input stream reaches the end before
* reading four bytes. * reading four bytes.
* @exception IOException if an I/O error occurs. * @exception IOException if an I/O error occurs.
* @see java.io.FilterInputStream#in * @see java.io.InputStream#read()
*/ */
public final long readUnsignedInt() throws IOException { public final long readUnsignedInt() throws IOException {
long ch1 = in.read(); long ch1 = in.read();

View file

@ -14,7 +14,7 @@
* {Name} (company) - description of contribution. * {Name} (company) - description of contribution.
********************************************************************************/ ********************************************************************************/
package org.eclipse.rse.services.clientserver.java; package org.eclipse.rse.internal.services.clientserver.java;
/** /**
* This class represents a field. * This class represents a field.

View file

@ -14,7 +14,7 @@
* {Name} (company) - description of contribution. * {Name} (company) - description of contribution.
********************************************************************************/ ********************************************************************************/
package org.eclipse.rse.services.clientserver.java; package org.eclipse.rse.internal.services.clientserver.java;
/** /**
* This class represents field reference inforamtion. * This class represents field reference inforamtion.

View file

@ -14,7 +14,7 @@
* {Name} (company) - description of contribution. * {Name} (company) - description of contribution.
********************************************************************************/ ********************************************************************************/
package org.eclipse.rse.services.clientserver.java; package org.eclipse.rse.internal.services.clientserver.java;
/** /**
* This class represents float information. * This class represents float information.

View file

@ -14,7 +14,7 @@
* {Name} (company) - description of contribution. * {Name} (company) - description of contribution.
********************************************************************************/ ********************************************************************************/
package org.eclipse.rse.services.clientserver.java; package org.eclipse.rse.internal.services.clientserver.java;
public interface IClassFileConstants { public interface IClassFileConstants {

View file

@ -14,7 +14,7 @@
* {Name} (company) - description of contribution. * {Name} (company) - description of contribution.
********************************************************************************/ ********************************************************************************/
package org.eclipse.rse.services.clientserver.java; package org.eclipse.rse.internal.services.clientserver.java;
/** /**
* This class represents integer information. * This class represents integer information.

View file

@ -14,7 +14,7 @@
* {Name} (company) - description of contribution. * {Name} (company) - description of contribution.
********************************************************************************/ ********************************************************************************/
package org.eclipse.rse.services.clientserver.java; package org.eclipse.rse.internal.services.clientserver.java;
/** /**
* This class represents * This class represents

View file

@ -14,7 +14,7 @@
* {Name} (company) - description of contribution. * {Name} (company) - description of contribution.
********************************************************************************/ ********************************************************************************/
package org.eclipse.rse.services.clientserver.java; package org.eclipse.rse.internal.services.clientserver.java;
/** /**
* This class represents long information. * This class represents long information.

View file

@ -14,7 +14,7 @@
* {Name} (company) - description of contribution. * {Name} (company) - description of contribution.
********************************************************************************/ ********************************************************************************/
package org.eclipse.rse.services.clientserver.java; package org.eclipse.rse.internal.services.clientserver.java;
/** /**
* This class represents a method. * This class represents a method.

View file

@ -14,7 +14,7 @@
* {Name} (company) - description of contribution. * {Name} (company) - description of contribution.
********************************************************************************/ ********************************************************************************/
package org.eclipse.rse.services.clientserver.java; package org.eclipse.rse.internal.services.clientserver.java;
/** /**
* This class represents method reference information. * This class represents method reference information.

View file

@ -14,7 +14,7 @@
* {Name} (company) - description of contribution. * {Name} (company) - description of contribution.
********************************************************************************/ ********************************************************************************/
package org.eclipse.rse.services.clientserver.java; package org.eclipse.rse.internal.services.clientserver.java;
/** /**
* This class represents name and type information. * This class represents name and type information.

View file

@ -14,7 +14,7 @@
* {Name} (company) - description of contribution. * {Name} (company) - description of contribution.
********************************************************************************/ ********************************************************************************/
package org.eclipse.rse.services.clientserver.java; package org.eclipse.rse.internal.services.clientserver.java;
/** /**
* This class represents a string information. * This class represents a string information.

View file

@ -14,7 +14,7 @@
* {Name} (company) - description of contribution. * {Name} (company) - description of contribution.
********************************************************************************/ ********************************************************************************/
package org.eclipse.rse.services.clientserver.java; package org.eclipse.rse.internal.services.clientserver.java;
/** /**
* This class represents a UTF-8 string. * This class represents a UTF-8 string.

View file

@ -21,6 +21,25 @@ import java.io.InputStream;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import org.eclipse.rse.internal.services.clientserver.java.AbstractAttributeInfo;
import org.eclipse.rse.internal.services.clientserver.java.AbstractCPInfo;
import org.eclipse.rse.internal.services.clientserver.java.ClassFileUTF8Reader;
import org.eclipse.rse.internal.services.clientserver.java.ClassInfo;
import org.eclipse.rse.internal.services.clientserver.java.DoubleInfo;
import org.eclipse.rse.internal.services.clientserver.java.EnhancedDataInputStream;
import org.eclipse.rse.internal.services.clientserver.java.FieldInfo;
import org.eclipse.rse.internal.services.clientserver.java.FieldRefInfo;
import org.eclipse.rse.internal.services.clientserver.java.FloatInfo;
import org.eclipse.rse.internal.services.clientserver.java.IClassFileConstants;
import org.eclipse.rse.internal.services.clientserver.java.IntegerInfo;
import org.eclipse.rse.internal.services.clientserver.java.InterfaceMethodRefInfo;
import org.eclipse.rse.internal.services.clientserver.java.LongInfo;
import org.eclipse.rse.internal.services.clientserver.java.MethodInfo;
import org.eclipse.rse.internal.services.clientserver.java.MethodRefInfo;
import org.eclipse.rse.internal.services.clientserver.java.NameAndTypeInfo;
import org.eclipse.rse.internal.services.clientserver.java.StringInfo;
import org.eclipse.rse.internal.services.clientserver.java.UTF8Info;
/** /**
* This is a basic class file parser that returns a package name from a class file. * This is a basic class file parser that returns a package name from a class file.
*/ */

View file

@ -107,7 +107,7 @@ public class ClassFileUtil {
/** /**
* Gets the qualified class name for the class represented by the given input stream. * Gets the qualified class name for the class represented by the given input stream.
* @param classFilePath the class file path. * @param stream the input stream representing a class.
* @throws IOException if an I/O error occurs. * @throws IOException if an I/O error occurs.
*/ */
public String getQualifiedClassName(InputStream stream) throws IOException { public String getQualifiedClassName(InputStream stream) throws IOException {