コード例 #1
0
ファイル: InnerClass.cs プロジェクト: yuva2achieve/dot42
 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;
 }
コード例 #2
0
        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());
        }
コード例 #3
0
ファイル: JavaClassFileNode.cs プロジェクト: Xtremrules/dot42
        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();
        }