|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectAptType
AptControlInterface
public class AptControlInterface
The AptControlInterface provides validation and metadata management for a ControlInterface or ControlExtension class during APT processing. It is also used to model the interface to contextual services, since they parallel the conventions of control interfaces.
Constructor Summary | |
---|---|
AptControlInterface(Declaration decl,
TwoPhaseAnnotationProcessor ap)
Constructs a new AptControlInterface instance where interface information is derived from an APT interface declaration |
Method Summary | |
---|---|
boolean |
addsBoundPropertySupport()
Returns true if this interface is the first interface in the inheritance hierarchy to declare support for bound properties. |
boolean |
addsConstrainedPropertySupport()
Returns true if this interface is the first interface in the inheritance hierarchy to declare support for constrained properties. |
void |
check()
Runs control-specific checker class (if specified) |
List<GeneratorOutput> |
getCheckOutput(Filer filer)
Returns the information necessary to generate a ControlBean from this AptControlInterface |
AptEventSet |
getEventSet(String name)
Returns the AptEventSet with the specified name |
int |
getEventSetCount()
Returns the total number of operations for this control interface |
Collection<AptEventSet> |
getEventSets()
Returns the list of AptEventSet declared directly by this AptControlInterface |
ClassLoader |
getExternalClassLoader()
Returns a classloader that can be used to load external classes |
FeatureInfo |
getFeatureInfo()
Returns the FeatureInfo attributes for this control interface |
String[] |
getGeneratedTypes()
Returns the list of fully qualified class names for types that are derived from this Generator |
List<GeneratorOutput> |
getGenerateOutput(Filer filer)
Returns the information necessary to generate a packaging information from this AptControlInterface. |
Collection<AptControlInterfaceProperty> |
getInterfaceProperties()
Returns the list of properties defined by getter and setter methods in this control interface. |
int |
getLocalEventSetCount()
Returns the number of event sets declared in this control interface. |
HashMap<String,String> |
getManifestAttributes()
Returns the array of ManifestAttributes associated with the AptControlInterface |
AptControlInterface |
getMostDerivedInterface()
Returns the most-derived interface in the inheritance chain that is annotated with @ControlInterface. |
int |
getOperationCount()
Returns the total number of operations for this control interface |
Collection<AptOperation> |
getOperations()
Returns the list of ControlOperations declared directly by this AptControlInterface |
int |
getPropertyCount()
Returns the total number of properties for this control interface |
Collection<AptPropertySet> |
getPropertySets()
Returns the list of PropertySets declared directly by this AptControlInterface |
AptControlInterface |
getSuperClass()
Returns the super interface for this interface |
InterfaceType |
getSuperType()
Returns the parent control interface or extension type from which the control interface is derived (or null, if it is at the root of the interface hierarchy) |
Version |
getVersion()
Returns the Version annotation, if any. |
VersionRequired |
getVersionRequired()
Returns the VersionRequired annotation, if any. |
boolean |
hasBoundProperties()
Returns true if the interface has any bound properties associated with it. |
boolean |
hasConstrainedProperties()
Returns true if any properties declared directly by this control interface are constrained properties. |
boolean |
isExtension()
Returns true if this interface is a ControlExtension (jcx) interface, false otherwise. |
Methods inherited from class AptType |
---|
getClassName, getFormalClassName, getFormalShortName, getFormalTypeParameterNames, getFormalTypeParameters, getPackage, getShortName, getTypeDeclaration, isPrivateMethod, setDeclaration |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AptControlInterface(Declaration decl, TwoPhaseAnnotationProcessor ap)
decl
- the annotated Declarationap
- the top-level annotation processorMethod Detail |
---|
public InterfaceType getSuperType()
public AptControlInterface getSuperClass()
public Collection<AptOperation> getOperations()
public int getOperationCount()
public Collection<AptPropertySet> getPropertySets()
public int getPropertyCount()
public Collection<AptControlInterfaceProperty> getInterfaceProperties()
public boolean hasBoundProperties()
public boolean addsBoundPropertySupport()
public boolean hasConstrainedProperties()
public boolean addsConstrainedPropertySupport()
public Collection<AptEventSet> getEventSets()
public int getEventSetCount()
public int getLocalEventSetCount()
public AptEventSet getEventSet(String name)
public FeatureInfo getFeatureInfo()
public String[] getGeneratedTypes()
getGeneratedTypes
in interface Generator
public Version getVersion()
public VersionRequired getVersionRequired()
public List<GeneratorOutput> getCheckOutput(Filer filer) throws IOException
getCheckOutput
in interface Generator
IOException
public List<GeneratorOutput> getGenerateOutput(Filer filer) throws IOException
getGenerateOutput
in interface Generator
IOException
public boolean isExtension()
public AptControlInterface getMostDerivedInterface()
public ClassLoader getExternalClassLoader()
public HashMap<String,String> getManifestAttributes()
public void check()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |