org.apache.beehive.controls.runtime.generator.apt
Class AptEventHandler

Object
  extended by GenMethod
      extended by ControlEventHandler
          extended by AptEventHandler

public class AptEventHandler
extends ControlEventHandler

The AptEventHandler class represents a control EventHandler where the event attributes are derived using APT metadata


Constructor Summary
AptEventHandler(ControlEvent event, MethodDeclaration handlerDecl, AnnotationProcessorEnvironment env)
          Constructs a new AptEventHandler instance from APT metadata
 
Method Summary
 String getArgDecl()
          Returns the method argument declaration
 String getArgList(boolean quoteDelimit)
          Returns the the method argument names, in a comma separated list.
 String getArgTypes()
          Returns the the method argument classes, in a comma separated list
 String getName()
          Returns the name of the method
 String getReturnType()
          Returns the return type name of the method
 String getThrowsClause()
          Returns the throws clause of the method
 ArrayList getThrowsList()
          Returns an ArrayList containing the list of thrown exceptions
 
Methods inherited from class ControlEventHandler
getEvent
 
Methods inherited from class GenMethod
getArgList, getDefaultReturnValue
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AptEventHandler

public AptEventHandler(ControlEvent event,
                       MethodDeclaration handlerDecl,
                       AnnotationProcessorEnvironment env)
Constructs a new AptEventHandler instance from APT metadata

Parameters:
event - the handled ControlEvent
handlerDecl - the handler method declaration
env - the annotation processing environment
Method Detail

getName

public String getName()
Description copied from class: GenMethod
Returns the name of the method

Specified by:
getName in class GenMethod

getArgDecl

public String getArgDecl()
Description copied from class: GenMethod
Returns the method argument declaration

Specified by:
getArgDecl in class GenMethod

getArgList

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

Specified by:
getArgList in class GenMethod

getArgTypes

public String getArgTypes()
Description copied from class: GenMethod
Returns the the method argument classes, in a comma separated list

Specified by:
getArgTypes in class GenMethod

getReturnType

public String getReturnType()
Description copied from class: GenMethod
Returns the return type name of the method

Specified by:
getReturnType in class GenMethod

getThrowsClause

public String getThrowsClause()
Description copied from class: GenMethod
Returns the throws clause of the method

Specified by:
getThrowsClause in class GenMethod

getThrowsList

public ArrayList getThrowsList()
Description copied from class: GenMethod
Returns an ArrayList containing the list of thrown exceptions

Specified by:
getThrowsList in class GenMethod