EGF Engine
Release 0.1.0

org.eclipse.egf.pattern.ecore
Class AnnotationHandler.AnnotationCodeAppender

java.lang.Object
  extended by org.eclipse.egf.pattern.ecore.AnnotationHandler.AnnotationCodeAppender
Direct Known Subclasses:
AnnotationHandler.JavaCodeAppender, AnnotationHandler.PatternCodeAppender
Enclosing class:
AnnotationHandler

protected abstract class AnnotationHandler.AnnotationCodeAppender
extends Object

Annotation code appender.
Adds new code as an annotation to a specified operation.
Not dependent on the type of code to append.


Constructor Summary
protected AnnotationHandler.AnnotationCodeAppender()
           
 
Method Summary
 void appendCode(EOperation operation_p)
          Append new code to given operation.
protected abstract  void doAppendCode(StringBuilder existingCode_p)
          Append new code to existing one.
protected abstract  EAnnotation getCodeAnnotation(EOperation operation_p)
          Get the annotation that is/will be containing the code.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationHandler.AnnotationCodeAppender

protected AnnotationHandler.AnnotationCodeAppender()
Method Detail

appendCode

public void appendCode(EOperation operation_p)
Append new code to given operation.
This is done through a specific code annotation.

Parameters:
operation_p -

getCodeAnnotation

protected abstract EAnnotation getCodeAnnotation(EOperation operation_p)
Get the annotation that is/will be containing the code.

Parameters:
operation_p -
Returns:

doAppendCode

protected abstract void doAppendCode(StringBuilder existingCode_p)
Append new code to existing one.

Parameters:
existingCode_p -

EGF Engine
Release 0.1.0

Copyright (c) Thales Corporate Services S.A.S, 2009.

This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.