com.objectwave.sourceParser
Class MethodDetailParser

java.lang.Object
  |
  +--com.objectwave.sourceParser.MethodDetailParser
All Implemented Interfaces:
ClassParser

public class MethodDetailParser
extends java.lang.Object
implements ClassParser

Used to parse java source code for methods.


Constructor Summary
MethodDetailParser()
           
 
Method Summary
 void finishParsing(java.lang.StringBuffer buf, java.lang.String[] identifier, java.io.Reader rdr)
          We've accepted ownership of parsing ths source code, now finish the job.
 ClassElement getDataObject()
          When we have finished parsing, the resulting ClassElement returned by getDataObject should represent our meta-model of that element.
 java.util.Vector getSentMethods(java.lang.String methodBody)
           
 boolean isMyArea(java.lang.String identifier)
          When parsing source code we never know what ClassElement will be next, so we ask all possible class elements isMyArea(String) for one of them to say yes.
protected  boolean isSpecialOperation(java.lang.String key)
           
protected  boolean notKeyWord(java.lang.String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodDetailParser

public MethodDetailParser()
Method Detail

getDataObject

public ClassElement getDataObject()
Description copied from interface: ClassParser
When we have finished parsing, the resulting ClassElement returned by getDataObject should represent our meta-model of that element.

Specified by:
getDataObject in interface ClassParser

finishParsing

public void finishParsing(java.lang.StringBuffer buf,
                          java.lang.String[] identifier,
                          java.io.Reader rdr)
Description copied from interface: ClassParser
We've accepted ownership of parsing ths source code, now finish the job.

Specified by:
finishParsing in interface ClassParser

isMyArea

public boolean isMyArea(java.lang.String identifier)
When parsing source code we never know what ClassElement will be next, so we ask all possible class elements isMyArea(String) for one of them to say yes. Once one of the parser acknowledges ownership, we hand off the parsing routine to that class parser.

Specified by:
isMyArea in interface ClassParser
See Also:
finishParsing(java.lang.StringBuffer, java.lang.String[], java.io.Reader)

isSpecialOperation

protected boolean isSpecialOperation(java.lang.String key)

notKeyWord

protected boolean notKeyWord(java.lang.String key)

getSentMethods

public java.util.Vector getSentMethods(java.lang.String methodBody)