Java DevelopersGuide

(Difference between revisions)
(Created page with '__NOTOC__ ==Java Infrastructure Developer's guide (AKA Concepts & HowTos) (AKA Migration Guide)== {{error| This is a living document. Some parts of it are still unwritten. I…')
(How Tos: How do I get the packages contained in a jar/library/dependency)
 
(6 intermediate revisions not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
-
==Java Infrastructure Developer's guide (AKA Concepts & HowTos) (AKA Migration Guide)==
+
=Java Infrastructure Developer's guide (AKA Concepts & HowTos)=
-
{{error|
 
-
This is a living document. Some parts of it are still unwritten. If you are interested in changes in this document you might want to subscribe to this page's RSS feed.
 
-
}}
 
-
===Concepts===
+
==Concepts==
[[JavaHT_Overview| Overview]]
[[JavaHT_Overview| Overview]]
Line 32: Line 29:
[[JavaHT_ClassFilesVsSignatureFiles| Class Files vs. Signature Files]]
[[JavaHT_ClassFilesVsSignatureFiles| Class Files vs. Signature Files]]
-
===How Tos===
+
==How Tos==
[[JavaHT_SetupModule| How to setup a module which uses the Java related APIs]]
[[JavaHT_SetupModule| How to setup a module which uses the Java related APIs]]
Line 50: Line 47:
[[JavaHT_GetElementFromFQN| How do I get an ElementHandle if all I have is the Project and the class name?]]
[[JavaHT_GetElementFromFQN| How do I get an ElementHandle if all I have is the Project and the class name?]]
 +
[[JavaHT_GetLibrariesForModule| How do I get a list of libraries/dependencies of a project?]]
-
===='''All Concepts'''====
+
[[JavaHT_GetSourceLocationOfWrappedJar| How do I get the source location of a wrapped jar?]]
-
[{InsertPage page='JavaHT_Overview'
+
-
            style='margin: 10px; padding: 5px;'
+
-
            }]
+
-
[{InsertPage page='JavaHT_JavacPhases'
+
[[JavaHT_GetPackagesOfAJar| How do I get the packages contained in a jar/library/dependency?]]
-
            style='margin: 10px; padding: 5px;'
+
-
            }]
+
-
[{InsertPage page='JavaHT_TreesElementsTypesTokens'
+
== Tutorials ==
-
            style='margin: 10px; padding: 5px;'
+
http://platform.netbeans.org/tutorials/nbm-copyfqn.html
-
            }]
+
-
[{InsertPage page='JavaHT_Conversions_TreesElementsTypes'
+
http://platform.netbeans.org/tutorials/nbm-code-generator.html
-
            style='margin: 10px; padding: 5px;'
+
-
            }]
+
-
[{InsertPage page='JavaHT_IDEIntegration'
+
http://platform.netbeans.org/tutorials/nbm-java-hint.html
-
            style='margin: 10px; padding: 5px;'
+
-
            }]
+
-
[{InsertPage page='JavaHT_GettingToJavacInfromation'
+
http://netbeans.org/projects/platform/sources/platform-content/content/trunk/tutorials/60/nbm-whichelement.html?raw=true
-
            style='margin: 10px; padding: 5px;'
+
-
            }]
+
-
 
+
-
[{InsertPage page='JavaHT_RegisteringRunningTasks'
+
-
            style='margin: 10px; padding: 5px;'
+
-
            }]
+
-
 
+
-
[{InsertPage page='JavaHT_ElementHandle'
+
-
            style='margin: 10px; padding: 5px;'
+
-
            }]
+
-
 
+
-
[{InsertPage page='JavaHT_TreePathHandle'
+
-
            style='margin: 10px; padding: 5px;'
+
-
            }]
+
-
 
+
-
[{InsertPage page='JavaHT_ComparingTreesElements'
+
-
            style='margin: 10px; padding: 5px;'
+
-
            }]
+
-
 
+
-
[{InsertPage page='JavaHT_SourceFilesVsClassFiles'
+
-
            style='margin: 10px; padding: 5px;'
+
-
            }]
+
-
 
+
-
[{InsertPage page='JavaHT_ClassFilesVsSignatureFiles'
+
-
            style='margin: 10px; padding: 5px;'
+
-
            }]
+
-
 
+
-
===='''All HowTos'''====
+
-
[{InsertPage page='JavaHT_SetupModule'
+
-
            style='margin: 10px; padding: 5px;'
+
-
            }]
+
-
 
+
-
[{InsertPage page='JavaHT_GetIntoJavacContext'
+
-
            style='margin: 10px; padding: 5px;'
+
-
            }]
+
-
 
+
-
[{InsertPage page='JavaHT_GetAllMembers'
+
-
            style='margin: 10px; padding: 5px;'
+
-
            }]
+
-
 
+
-
[{InsertPage page='JavaHT_Modification'
+
-
            style='margin: 10px; padding: 5px;'
+
-
            }]
+
-
 
+
-
[{InsertPage page='JavaHT_TreeMaker'
+
-
            style='margin: 10px; padding: 5px;'
+
-
            }]
+
-
 
+
-
[{InsertPage page='JavaHT_TreeMakerQA'
+
-
            style='margin: 10px; padding: 5px;'
+
-
            }]
+
-
 
+
-
[{InsertPage page='JavaHT_FindUsagesOfClass'
+
-
            style='margin: 10px; padding: 5px;'
+
-
            }]
+

Current revision as of 21:05, 29 January 2015

Java Infrastructure Developer's guide (AKA Concepts & HowTos)

Concepts

Overview

The Javac phases

Trees, Elements, Types and Tokens

Conversions between trees and elements and types...

Integration with the IDE

Getting to the javac information = writting a java infrastructure task

Registering/running tasks

The ElementHandle

The TreePathHandle

Comparing Trees and Elements

Source files vs. Class Files

Class Files vs. Signature Files

How Tos

How to setup a module which uses the Java related APIs

How do I Get into the Javac Context for a File?

How do I Get All Methods/Fields/Constructors of a Class?

How do I do modification to a source file?

How to work with TreeMaker

TreeMaker difficulties, Questions & Answers

How do I Find All Usages of a Class?

How do I get an ElementHandle if all I have is the Project and the class name?

How do I get a list of libraries/dependencies of a project?

How do I get the source location of a wrapped jar?

How do I get the packages contained in a jar/library/dependency?

Tutorials

http://platform.netbeans.org/tutorials/nbm-copyfqn.html

http://platform.netbeans.org/tutorials/nbm-code-generator.html

http://platform.netbeans.org/tutorials/nbm-java-hint.html

http://netbeans.org/projects/platform/sources/platform-content/content/trunk/tutorials/60/nbm-whichelement.html?raw=true

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo