|
Dresden OCL Toolkit | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Implementors of this interface get the results of the
java parser
.
An implementation may write to the ouput stream of the
java parser. Therefore, the interface of each method
specifies the position of the output stream, when
the method is called.
To test these positions, use
TestInjectionConsumer
.
Method Summary | |
void |
onAttributeHeader(JavaAttribute ja)
Encountered the header of a java attribute. |
void |
onBehaviourHeader(JavaBehaviour jb)
Encountered the header of a java method. |
void |
onClass(JavaClass cc)
Encountered a class header. |
void |
onClassEnd(JavaClass cc)
Encountered the end of a class. |
void |
onClassFeature(JavaFeature cf,
String doccomment)
Called for attributes and methods. |
boolean |
onDocComment(String doccomment)
Encountered a java documentation comment. |
void |
onFileDocComment(String doccomment)
Encountered a java documentation comment. |
void |
onFileEnd()
Encountered the end of the input stream. |
void |
onImport(String importname)
Encountered an import statement. |
void |
onPackage(JavaFile javafile)
Encountered a package statement. |
Method Detail |
public void onPackage(JavaFile javafile) throws InjectorParseException
InjectorParseException
JavaFile.getPackageName()
public void onImport(String importname)
JavaFile.findType(String)
public void onClass(JavaClass cc)
public void onClassEnd(JavaClass cc) throws IOException, InjectorParseException
IOException
InjectorParseException
onClass(JavaClass)
public void onBehaviourHeader(JavaBehaviour jb) throws IOException
onClassFeature(JavaFeature, String)
.
IOException
public void onAttributeHeader(JavaAttribute ja) throws IOException
onClassFeature(JavaFeature, String)
.
IOException
public void onClassFeature(JavaFeature cf, String doccomment) throws IOException, InjectorParseException
onBehaviourHeader(JavaBehaviour)
.
IOException
InjectorParseException
public boolean onDocComment(String doccomment) throws IOException
IOException
public void onFileDocComment(String doccomment) throws IOException
IOException
public void onFileEnd()
|
Dresden OCL Toolkit | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |