Java Doc for RetoucheUtils.java in  » IDE-Netbeans » refactoring.api » org » netbeans » modules » refactoring » java » 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 » IDE Netbeans » refactoring.api » org.netbeans.modules.refactoring.java 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.modules.refactoring.java.RetoucheUtils

RetoucheUtils
public class RetoucheUtils (Code)

author:
   Jan Becicka


Field Summary
public static volatile  booleancancel
    


Method Summary
public static  voidcopyJavadoc(Element elm, Tree tree, WorkingCopy wc)
     Copies javadoc from elm to newly created tree.
public static  booleanelementExistsIn(TypeElement target, Element member, CompilationInfo info)
    
public static  Collection<FileObject>elementsToFile(Collection<? extends Element> elements, ClasspathInfo cpInfo)
    
public static  TreePathfindEnclosingClass(CompilationInfo javac, TreePath path, boolean isClass, boolean isInterface, boolean isEnum, boolean isAnnotation, boolean isAnonymous)
     finds the nearest enclosing ClassTree on path that is class or interface or enum or annotation type and is or is not annonymous.
public static  voidfindUsedGenericTypes(Types utils, List<TypeMirror> typeArgs, List<TypeMirror> result, TypeMirror tm)
     Finds type parameters from typeArgs list that are referenced by tm type.
public static  FileObjectgetClassPathRoot(URL url)
    
public static  ClasspathInfogetClasspathInfoFor(FileObject... files)
    
public static  ClasspathInfogetClasspathInfoFor(boolean dependencies, FileObject... files)
    
public static  ClasspathInfogetClasspathInfoFor(boolean dependencies, boolean backSource, FileObject... files)
    
public static  ClasspathInfogetClasspathInfoFor(TreePathHandle... handles)
    
public static  ElementHandlegetElementHandle(TreePathHandle tph)
    
public static  ElementKindgetElementKind(TreePathHandle tph)
    
public static  FileObjectgetFileObject(TreePathHandle handle)
    
public static  StringgetHtml(String text)
    
public static  Set<ElementHandle<TypeElement>>getImplementorsAsHandles(ClassIndex idx, ClasspathInfo cpInfo, TypeElement el)
    
public static  FileObjectgetOrCreateFolder(URL url)
    
public static  Collection<ExecutableElement>getOverridenMethods(ExecutableElement e, CompilationInfo info)
    
public static  Collection<ExecutableElement>getOverridingMethods(ExecutableElement e, CompilationInfo info)
    
public static  StringgetPackageName(FileObject folder)
    
public static  StringgetPackageName(CompilationUnitTree unit)
    
public static  StringgetPackageName(URL url)
    
public static  StringgetQualifiedName(TreePathHandle tph)
    
public static  StringgetSimpleName(TreePathHandle tph)
    
public static  Collection<TypeElement>getSuperTypes(TypeElement type, CompilationInfo info)
    
public static  Collection<TypeElement>getSuperTypes(TypeElement type, CompilationInfo info, boolean sourceOnly)
    
public static  Collection<FileObject>getSuperTypesFiles(TreePathHandle handle)
    
public static  Stringhtmlize(String input)
    
public static  booleaninvokeAfterScanFinished(Runnable runnable, String actionName)
     This is a helper method to provide support for delaying invocations of actions depending on java model.
public static  booleanisClasspathRoot(FileObject fo)
    
public static  booleanisElementInOpenProject(FileObject f)
    
public static  booleanisFileInOpenProject(FileObject file)
    
public static  booleanisFromLibrary(Element element, ClasspathInfo info)
    
public static  booleanisJavaFile(FileObject f)
    
public static  booleanisOnSourceClasspath(FileObject fo)
    
public static  booleanisRefactorable(FileObject file)
    
public static  booleanisValidPackageName(String name)
    
public static  List<TypeMirror>resolveTypeParamsAsTypes(List<? extends Element> typeParams)
    
public static  booleantypeExist(TreePathHandle tph, String fqn)
    
public static  TypeElementtypeToElement(TypeMirror type, CompilationInfo info)
    

Field Detail
cancel
public static volatile boolean cancel(Code)





Method Detail
copyJavadoc
public static void copyJavadoc(Element elm, Tree tree, WorkingCopy wc)(Code)
Copies javadoc from elm to newly created tree.
Parameters:
  elm - element containing some javadoc
Parameters:
  tree - newly created tree where the javadoc should be copied to
Parameters:
  wc - working copy where the tree belongs to



elementExistsIn
public static boolean elementExistsIn(TypeElement target, Element member, CompilationInfo info)(Code)



elementsToFile
public static Collection<FileObject> elementsToFile(Collection<? extends Element> elements, ClasspathInfo cpInfo)(Code)



findEnclosingClass
public static TreePath findEnclosingClass(CompilationInfo javac, TreePath path, boolean isClass, boolean isInterface, boolean isEnum, boolean isAnnotation, boolean isAnonymous)(Code)
finds the nearest enclosing ClassTree on path that is class or interface or enum or annotation type and is or is not annonymous. In case no ClassTree is found the first top level ClassTree is returned. Especially useful for selecting proper tree to refactor.
Parameters:
  javac - javac
Parameters:
  path - path to search
Parameters:
  isClass - stop on class
Parameters:
  isInterface - stop on interface
Parameters:
  isEnum - stop on enum
Parameters:
  isAnnotation - stop on annotation type
Parameters:
  isAnonymous - check if class or interface is annonymous path to the enclosing ClassTree



findUsedGenericTypes
public static void findUsedGenericTypes(Types utils, List<TypeMirror> typeArgs, List<TypeMirror> result, TypeMirror tm)(Code)
Finds type parameters from typeArgs list that are referenced by tm type.
Parameters:
  utils - compilation type utils
Parameters:
  typeArgs - modifiable list of type parameters to search; found types will be removed (performance reasons).
Parameters:
  result - modifiable list that will contain referenced type parameters
Parameters:
  tm - parametrized type to analyze



getClassPathRoot
public static FileObject getClassPathRoot(URL url) throws IOException(Code)



getClasspathInfoFor
public static ClasspathInfo getClasspathInfoFor(FileObject... files)(Code)



getClasspathInfoFor
public static ClasspathInfo getClasspathInfoFor(boolean dependencies, FileObject... files)(Code)



getClasspathInfoFor
public static ClasspathInfo getClasspathInfoFor(boolean dependencies, boolean backSource, FileObject... files)(Code)



getClasspathInfoFor
public static ClasspathInfo getClasspathInfoFor(TreePathHandle... handles)(Code)



getElementHandle
public static ElementHandle getElementHandle(TreePathHandle tph)(Code)



getElementKind
public static ElementKind getElementKind(TreePathHandle tph)(Code)



getFileObject
public static FileObject getFileObject(TreePathHandle handle)(Code)



getHtml
public static String getHtml(String text)(Code)



getImplementorsAsHandles
public static Set<ElementHandle<TypeElement>> getImplementorsAsHandles(ClassIndex idx, ClasspathInfo cpInfo, TypeElement el)(Code)



getOrCreateFolder
public static FileObject getOrCreateFolder(URL url) throws IOException(Code)
creates or finds FileObject according to
Parameters:
  url - FileObject



getOverridenMethods
public static Collection<ExecutableElement> getOverridenMethods(ExecutableElement e, CompilationInfo info)(Code)



getOverridingMethods
public static Collection<ExecutableElement> getOverridingMethods(ExecutableElement e, CompilationInfo info)(Code)



getPackageName
public static String getPackageName(FileObject folder)(Code)



getPackageName
public static String getPackageName(CompilationUnitTree unit)(Code)



getPackageName
public static String getPackageName(URL url)(Code)



getQualifiedName
public static String getQualifiedName(TreePathHandle tph)(Code)



getSimpleName
public static String getSimpleName(TreePathHandle tph)(Code)



getSuperTypes
public static Collection<TypeElement> getSuperTypes(TypeElement type, CompilationInfo info)(Code)



getSuperTypes
public static Collection<TypeElement> getSuperTypes(TypeElement type, CompilationInfo info, boolean sourceOnly)(Code)



getSuperTypesFiles
public static Collection<FileObject> getSuperTypesFiles(TreePathHandle handle)(Code)



htmlize
public static String htmlize(String input)(Code)



invokeAfterScanFinished
public static boolean invokeAfterScanFinished(Runnable runnable, String actionName)(Code)
This is a helper method to provide support for delaying invocations of actions depending on java model. See UI Specification.
Behavior of this method is following:
If classpath scanning is not in progress, runnable's run() is called.
If classpath scanning is in progress, modal cancellable notification dialog with specified tile is opened. As soon as classpath scanning finishes, this dialog is closed and runnable's run() is called. This method must be called in AWT EventQueue. Runnable is performed in AWT thread.
Parameters:
  runnable - Runnable instance which will be called.
Parameters:
  actionName - Title of wait dialog. true action was cancelled
false action was performed



isClasspathRoot
public static boolean isClasspathRoot(FileObject fo)(Code)



isElementInOpenProject
public static boolean isElementInOpenProject(FileObject f)(Code)



isFileInOpenProject
public static boolean isFileInOpenProject(FileObject file)(Code)



isFromLibrary
public static boolean isFromLibrary(Element element, ClasspathInfo info)(Code)



isJavaFile
public static boolean isJavaFile(FileObject f)(Code)



isOnSourceClasspath
public static boolean isOnSourceClasspath(FileObject fo)(Code)



isRefactorable
public static boolean isRefactorable(FileObject file)(Code)



isValidPackageName
public static boolean isValidPackageName(String name)(Code)



resolveTypeParamsAsTypes
public static List<TypeMirror> resolveTypeParamsAsTypes(List<? extends Element> typeParams)(Code)
translates list of elements to list of types
Parameters:
  typeParams - elements types



typeExist
public static boolean typeExist(TreePathHandle tph, String fqn)(Code)



typeToElement
public static TypeElement typeToElement(TypeMirror type, CompilationInfo info)(Code)



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.