|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.computing.ai.expertsystem.compiler.ImportList
public class ImportList
A list of import statements.
| Constructor Summary | |
|---|---|
ImportList()
Class constructor for rule bases in the default package. |
|
ImportList(java.lang.String packageName)
Class constructor. |
|
| Method Summary | |
|---|---|
void |
addImport(java.lang.String statement)
Adds an import statement to this list. |
java.lang.Class |
getRepresentingClass(java.lang.String ident)
Returns the class that is represented by the given identifier for this import list. |
java.lang.String[] |
possibleFileNames(java.lang.String ident)
Returns the possible file names an identifier can represent, based on this import list. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImportList()
public ImportList(java.lang.String packageName)
packageName - the package of the rule base.| Method Detail |
|---|
public java.lang.String[] possibleFileNames(java.lang.String ident)
ident - the name of the identifier.
public void addImport(java.lang.String statement)
statement - the statement to be added.
public java.lang.Class getRepresentingClass(java.lang.String ident)
throws java.lang.ClassNotFoundException,
ImportException
ident - the identifier that represents a class.
java.lang.ClassNotFoundException - if the ident doesn't represent any class,
given the import statements of this list.
ImportException - if the ident represents more than one class,
given the import statements of this list.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||