org.ijsberg.iglu.util.codegeneration
Class JavaMethodSource

java.lang.Object
  extended by org.ijsberg.iglu.util.codegeneration.JavaSource
      extended by org.ijsberg.iglu.util.codegeneration.JavaMemberSource
          extended by org.ijsberg.iglu.util.codegeneration.JavaMethodSource

public class JavaMethodSource
extends JavaMemberSource

Contains the definition of a class method and its contents needed to create Java source code.


Field Summary
static String RET
           
 
Fields inherited from class org.ijsberg.iglu.util.codegeneration.JavaMemberSource
modifiers, name, type
 
Constructor Summary
JavaMethodSource(String modifiers, String returnType, String name)
           
 
Method Summary
 void addExceptionType(Class exceptionType)
           
 void addStatement(String statement)
           
 String getMethodName()
           
 String toString()
          Generates source code.
 
Methods inherited from class org.ijsberg.iglu.util.codegeneration.JavaSource
addJavaDocLine, javaDocToString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RET

public static final String RET
See Also:
Constant Field Values
Constructor Detail

JavaMethodSource

public JavaMethodSource(String modifiers,
                        String returnType,
                        String name)
Parameters:
modifiers -
returnType -
name -
Method Detail

toString

public String toString()
Generates source code.

Overrides:
toString in class JavaMemberSource
Returns:

addStatement

public void addStatement(String statement)
Parameters:
statement -

addExceptionType

public void addExceptionType(Class exceptionType)
Parameters:
exceptionType -

getMethodName

public String getMethodName()
Returns:


Copyright © 2011. All Rights Reserved.