|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
The AST model is the root element of a Java project representation. It comprises the top-level packages that contains subpackages, compilation units, and class files. The AST model also provides search facilities.
| Method Summary | |
void |
addModelChangeListener(AstModelChangeListener listener)
Registeres a listener that will reveive notifications about model updates. |
AstPackage |
findPackage(java.lang.String name)
Returns the top-level package with the specified name. |
AstType |
findType(java.lang.String name)
Returns the type with the specified name. |
AstPackage |
getDefaultPackage()
Returns the default package. |
AstPackage[] |
getPackages()
Returns the top-level packages in this model, including the default package. |
void |
removeModelChangeListener(AstModelChangeListener listener)
Removes a model change listener. |
| Method Detail |
public void addModelChangeListener(AstModelChangeListener listener)
public AstPackage findPackage(java.lang.String name)
null, if the package with the specified name does not exist.name - specifies fully qualified name of the package, for example
"java/lang".public AstType findType(java.lang.String name)
null, if the type with the specified name
does not exist.name - specifies fully qualified name of the type, for example
"java/lang/String".public AstPackage getDefaultPackage()
public AstPackage[] getPackages()
public void removeModelChangeListener(AstModelChangeListener listener)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||