uk.co.badgersinfoil.metaas
Interface ASMethod

All Superinterfaces:
StatementContainer

public interface ASMethod
extends StatementContainer

Represents an ActionScript method definition within an ActionScript class.

See Also:
ASType.newMethod(String, ASProtection, String)

Method Summary
 void addParam(java.lang.String name, java.lang.String type)
          Adds a formal parameter to the list of parameters supported by this ActionScript method.
 java.util.List getArgs()
          Returns a list of the formal arguments accepted by this ActionScript method.
 java.lang.String getName()
          Returns the name of this method.
 ASProtection getProtection()
          Returns a value representing any protection-against-access defined for this ActionScript method.
 java.lang.String getType()
          Returns the name of the return type of this ActionScript method, or null if it is untyped.
 boolean isStatic()
          Returns true if this ActionScript method is static (i.e.
 
Methods inherited from interface uk.co.badgersinfoil.metaas.StatementContainer
addComment, addStmt
 

Method Detail

getName

public java.lang.String getName()
Returns the name of this method.


getArgs

public java.util.List getArgs()
Returns a list of the formal arguments accepted by this ActionScript method. Note that the resulting list is not modifiable.

See Also:
addParam(String, String)

getType

public java.lang.String getType()
Returns the name of the return type of this ActionScript method, or null if it is untyped.


getProtection

public ASProtection getProtection()
Returns a value representing any protection-against-access defined for this ActionScript method.


isStatic

public boolean isStatic()
Returns true if this ActionScript method is static (i.e. the method definition uses the static keyword).


addParam

public void addParam(java.lang.String name,
                     java.lang.String type)
Adds a formal parameter to the list of parameters supported by this ActionScript method.

Parameters:
name - The name for the parameter
type - The type for the parameter, or null if the parameter is to be untyped