de.unihalle.informatik.Alida.tools
Class GenerateGetterSetter

java.lang.Object
  extended by de.unihalle.informatik.Alida.tools.GenerateGetterSetter

public class GenerateGetterSetter
extends java.lang.Object

Generates code for getter/setter methods for an ALDOperator.

This tool is mostly helpful for non-IDE users who need to explicitly code getters and setters for their operators. Note, that the tool assumes that names of variables are identical to the name of the member/field.

Author:
posch

Constructor Summary
GenerateGetterSetter()
           
 
Method Summary
private static java.lang.String generateAccessFunction(ALDOpParameterDescriptor descriptor, java.lang.String argType)
          Generate access function code.
static void main(java.lang.String[] args)
          Main function.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenerateGetterSetter

public GenerateGetterSetter()
Method Detail

generateAccessFunction

private static java.lang.String generateAccessFunction(ALDOpParameterDescriptor descriptor,
                                                       java.lang.String argType)
Generate access function code.

Parameters:
descriptor - Argument descriptor.
argType - Type of the argument.
Returns:
String with source code for access function.

main

public static void main(java.lang.String[] args)
Main function.

Parameters:
args - Name of class to document.