|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectarchimate.codegen.ASTEngine
public class ASTEngine
Utility class providing methods for editing Java source files
Constructor Summary | |
---|---|
ASTEngine(org.eclipse.core.resources.IFile targetFile,
SourceInspector inspector,
java.lang.String mode,
java.lang.String pattern)
Creates new ASTEngine and sets the target file and
SourceInspector |
|
ASTEngine(SourceInspector inspector,
java.lang.String mode,
java.lang.String pattern)
Creates new ASTEngine and sets the SourceInspector |
Method Summary | |
---|---|
void |
createSourceFile(TagNode node,
org.eclipse.core.runtime.MultiStatus status)
Creates a new source file for the given archiMateTag |
void |
traverseSource()
Parses the source in the file, lets a JavaInspector visit it and
saves the changes |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ASTEngine(SourceInspector inspector, java.lang.String mode, java.lang.String pattern)
ASTEngine
and sets the SourceInspector
inspector
- SourceInspector
handling code traversing and
modificationsmode
- the engine mode: either SourceInspector.GENERATE
or
SourceInspector.VALIDATE
pattern
- the pattern currently processedpublic ASTEngine(org.eclipse.core.resources.IFile targetFile, SourceInspector inspector, java.lang.String mode, java.lang.String pattern)
ASTEngine
and sets the target file and
SourceInspector
targetFile
- the targetFile where the engine reads and writesinspector
- SourceInspector
handling code traversing and
modificationsmode
- the engine mode: either SourceInspector.GENERATE
or
SourceInspector.VALIDATE
pattern
- the pattern currently processedMethod Detail |
---|
public void traverseSource()
JavaInspector
visit it and
saves the changes
public void createSourceFile(TagNode node, org.eclipse.core.runtime.MultiStatus status)
node
- The TagNode
to generate code for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |