--- In [email protected], "dorkie dork from dorktown" 
<dorkiedorkfromdorkt...@...> wrote:
>
> Is there a way to count how many arguments there are on a function 
from
> outside that function? For example,
> 
> Class1:
> // myFunction has one parameter of type string
> myFunction(myParam:String) {
> 
> }
> 
> Class2:
> someFunction() {
>     // for example,
>     // i want to get a count of arguments of myFunction, name, if 
they are
> required and their type
>     var argumentLength = class1.myFunction.arguments.length;
>     var argumentName = class1.myFunction.arguments[0].name;
>     var argumentClass = class1.myFunction.arguments[0].class;
>     var argumentRequired = class1.myFunction.arguments[0].required;
> }
>

You may find that describeType (or describeTypeCache if you're 
fanatical about performnce) will help.

Reply via email to