org.ijsberg.iglu.util.codegeneration
Class JavaMethodSource
java.lang.Object
org.ijsberg.iglu.util.codegeneration.JavaSource
org.ijsberg.iglu.util.codegeneration.JavaMemberSource
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.
RET
public static final String RET
- See Also:
- Constant Field Values
JavaMethodSource
public JavaMethodSource(String modifiers,
String returnType,
String name)
- Parameters:
modifiers - returnType - name -
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.