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

Object
  extended by GenClass
      extended by ControlClient
          extended by AptControlClient

public class AptControlClient
extends ControlClient


Constructor Summary
AptControlClient(TypeDeclaration decl, AnnotationProcessorEnvironment env)
          Constructs a new ControlClient instance where information is derived from APT metadata
 
Method Summary
 String getClassName()
          Returns the fully qualified classname of this ControlImpl
 String getPackage()
          Returns the fully qualified package name of the control client
 String getShortName()
          Returns the unqualified classname of the control client Note that if the client is nested, this will not return the containing class/intf names.
 GenClass getSuperClass()
          Returns the super class for this class
protected  String getSuperClientName()
          Returns the fully qualified classname of the closest control client in the inheritance chain.
protected  boolean hasSuperClient()
           
protected  ArrayList<ControlField> initControls()
          Initializes the list of ControlFields declared directly by this ControlClient
protected  void initEventAdaptors()
          Initializes the list of EventAdaptors for this ControlImpl
 
Methods inherited from class ControlClient
getControls, getField, getGeneratedTypes, getGenerateOutput, hasControls, init, needsFieldInit
 
Methods inherited from class GenClass
getCheckOutput, hasSuperClass
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AptControlClient

public AptControlClient(TypeDeclaration decl,
                        AnnotationProcessorEnvironment env)
Constructs a new ControlClient instance where information is derived from APT metadata

Parameters:
decl - the annotated declaration
Method Detail

initControls

protected ArrayList<ControlField> initControls()
Initializes the list of ControlFields declared directly by this ControlClient

Specified by:
initControls in class ControlClient

hasSuperClient

protected boolean hasSuperClient()
Specified by:
hasSuperClient in class ControlClient

getSuperClientName

protected String getSuperClientName()
Returns the fully qualified classname of the closest control client in the inheritance chain.

Specified by:
getSuperClientName in class ControlClient
Returns:

getSuperClass

public GenClass getSuperClass()
Returns the super class for this class

Specified by:
getSuperClass in class GenClass

getPackage

public String getPackage()
Returns the fully qualified package name of the control client

Specified by:
getPackage in class GenClass

getShortName

public String getShortName()
Returns the unqualified classname of the control client Note that if the client is nested, this will not return the containing class/intf names.

Specified by:
getShortName in class GenClass

getClassName

public String getClassName()
Returns the fully qualified classname of this ControlImpl

Specified by:
getClassName in class GenClass

initEventAdaptors

protected void initEventAdaptors()
Initializes the list of EventAdaptors for this ControlImpl

Specified by:
initEventAdaptors in class ControlClient