Java Doc for JdtUtils.java in  » Byte-Code » asm » de » loskutov » bco » ui » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Byte Code » asm » de.loskutov.bco.ui 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   de.loskutov.bco.ui.JdtUtils

JdtUtils
public class JdtUtils (Code)

author:
   Andrei

Inner Class :static class SourceOffsetComparator implements Comparator
Inner Class :static class AnonymClassComparator implements Comparator



Method Summary
public static  InputStreamcreateInputStream(IJavaElement javaElement)
    
public static  StringcreateMethodSignature(IMethod iMethod)
    
static  intgetAnonCompilePriority(IJavaElement javaElement, IJavaElement firstAncestor, IJavaElement topAncestor, boolean is50OrHigher)
     1) from instance init 2) from deepest inner from instance init (deepest first) 3) from static init 4) from deepest inner from static init (deepest first) 5) from deepest inner (deepest first) 6) regular anon classes from main class
Note, that nested inner anon.
public static  StringgetByteCodePath(IJavaElement javaElement)
    
public static  ClassLoadergetClassLoader(IJavaElement type)
    
public static  IJavaElementgetElementAtOffset(IJavaElement input, ITextSelection selection)
    
public static  StringgetElementName(IJavaElement javaElement)
     Cite: jdk1.1.8/docs/guide/innerclasses/spec/innerclasses.doc10.html: For the sake of tools, there are some additional requirements on the naming of an inaccessible class N.
public static  ITypegetEnclosingType(IJavaElement childEl)
    
static  ITypegetFirstAncestor(IJavaElement javaElement)
    
static  IJavaElementgetFirstNonAnonymous(IJavaElement javaElement, IJavaElement topAncestor)
    
public static  StringgetFullBytecodeName(IClassFile classFile)
    
public static  IClassFilegetInnerType(IClassFile cf, DecompiledClass dc, String typeSignature)
    
static  IJavaElementgetLastAncestor(IJavaElement javaElement, int elementType)
    
public static  IJavaElementgetMethod(IParent parent, String signature)
    
public static  StringgetMethodSignature(IJavaElement childEl)
    
static  intgetTopAncestorDistance(IJavaElement javaElement, IJavaElement topAncestor)
    
public static  booleanis50OrHigher(IJavaElement javaElt)
     Modified copy from JavaModelUtil.
public static  booleanisAbstractOrInterface(IJavaElement javaEl)
     Check if java element is an interface or abstract method or a method from interface.



Method Detail
createInputStream
public static InputStream createInputStream(IJavaElement javaElement)(Code)

Parameters:
  javaElement - new generated input stream for given element bytecode class file, or nullif class file cannot be found or this element is not from java source path



createMethodSignature
public static String createMethodSignature(IMethod iMethod) throws JavaModelException(Code)



getAnonCompilePriority
static int getAnonCompilePriority(IJavaElement javaElement, IJavaElement firstAncestor, IJavaElement topAncestor, boolean is50OrHigher)(Code)
1) from instance init 2) from deepest inner from instance init (deepest first) 3) from static init 4) from deepest inner from static init (deepest first) 5) from deepest inner (deepest first) 6) regular anon classes from main class
Note, that nested inner anon. classes which do not have different non-anon. inner class ancestors, are compiled in they nesting order, opposite to rule 2)
Parameters:
  javaElement - priority - lesser mean wil be compiled later, a value > 0
throws:
  JavaModelException -



getByteCodePath
public static String getByteCodePath(IJavaElement javaElement)(Code)
Works only for eclipse - managed/generated bytecode, ergo not with imported classes/jars
Parameters:
  javaElement - full os-specific file path to .class resource, containing given element



getClassLoader
public static ClassLoader getClassLoader(IJavaElement type)(Code)

Parameters:
  type -



getElementAtOffset
public static IJavaElement getElementAtOffset(IJavaElement input, ITextSelection selection) throws JavaModelException(Code)
Modified copy from org.eclipse.jdt.internal.ui.actions.SelectionConverter
Parameters:
  input -
Parameters:
  selection - null, if selection is null or could not be resolved to java element
throws:
  JavaModelException -



getElementName
public static String getElementName(IJavaElement javaElement)(Code)
Cite: jdk1.1.8/docs/guide/innerclasses/spec/innerclasses.doc10.html: For the sake of tools, there are some additional requirements on the naming of an inaccessible class N. Its bytecode name must consist of the bytecode name of an enclosing class (the immediately enclosing class, if it is a member), followed either by `$' and a positive decimal numeral chosen by the compiler, or by `$' and the simple name of N, or else by both (in that order). Moreover, the bytecode name of a block-local N must consist of its enclosing package member T, the characters `$1$', and N, if the resulting name would be unique.
Note, that this rule was changed for static blocks after 1.5 jdk.
Parameters:
  javaElement - simply element name



getEnclosingType
public static IType getEnclosingType(IJavaElement childEl)(Code)

Parameters:
  childEl - may be null first ancestor with IJavaElement.TYPE element type, or null



getFirstAncestor
static IType getFirstAncestor(IJavaElement javaElement)(Code)

Parameters:
  javaElement - null, if javaElement is top level class



getFirstNonAnonymous
static IJavaElement getFirstNonAnonymous(IJavaElement javaElement, IJavaElement topAncestor)(Code)

Parameters:
  javaElement - first non-anonymous ancestor



getFullBytecodeName
public static String getFullBytecodeName(IClassFile classFile)(Code)

Parameters:
  classFile - full qualified bytecode name of given class



getInnerType
public static IClassFile getInnerType(IClassFile cf, DecompiledClass dc, String typeSignature)(Code)

Parameters:
  cf -
Parameters:
  dc - inner type which has the same name as the given string, or null



getLastAncestor
static IJavaElement getLastAncestor(IJavaElement javaElement, int elementType)(Code)



getMethod
public static IJavaElement getMethod(IParent parent, String signature)(Code)



getMethodSignature
public static String getMethodSignature(IJavaElement childEl)(Code)

Parameters:
  childEl - method signature, if given java element is either initializer or method,otherwise returns null.



getTopAncestorDistance
static int getTopAncestorDistance(IJavaElement javaElement, IJavaElement topAncestor)(Code)

Parameters:
  javaElement - distance to given ancestor, 0 if it is the same, -1 if ancestor with typeIJavaElement.TYPE does not exist



is50OrHigher
public static boolean is50OrHigher(IJavaElement javaElt)(Code)
Modified copy from JavaModelUtil.
Parameters:
  javaElt - true, if corresponding java project has compiler setting to generatebytecode for jdk 1.5 and above



isAbstractOrInterface
public static boolean isAbstractOrInterface(IJavaElement javaEl)(Code)
Check if java element is an interface or abstract method or a method from interface.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.