internal InnerClass(IClassLoader loader, TypeReference innerClass, TypeReference outerClass, string name, NestedClassAccessFlags accessFlags) { this.loader = loader; this.innerClass = innerClass; this.outerClass = outerClass; this.name = name; this.accessFlags = accessFlags; }
private string AccessFlagsAsString(NestedClassAccessFlags accessFlags) { string result = accessFlags.HasFlag(NestedClassAccessFlags.Public) ? "public " : string.Empty; result += accessFlags.HasFlag(NestedClassAccessFlags.Private) ? "private " : string.Empty; result += accessFlags.HasFlag(NestedClassAccessFlags.Protected) ? "protected " : string.Empty; result += accessFlags.HasFlag(NestedClassAccessFlags.Static) ? "static " : string.Empty; result += accessFlags.HasFlag(NestedClassAccessFlags.Final) ? "final " : string.Empty; result += accessFlags.HasFlag(NestedClassAccessFlags.Interface) ? "interface " : string.Empty; result += accessFlags.HasFlag(NestedClassAccessFlags.Abstract) ? "abstract " : string.Empty; result += accessFlags.HasFlag(NestedClassAccessFlags.Synthetic) ? "synthetic " : string.Empty; result += accessFlags.HasFlag(NestedClassAccessFlags.Annotation) ? "annotation " : string.Empty; result += accessFlags.HasFlag(NestedClassAccessFlags.Enum) ? "enum " : string.Empty; return(result.Trim()); }
private string AccessFlagsAsString(NestedClassAccessFlags accessFlags) { string result = accessFlags.HasFlag(NestedClassAccessFlags.Public) ? "public " : string.Empty; result += accessFlags.HasFlag(NestedClassAccessFlags.Private) ? "private " : string.Empty; result += accessFlags.HasFlag(NestedClassAccessFlags.Protected) ? "protected " : string.Empty; result += accessFlags.HasFlag(NestedClassAccessFlags.Static) ? "static " : string.Empty; result += accessFlags.HasFlag(NestedClassAccessFlags.Final) ? "final " : string.Empty; result += accessFlags.HasFlag(NestedClassAccessFlags.Interface) ? "interface " : string.Empty; result += accessFlags.HasFlag(NestedClassAccessFlags.Abstract) ? "abstract " : string.Empty; result += accessFlags.HasFlag(NestedClassAccessFlags.Synthetic) ? "synthetic " : string.Empty; result += accessFlags.HasFlag(NestedClassAccessFlags.Annotation) ? "annotation " : string.Empty; result += accessFlags.HasFlag(NestedClassAccessFlags.Enum) ? "enum " : string.Empty; return result.Trim(); }