uk.co.badgersinfoil.metaas.dom
Interface ASMetaTag


public interface ASMetaTag

Represents a 'metadata tag' which may be attached to types, methods or fields. A metadata tag is represented in ActionScript source code as a definition within square brackets, that preceeds the API element to which the metadata belongs. For instance, this code defines the 'id' field to have the metadata property 'Bindable':

 [Bindable]
 public var id:Number;
 

See Also:
MetaTagable

Nested Class Summary
static interface ASMetaTag.Param
          A 'named parameter' within a metatag.
 
Method Summary
 void addParam(boolean constant)
           
 void addParam(int constant)
           
 void addParam(java.lang.String constant)
           
 void addParam(java.lang.String name, boolean constant)
           
 void addParam(java.lang.String name, int constant)
           
 void addParam(java.lang.String name, java.lang.String constant)
           
 java.lang.String getName()
          Returns the name of this metadata tag.
 java.util.List getParams()
          Returns the list of parameters of this tag, or an empty list if the tag has no parameters.
 java.lang.Object getParamValue(java.lang.String name)
          Returns the value of the named parameter, or null if no such parameter is present in this metadata tag.
 

Method Detail

getName

java.lang.String getName()
Returns the name of this metadata tag. e.g. given the tag,
[Bindable]
this method would return "Bindable".


getParams

java.util.List getParams()
Returns the list of parameters of this tag, or an empty list if the tag has no parameters. The values in the list will be of types


getParamValue

java.lang.Object getParamValue(java.lang.String name)
Returns the value of the named parameter, or null if no such parameter is present in this metadata tag. The type of the returned value will be one of,


addParam

void addParam(java.lang.String constant)

addParam

void addParam(int constant)

addParam

void addParam(boolean constant)

addParam

void addParam(java.lang.String name,
              java.lang.String constant)

addParam

void addParam(java.lang.String name,
              int constant)

addParam

void addParam(java.lang.String name,
              boolean constant)


Copyright © 2006-2007 David Holroyd. All Rights Reserved.