oracle.javatools.parser.java.v2.model
Interface JavaPackage
- All Superinterfaces: 
- Element, JavaElement, JavaHasAnnotations, JavaHasName
- All Known Implementing Classes: 
- AbstractPackage, BaseFileProvider.BasePackage, WrapperPackage
- public interface JavaPackage 
- extends JavaElement, JavaHasName, JavaHasAnnotations
The JavaType is the compiled representation of a JavaType.
 
 
 
| Methods inherited from interface oracle.javatools.parser.java.v2.model.JavaElement | 
| getElementKind, getFile, getModifiers, getOwner, getSourceElement, isDeprecated, isFinal, isHidden, isSourceElement, isSynthetic, printCompiledInfo | 
 
EMPTY_ARRAY
static final JavaPackage[] EMPTY_ARRAY
getName
java.lang.String getName()
- 
- Specified by:
- getNamein interface- JavaHasName
 
- 
- Returns:
- The fully qualified package name in dotted notation,
 e.g. "javax.swing". Empty if the root package.
 
getQualifiedName
java.lang.String getQualifiedName()
- 
 
- 
- Returns:
- The fully qualified package in dotted notation,
 e.g. "javax.swing". Empty if the root package.
 
getUniqueIdentifier
java.lang.String getUniqueIdentifier()
- Gets a unique identifier for this element. Two elements are equal iff
 their unique identifiers are equal.
 
- 
 
- 
- Returns:
- The unique identifier for this type.
 
getDeclaredClasses
java.util.Collection getDeclaredClasses()
- 
 
- 
- Returns:
- The array of all top-level classes. Clients who want all
 classes within a package must recurse. Returns a collection of
 JavaClass's.
 
getOwningPackage
JavaPackage getOwningPackage()
- 
 
- 
- Returns:
- The owning package.
 
getPackage
JavaPackage getPackage(java.lang.String name)
- 
 
- 
- Parameters:
- name- If empty, this will return the package itself.
- Returns:
- The sub packages bearing the input name. Null if none.
 
getPackages
java.util.Collection getPackages()
- 
 
- 
- Returns:
- The array of sub packages to the current package.
 
Copyright © 1997, 2011, Oracle. All rights reserved.