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

Object
  extended by GenMethod
      extended by ControlOperation
          extended by AptOperation

public class AptOperation
extends ControlOperation

The AptOperation class represents a control operation where the operation attributes are derived using APT metadata.


Constructor Summary
AptOperation(AptControlInterface controlIntf, MethodDeclaration methodDecl, AnnotationProcessorEnvironment env)
          Constructs a new ControlOperation instance where interface information is derived 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 ControlOperation
getControlInterface, getMethodField, init, setIndex
 
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

AptOperation

public AptOperation(AptControlInterface controlIntf,
                    MethodDeclaration methodDecl,
                    AnnotationProcessorEnvironment env)
Constructs a new ControlOperation instance where interface information is derived from APT metadata

Parameters:
controlIntf - the declaring ControlInterface
operMethod - the Method associated with the operation
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