org.apache.beehive.controls.runtime.generator
Class GenMethod

Object
  extended by GenMethod
Direct Known Subclasses:
AptMethodHelper, ControlEvent, ControlEventHandler, ControlOperation

public abstract class GenMethod
extends Object

The GenMethod abstract class defines a base set of methods that are generally available for template usage on method-type objects

This is done with an abstract class (instead of an interface) so derived abstract classes can be subclassed from it w/out requiring all of the methods to be declared there.


Constructor Summary
GenMethod()
           
 
Method Summary
abstract  String getArgDecl()
          Returns the method argument declaration
 String getArgList()
          Returns the method argument names as a comma delmited list, in raw form.
abstract  String getArgList(boolean quoteDelimit)
          Returns the the method argument names, in a comma separated list.
abstract  String getArgTypes()
          Returns the the method argument classes, in a comma separated list
 String getDefaultReturnValue()
          Returns the default return value for the operation, based upon the operation return type.
abstract  String getName()
          Returns the name of the method
abstract  String getReturnType()
          Returns the return type name of the method
abstract  String getThrowsClause()
          Returns the throws clause of the method
abstract  ArrayList getThrowsList()
          Returns an ArrayList containing the list of thrown exceptions
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenMethod

public GenMethod()
Method Detail

getName

public abstract String getName()
Returns the name of the method


getArgDecl

public abstract String getArgDecl()
Returns the method argument declaration


getArgList

public abstract String getArgList(boolean quoteDelimit)
Returns the the method argument names, in a comma separated list. The quoteDelimit specifies whether names are quoted (Strings) or raw form


getArgList

public String getArgList()
Returns the method argument names as a comma delmited list, in raw form.


getArgTypes

public abstract String getArgTypes()
Returns the the method argument classes, in a comma separated list


getThrowsClause

public abstract String getThrowsClause()
Returns the throws clause of the method


getThrowsList

public abstract ArrayList getThrowsList()
Returns an ArrayList containing the list of thrown exceptions


getReturnType

public abstract String getReturnType()
Returns the return type name of the method


getDefaultReturnValue

public String getDefaultReturnValue()
Returns the default return value for the operation, based upon the operation return type.