Packageorg.swizframework.reflection
Interfacepublic interface IMetadataTag
Implementors BaseMetadataTag

The IMetadataTag interface is a representation of a metadata tag that has been defined in source code.



Public Properties
 PropertyDefined By
  args : Array
Array of arguments defined in the tag.
IMetadataTag
  asTag : String
[read-only] String showing what this tag looks like in code.
IMetadataTag
  host : IMetadataHost
Element (class, method or property) on which the metadata tag is defined.
IMetadataTag
  name : String
Name of the tag, e.g.
IMetadataTag
Public Methods
 MethodDefined By
  
copyFrom(metadataTag:IMetadataTag):void
IMetadataTag
  
getArg(argName:String):MetadataArg
IMetadataTag
  
hasArg(argName:String):Boolean
IMetadataTag
  
toString():String
IMetadataTag
Property Detail
argsproperty
args:Array

Array of arguments defined in the tag.


Implementation
    public function get args():Array
    public function set args(value:Array):void

See also

asTagproperty 
asTag:String  [read-only]

String showing what this tag looks like in code. Useful for debugging and log messages.


Implementation
    public function get asTag():String
hostproperty 
host:IMetadataHost

Element (class, method or property) on which the metadata tag is defined.


Implementation
    public function get host():IMetadataHost
    public function set host(value:IMetadataHost):void
nameproperty 
name:String

Name of the tag, e.g. "Bindable" from [Bindable].


Implementation
    public function get name():String
    public function set name(value:String):void
Method Detail
copyFrom()method
public function copyFrom(metadataTag:IMetadataTag):void

Parameters

metadataTag:IMetadataTag

getArg()method 
public function getArg(argName:String):MetadataArg

Parameters

argName:String — Name of argument to retrieve.

Returns
MetadataArg — Argument for the given name.
hasArg()method 
public function hasArg(argName:String):Boolean

Parameters

argName:String — Name of argument whose existence on this tag will be checked.

Returns
Boolean — Flag indicating whether or not this tag contains an argument for the given name.
toString()method 
public function toString():String

Returns
String