archimate.codegen
Interface ICodeElement

All Known Implementing Classes:
JavaClass, JavaMethod

public interface ICodeElement


Method Summary
 java.lang.String archiMateTag()
          Returns the code elements first archiMateTag
 boolean archiMateTagsDefined()
          Returns whether there are archiMateTags defined
 java.lang.String comment()
          Returns the code elements comments
 boolean commentDefined()
          Returns whether there is a comment defined
 void diff(org.eclipse.jdt.core.dom.ASTNode node, org.eclipse.core.runtime.MultiStatus status, java.lang.String pattern)
          Compares itself to the ASTNode and writes the eventual differences in the MultiStatus object
 boolean equals(java.lang.String identifier)
          Method defining whether a source element matches the identifier
 java.lang.String identifier()
          Returns the identifier of the source code element
 void setVisited()
          Marks a source code element as visited
 boolean visited()
          Returns whether a source element has been visited in the source code
 

Method Detail

commentDefined

boolean commentDefined()
Returns whether there is a comment defined

Returns:
Whether there is a comment defined

comment

java.lang.String comment()
Returns the code elements comments

Returns:
The code elements comments

archiMateTagsDefined

boolean archiMateTagsDefined()
Returns whether there are archiMateTags defined

Returns:
Whether there are archiMateTags defined

archiMateTag

java.lang.String archiMateTag()
Returns the code elements first archiMateTag

Returns:
The code elements first archiMateTag

identifier

java.lang.String identifier()
Returns the identifier of the source code element

Returns:
The identifier of the source code element

equals

boolean equals(java.lang.String identifier)
Method defining whether a source element matches the identifier

Parameters:
identifier - String to match the source element with
Returns:
Whether the source element matches the identifier

diff

void diff(org.eclipse.jdt.core.dom.ASTNode node,
          org.eclipse.core.runtime.MultiStatus status,
          java.lang.String pattern)
Compares itself to the ASTNode and writes the eventual differences in the MultiStatus object

Parameters:
node - the ASTNode to compare with
status - the MultiStatus to write the differences in

visited

boolean visited()
Returns whether a source element has been visited in the source code

Returns:
Whether a source element has been visited in the source code

setVisited

void setVisited()
Marks a source code element as visited