org.gvnix.flex.as.classpath.as3parser.details
Class As3ParserMethodMetadata

java.lang.Object
  extended by org.gvnix.flex.as.classpath.as3parser.details.As3ParserMethodMetadata
All Implemented Interfaces:
ASIdentifiableMember, ASInvocableMemberMetadata, ASMethodMetadata

public class As3ParserMethodMetadata
extends Object
implements ASMethodMetadata

Parser-specific metadata representation of an ActionScript method.

Author:
Jeremy Grelle

Constructor Summary
As3ParserMethodMetadata(String declaredByMetadataId, uk.co.badgersinfoil.metaas.dom.ASMethod method, CompilationUnitServices compilationUnitServices)
           
 
Method Summary
static void addMethod(CompilationUnitServices compilationUnitServices, uk.co.badgersinfoil.metaas.dom.ASType type, ASMethodMetadata declaredMethod, boolean permitFlush)
           
 String getBody()
           
 String getDeclaredByMetadataId()
           
 List<ASMetaTagMetadata> getMetaTags()
           
 ActionScriptSymbolName getMethodName()
           
 List<ActionScriptSymbolName> getParameterNames()
           
 List<ActionScriptType> getParameterTypes()
           
 ActionScriptType getReturnType()
           
 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

As3ParserMethodMetadata

public As3ParserMethodMetadata(String declaredByMetadataId,
                               uk.co.badgersinfoil.metaas.dom.ASMethod method,
                               CompilationUnitServices compilationUnitServices)
Method Detail

getMethodName

public ActionScriptSymbolName getMethodName()
Specified by:
getMethodName in interface ASMethodMetadata

getReturnType

public ActionScriptType getReturnType()
Specified by:
getReturnType in interface ASMethodMetadata

getMetaTags

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

getBody

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

getParameterNames

public List<ActionScriptSymbolName> getParameterNames()
Specified by:
getParameterNames in interface ASInvocableMemberMetadata
Returns:
the parameter names, if available (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)

getDeclaredByMetadataId

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

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)

addMethod

public static void addMethod(CompilationUnitServices compilationUnitServices,
                             uk.co.badgersinfoil.metaas.dom.ASType type,
                             ASMethodMetadata declaredMethod,
                             boolean permitFlush)


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