|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
Represents a package. A package contains a collection of compilation units and binary files.
| Method Summary | |
AstPackage |
findPackage(java.lang.String name)
Returns the subpackage with the specified name contained in this package. |
AstType |
findType(java.lang.String name)
Returns the binary type with the specified name contained in this package. |
AstClassFile[] |
getClassFiles()
Returns all of the binary files containing types in this package. |
AstCompilationUnit[] |
getCompilationUnits()
Returns all of the compilation units in this package. |
java.lang.String |
getElementName()
Returns the simple name of this package, for example "lang" for the java.lang package. |
java.lang.String |
getQualifiedName()
Returns the slash-separated package name of this package, for example "java/lang", or "" (the empty string),
for the default package. |
AstPackage[] |
getSubpackages()
Returns all of the subpackages this package contains. |
boolean |
isDefaultPackage()
Returns whether this package fragment is a default package. |
| Methods inherited from interface com.togethersoft.sca.ast.AstDeclaration |
getDeclaredModifiers, getModifiers, getModifiersList, getReferences, isAbstract, isFinal, isNative, isPackage, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVolatile, setDeclaredModifiers, swapWith |
| Methods inherited from interface com.togethersoft.sca.ast.AstObject |
addComment, getChildren, getComments, getCompilationUnit, getDeclaringMethod, getDeclaringType, getObjectKind, getPackage, getParent, getPosition, isDeleted, remove, replaceWith, replaceWith, setPosition, setPositionAfter, visitExpressions, visitStatements |
| Method Detail |
public AstPackage findPackage(java.lang.String name)
null, if the package with the specified name
does not exist.name - specifies simple name of the package, for example
"lang".public AstType findType(java.lang.String name)
null, if the type with the specified name does not exist.name - specifies simple name of the type, for example
"String".public AstClassFile[] getClassFiles()
Note: it is possible that a package contains only source files, in which case this method returns an empty collection.
AstClassFilepublic AstCompilationUnit[] getCompilationUnits()
Note: it is possible that a package contains only class files, in which case this method returns an empty collection.
AstCompilationUnitpublic java.lang.String getElementName()
"lang" for the java.lang package.getElementName in interface AstElementcom.togethersoft.sca.ast.AstElementpublic java.lang.String getQualifiedName()
"java/lang", or "" (the empty string),
for the default package.getQualifiedName in interface AstMembercom.togethersoft.sca.ast.AstMemberpublic AstPackage[] getSubpackages()
public boolean isDefaultPackage()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||