Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
Mozilla.XPCOM.TypeInfo.MethodDescriptor Class Reference
Collaboration diagram for Mozilla.XPCOM.TypeInfo.MethodDescriptor:
Collaboration graph
[legend]

List of all members.

Public Member Functions

bool IsVisible ()
bool IsSetter ()
bool IsGetter ()
string Name ()
Type FindResultType ()
void BuildArgTypes ()
override string ToString ()

Public Attributes

int index
String name
ParamDescriptor[] args
ParamDescriptor result
Type[] argTypes
Type resultType
MethodFlags flags
String ifaceName

Detailed Description

Definition at line 243 of file typeinfo.cs.


Member Function Documentation

Definition at line 283 of file typeinfo.cs.

        {
            if (!IsVisible()) {
                argTypes = new Type[] { };
                return;
            }

            if (resultType != typeof(void))
                argTypes = new Type[args.Length - 1];
            else
                argTypes = new Type[args.Length];
            int j = 0;
            for (int i = 0; i < args.Length; i++) {
                if (args[i].IsRetVal())
                    continue;
                argTypes[j++] = args[i].GetCLRType();
            }
        }

Here is the caller graph for this function:

Definition at line 274 of file typeinfo.cs.

        {
            for (int i = 0; i < args.Length; i++) {
                if (args[i].IsRetVal())
                    return args[i].GetCLRType();
            }
            return typeof(void);
        }

Here is the caller graph for this function:

Definition at line 264 of file typeinfo.cs.

        {
            return (flags & MethodFlags.Getter) != 0;
        }

Here is the caller graph for this function:

Definition at line 259 of file typeinfo.cs.

        {
            return (flags & MethodFlags.Setter) != 0;
        }

Here is the caller graph for this function:

Definition at line 254 of file typeinfo.cs.

        {
            return (flags & (MethodFlags.Hidden | MethodFlags.NotXPCOM)) == 0;
        }

Here is the caller graph for this function:

Definition at line 269 of file typeinfo.cs.

        {
            return ifaceName + ":" + name + "(" + index + ")";
        }

Definition at line 302 of file typeinfo.cs.

        {
            string res = String.Empty;
            if (flags != 0)
                res = "[" + flags.ToString() + "] ";
            res += result.ToString() + " " + name + "(";
            for (int i = 0; i < args.Length; i++) {
                if (i != 0)
                    res += ", ";
                res += args[i].ToString();
            }
            res += ")";
            return res;
        }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 247 of file typeinfo.cs.

Definition at line 249 of file typeinfo.cs.

Definition at line 251 of file typeinfo.cs.

Definition at line 252 of file typeinfo.cs.

Definition at line 245 of file typeinfo.cs.

Definition at line 246 of file typeinfo.cs.

Definition at line 248 of file typeinfo.cs.

Definition at line 250 of file typeinfo.cs.


The documentation for this class was generated from the following file: