Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-core-dev] Creating an IClassFileReader

Would something like this work ?

IClassFileReader classFileReader;
IPath filePath = classfile.getPath();
IPackageFragmentRoot root = (IPackageFragmentRoot)
classfile.getAncestor(IJavaElement.PACKAGE_FRAGMENT_ROOT);
if (root != null && root.isExternal()){
      classFileReader =
ToolFactory.createDefaultClassFileReader(root.getPath().toOSString(),
filePath.toOSString(), IClassFileReader.ALL);
} else {
      classFileReader =
ToolFactory.createDefaultClassFileReader(filePath.toOSString(),
IClassFileReader.ALL);
}




                                                                                                                                               
                      Kai-Uwe Maetzel                                                                                                          
                      <maetzel@xxxxxxx>           To:      jdt-core-dev@xxxxxxxxxxx                                                            
                      Sent by:                    cc:                                                                                          
                      jdt-core-dev-admin@         Subject: [jdt-core-dev] Creating an IClassFileReader                                         
                      eclipse.org                                                                                                              
                                                                                                                                               
                                                                                                                                               
                      05/16/2002 01:11 PM                                                                                                      
                      Please respond to                                                                                                        
                      jdt-core-dev                                                                                                             
                                                                                                                                               
                                                                                                                                               



Having an IClassFile, is there any simple way to create an IClassFileReader

for this class file.
Thanks.

_______________________________________________
jdt-core-dev mailing list
jdt-core-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/jdt-core-dev






Back to the top