|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.Reader
java.io.BufferedReader
au.gov.tas.dpiwe.mr.tool.HomeSourceFileScanner
public class HomeSourceFileScanner
HomeSourceFileScanner is currently a very primitive Java source file reader needed by the DeploymentContainer to extract formal parameter lists from home interface source files.
| Field Summary | |
|---|---|
protected List |
importTargets
The targets of the import clauses in the file. |
protected Messenger |
messenger
If we are logging, the messenger to log to. |
protected Map |
methods
A mapping from finder method signatures to methods. |
protected int |
parameterCountOnLongest
The length of the longest finder method signature found so far. |
protected List |
parameterTypesOnLongest
The signature of the finder method with the most parameters so far. |
protected HomeSourceFileScanner |
superclassReader
A reference to a scanner for the superinterface. |
| Fields inherited from class java.io.Reader |
|---|
lock |
| Constructor Summary | |
|---|---|
HomeSourceFileScanner(Reader reader,
HomeSourceFileScanner superclassReader)
Creates a new home source file scanner. |
|
HomeSourceFileScanner(Reader reader,
HomeSourceFileScanner superclassReader,
Messenger messenger)
Creates a new home source file scanner with logging enabled. |
|
| Method Summary | |
|---|---|
void |
close()
Closes both this reader and any superinterface readers. |
List |
getImportTargets()
Get the targets referenced in the import clauses. |
List |
getNames()
Get the formal parameter names of the longest findWhereFieldsEqual() method. |
List |
getNames(Class[] parameterTypes)
Get the formal parameter names of the specified findWhereFieldsEqual() method. |
List |
getNamesOrEmptyListIfNone()
Get the formal parameter names of the longest findWhereFieldsEqual() method. |
List |
getTypes()
Get the parameter types of the longest findWhereFieldsEqual() method. |
List |
getTypes(Class[] parameterTypes)
Get the parameter types of the specified findWhereFieldsEqual() method. |
List |
getTypesOrEmptyListIfNone()
Get the parameter types of the longest findWhereFieldsEqual() method. |
void |
scanHomeSourceFile()
Scans the source file and populates the scanner's internal data structures. |
| Methods inherited from class java.io.BufferedReader |
|---|
mark, markSupported, read, read, readLine, ready, reset, skip |
| Methods inherited from class java.io.Reader |
|---|
read, read |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Map methods
protected int parameterCountOnLongest
protected List parameterTypesOnLongest
protected HomeSourceFileScanner superclassReader
protected List importTargets
protected Messenger messenger
| Constructor Detail |
|---|
public HomeSourceFileScanner(Reader reader,
HomeSourceFileScanner superclassReader)
throws IOException
reader - the reader from which the source file is waiting to be read.superclassReader - another constructed home source file scanner for
reading the source file of the superinterface.
IOException - if the reader cannot be suitably buffered.
public HomeSourceFileScanner(Reader reader,
HomeSourceFileScanner superclassReader,
Messenger messenger)
throws IOException
reader - the reader from which the source file is waiting to be read.superclassReader - another constructed home source file scanner for
reading the source file of the superinterface.messenger - the messenger to log to.
IOException - if the reader cannot be suitably buffered.| Method Detail |
|---|
public void scanHomeSourceFile()
throws IOException
IOException - if the input file could not be read.public List getTypes()
EJBException - if there is no findWhereFieldsEqual() method.public List getNames()
EJBException - if there is no findWhereFieldsEqual() method.public List getTypesOrEmptyListIfNone()
public List getNamesOrEmptyListIfNone()
public List getTypes(Class[] parameterTypes)
parameterTypes - specifying signature of findWhereFieldsEqual() method.
EJBException - if there is no findWhereFieldsEqual() method
matching that specified.public List getNames(Class[] parameterTypes)
parameterTypes - specifying signature of findWhereFieldsEqual() method.
EJBException - if there is no findWhereFieldsEqual() method
matching that specified.public List getImportTargets()
public void close()
throws IOException
close in interface Closeableclose in class BufferedReaderIOException - if closing fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||