Java Doc for Package.java in  » Code-Analyzer » beautyJ » de » gulden » util » javasource » 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 » Code Analyzer » beautyJ » de.gulden.util.javasource 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   de.gulden.util.javasource.SourceObject
      de.gulden.util.javasource.Package

Package
public class Package extends SourceObject implements PackageMember(Code)
Represents a Java package.
author:
   Jens Gulden
version:
   1.1


Field Summary
public  Vectorchildren
     The children.
public  Packagefather
     The father.
public  VectormyClass
     The my class.

Constructor Summary
public  Package()
     Creates a new instance of Package.

Method Summary
public  voidadd(PackageMember p)
    
public  voidaddToPackage(Package p)
     Add this package to its parent package p.
public  ElementbuildXML(Document d)
     Output this object as XML.
public  ClassfindClass(String qualifiedName)
     Returns a Class object that carries the qualifiedName, if the class is contained in this package, or if it is contained in any sub-package of this package, or is an inner class of any class inside this package.
public  PackagefindPackage(String qualifiedName)
     Returns a Package object that carries the qualifiedName, if the package is this package, or if it is contained in this or any sub-package of this package.
public  NamedIteratorgetAllClasses()
     Returns an iterator that carries all classes and interfaces in this package and recursively in all its sub-packages.
public  PackagegetBasePackage()
     Returns the root package.
public  NamedIteratorgetClasses()
     Returns an iterator that carries all classes and interfaces in this package.
public  NamedIteratorgetInnerPackages()
     Returns an iterator that carries all direct sub-packages of this package.
public  PackagegetParentPackage()
     Returns the parent package of this package.
static  StringgetParentPackageName(String n)
     Removes the last part of the package name from the end of the qualified name string.
protected  voidinitEmptyFathers()
     Make sure that all parent packages exist.
 voidinitFromAST(Node node)
     Initialize this object from parsed Java code.
public  voidinitFromXML(Element element)
     Initialize this object from XML.
public  booleanisBasePackage()
     Tests whether this represents the root package of a Java classpath.
public static  booleanisSourcePackage(Package base, String name)
    
 voidregisterClass(Class c)
     Add a class to this package.
 voidregisterPackage(Package p)
     Add a package to this package.
public  voidsetName(String qualifiedName)
     Sets the name.
static  booleanvectorContainsReference(Vector v, Object o)
     Tests whether an objects reference is contained in the Vector.

Field Detail
children
public Vector children(Code)
The children.



father
public Package father(Code)
The father.



myClass
public Vector myClass(Code)
The my class.




Constructor Detail
Package
public Package()(Code)
Creates a new instance of Package.




Method Detail
add
public void add(PackageMember p)(Code)



addToPackage
public void addToPackage(Package p)(Code)
Add this package to its parent package p.



buildXML
public Element buildXML(Document d)(Code)
Output this object as XML. The XML tag.
See Also:   Package.initFromXML



findClass
public Class findClass(String qualifiedName)(Code)
Returns a Class object that carries the qualifiedName, if the class is contained in this package, or if it is contained in any sub-package of this package, or is an inner class of any class inside this package. The Class representation, or null if not found.



findPackage
public Package findPackage(String qualifiedName)(Code)
Returns a Package object that carries the qualifiedName, if the package is this package, or if it is contained in this or any sub-package of this package. The Package representation, or null if not found.



getAllClasses
public NamedIterator getAllClasses()(Code)
Returns an iterator that carries all classes and interfaces in this package and recursively in all its sub-packages.



getBasePackage
public Package getBasePackage()(Code)
Returns the root package.



getClasses
public NamedIterator getClasses()(Code)
Returns an iterator that carries all classes and interfaces in this package.



getInnerPackages
public NamedIterator getInnerPackages()(Code)
Returns an iterator that carries all direct sub-packages of this package.



getParentPackage
public Package getParentPackage()(Code)
Returns the parent package of this package.



getParentPackageName
static String getParentPackageName(String n)(Code)
Removes the last part of the package name from the end of the qualified name string.



initEmptyFathers
protected void initEmptyFathers()(Code)
Make sure that all parent packages exist.



initFromAST
void initFromAST(Node node)(Code)
Initialize this object from parsed Java code.



initFromXML
public void initFromXML(Element element) throws IOException(Code)
Initialize this object from XML.
Parameters:
  element - The XML tag.
throws:
  IOException - if an i/o error occurs



isBasePackage
public boolean isBasePackage()(Code)
Tests whether this represents the root package of a Java classpath. (A class C is member of the root package if you can invoke it by simply calling "java C".)



isSourcePackage
public static boolean isSourcePackage(Package base, String name)(Code)



registerClass
void registerClass(Class c)(Code)
Add a class to this package. (Without caring about the class's own reference to this.)



registerPackage
void registerPackage(Package p)(Code)
Add a package to this package. (Without caring about the package's own reference to this.)



setName
public void setName(String qualifiedName)(Code)
Sets the name.



vectorContainsReference
static boolean vectorContainsReference(Vector v, Object o)(Code)
Tests whether an objects reference is contained in the Vector. (Vector.contains() tests if elements match calling equals().)



Fields inherited from de.gulden.util.javasource.SourceObject
public Package myPackage(Code)(Java Doc)
protected String name(Code)(Java Doc)
public static String nl(Code)(Java Doc)

Methods inherited from de.gulden.util.javasource.SourceObject
public Element buildXML(Document d)(Code)(Java Doc)
public boolean equals(Object o)(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public Package getPackage()(Code)(Java Doc)
public String getSignature()(Code)(Java Doc)
public String getUnqualifiedName()(Code)(Java Doc)
protected String getXMLName()(Code)(Java Doc)
void initFromAST(Node rootnode)(Code)(Java Doc)
public void initFromXML(Element element) throws IOException(Code)(Java Doc)
public void setName(String n)(Code)(Java Doc)
static void stringsIntoVector(Object[] s, Vector v)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
static String unqualify(String n)(Code)(Java Doc)
static String unqualify(String n, int withParents)(Code)(Java Doc)
static void write(OutputStream out, String s) throws IOException(Code)(Java Doc)

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.