pt.digitalis.dif.codegen.util
Class ClassMethodEnhancement

java.lang.Object
  extended by pt.digitalis.dif.codegen.util.ClassMethodEnhancement

public class ClassMethodEnhancement
extends Object

Defines a method enhancement object.

Author:
Pedro Viegas pviegas@digitalis.pt, Rodrigo Gonçalves rgoncalves@digitalis.pt
Created on:
Dec 10, 2007

Constructor Summary
ClassMethodEnhancement(String methodName, boolean incrementalMode)
          Builds a new method enhancement object.
 
Method Summary
 void addSource(String source)
          Adds source to the method.
 String getMethodName()
          Returns the method name.
 String getSource()
          Returns the source.
 boolean isIncrementalMode()
          Inspector for the 'incrementalMode' property.
 void setSource(StringBuilder source)
          Modifier for the 'source' attribute.
 void setTerminator(String source)
          Adds source as the methods terminator (finalizer) code. it will overwrite previous source terminator code
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassMethodEnhancement

public ClassMethodEnhancement(String methodName,
                              boolean incrementalMode)
Builds a new method enhancement object.

Parameters:
methodName - the name of the method
incrementalMode - defines the incremental mode
Method Detail

addSource

public void addSource(String source)
Adds source to the method. If it is a non-incremental source method it will overwrite previous source code

Parameters:
source - the source to add

getMethodName

public String getMethodName()
Returns the method name.

Returns:
the method name

getSource

public String getSource()
Returns the source.

Returns:
the source

isIncrementalMode

public boolean isIncrementalMode()
Inspector for the 'incrementalMode' property.

Returns:
the incrementalMode property value

setSource

public void setSource(StringBuilder source)
Modifier for the 'source' attribute.

Parameters:
source - the new source value to set

setTerminator

public void setTerminator(String source)
Adds source as the methods terminator (finalizer) code. it will overwrite previous source terminator code

Parameters:
source - the source to add

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2014 Digitalis Informática Lda. All Rights Reserved.