archimate.codegen
Class SourceInspector

java.lang.Object
  extended by archimate.codegen.SourceInspector

public class SourceInspector
extends java.lang.Object

This class analyses the source code in the project source folder using the given TagTree and commands the generation of missing source elements

Author:
Samuel Esposito

Field Summary
static java.lang.String GENERATE
           
static java.lang.String VALIDATE
           
 
Constructor Summary
SourceInspector(ICodeGenerator generator)
          Creates a new SourceInspector and sets its TagTree, packageBase and monitor from the given ICodeGenerator
 
Method Summary
 void addSourceElements(org.eclipse.jdt.core.dom.TypeDeclaration node, java.util.ArrayList<TagNode> tags)
          Creates source elements in the node for every tag in the list.
 org.eclipse.core.runtime.IProgressMonitor monitor()
          Returns the progressmonitor
 org.eclipse.core.runtime.MultiStatus status()
          Returns the status
 TagTree tree()
          Returns the current TagTree
 void updateSource()
          Traverses the source and adds missing source elements and files
 void validateSource()
          Traverses the source and validates the source elements
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GENERATE

public static final java.lang.String GENERATE
See Also:
Constant Field Values

VALIDATE

public static final java.lang.String VALIDATE
See Also:
Constant Field Values
Constructor Detail

SourceInspector

public SourceInspector(ICodeGenerator generator)
Creates a new SourceInspector and sets its TagTree, packageBase and monitor from the given ICodeGenerator

Parameters:
generator - The ICodeGenerator at hand
Method Detail

tree

public TagTree tree()
Returns the current TagTree

Returns:
The current TagTree

monitor

public org.eclipse.core.runtime.IProgressMonitor monitor()
Returns the progressmonitor

Returns:
The progressmonitor

status

public org.eclipse.core.runtime.MultiStatus status()
Returns the status

Returns:
The status

updateSource

public void updateSource()
Traverses the source and adds missing source elements and files


validateSource

public void validateSource()
Traverses the source and validates the source elements


addSourceElements

public void addSourceElements(org.eclipse.jdt.core.dom.TypeDeclaration node,
                              java.util.ArrayList<TagNode> tags)
Creates source elements in the node for every tag in the list.