org.gvnix.flex.as.classpath.details
Class AbstractInvocableMemberMetadata

java.lang.Object
  extended by org.gvnix.flex.as.classpath.details.AbstractInvocableMemberMetadata
All Implemented Interfaces:
ASIdentifiableMember, ASInvocableMemberMetadata
Direct Known Subclasses:
DefaultASConstructorMetadata, DefaultASMethodMetadata

public abstract class AbstractInvocableMemberMetadata
extends Object
implements ASInvocableMemberMetadata

Convenient base class for metadata representation of an invocable ActionScript member.

Author:
Jeremy Grelle

Constructor Summary
AbstractInvocableMemberMetadata(String declaredByMetadataId)
           
AbstractInvocableMemberMetadata(String declaredByMetadataId, String methodBody, List<ASMetaTagMetadata> metaTags, List<ActionScriptType> paramTypes, List<ActionScriptSymbolName> paramNames, ASTypeVisibility visibility)
           
 
Method Summary
 String getBody()
           
 String getDeclaredByMetadataId()
           
 List<ASMetaTagMetadata> getMetaTags()
           
 List<ActionScriptSymbolName> getParameterNames()
           
 List<ActionScriptType> getParameterTypes()
           
 ASTypeVisibility getVisibility()
          Indicates the visibility of the member.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractInvocableMemberMetadata

public AbstractInvocableMemberMetadata(String declaredByMetadataId)

AbstractInvocableMemberMetadata

public AbstractInvocableMemberMetadata(String declaredByMetadataId,
                                       String methodBody,
                                       List<ASMetaTagMetadata> metaTags,
                                       List<ActionScriptType> paramTypes,
                                       List<ActionScriptSymbolName> paramNames,
                                       ASTypeVisibility visibility)
Method Detail

getDeclaredByMetadataId

public String getDeclaredByMetadataId()
Specified by:
getDeclaredByMetadataId in interface ASIdentifiableMember
Returns:
the ID of the metadata that declared this member (never null)

getBody

public String getBody()
Specified by:
getBody in interface ASInvocableMemberMetadata
Returns:
the body of the method, if available (can be null if unavailable)

getMetaTags

public List<ASMetaTagMetadata> getMetaTags()
Specified by:
getMetaTags in interface ASInvocableMemberMetadata
Returns:
meta tags on this invocable member (never null, but may be empty)

getParameterTypes

public List<ActionScriptType> getParameterTypes()
Specified by:
getParameterTypes in interface ASInvocableMemberMetadata
Returns:
the parameter types (never null, but may be empty)

getParameterNames

public List<ActionScriptSymbolName> getParameterNames()
Specified by:
getParameterNames in interface ASInvocableMemberMetadata
Returns:
the parameter names, if available (never null, but may be empty)

getVisibility

public ASTypeVisibility getVisibility()
Description copied from interface: ASIdentifiableMember
Indicates the visibility of the member.

Specified by:
getVisibility in interface ASIdentifiableMember
Returns:
the visibility, if available (required)


Copyright © 2010–2015 Conselleria d'Infraestructures i Transport - Generalitat Valenciana. All rights reserved.