EGF Engine
Release 0.1.0

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

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

protected abstract class AnnotationHandler.JavaCodeAppender
extends AnnotationHandler.AnnotationCodeAppender

Java code append to existing pattern operation code.
This appender always encapsulate added code within a call to string builder.
Thus the specified code must be compatible with an insertion within a string builder.


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

Constructor Detail

AnnotationHandler.JavaCodeAppender

protected AnnotationHandler.JavaCodeAppender()
Method Detail

doAppendCode

protected void doAppendCode(StringBuilder existingCode_p)
Description copied from class: AnnotationHandler.AnnotationCodeAppender
Append new code to existing one.

Specified by:
doAppendCode in class AnnotationHandler.AnnotationCodeAppender
See Also:
AnnotationHandler.AnnotationCodeAppender.doAppendCode(java.lang.StringBuilder)

getCodeAnnotation

protected EAnnotation getCodeAnnotation(EOperation operation_p)
Description copied from class: AnnotationHandler.AnnotationCodeAppender
Get the annotation that is/will be containing the code.

Specified by:
getCodeAnnotation in class AnnotationHandler.AnnotationCodeAppender
Returns:
See Also:
org.eclipse.egf.pattern.ecore.AnnotationHandler.AnnotationCodeAppender#getCodeAnnotation(org.eclipse.emf.ecore.EOperation)

appendNewOperation

protected abstract void appendNewOperation(StringBuilder existingCode_p)
Append new code to existing one.
No specific layout is required here (even though the correctness is mandatory).


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.