コード例 #1
0
        private void Convert()
        {
            AccessFlag     = this.classFile.AccessFlags;
            SuperClassName = this.classFile.SuperclassName;
            InterfaceNames = this.classFile.InterfaceNames;
            var name = this.classFile.ThisClassName;

            this.ThisClassName = name;
            var hasPack = name.LastIndexOf("/");

            if (hasPack != -1)
            {
                this.ThisPackageName = name.Substring(0, hasPack);
            }
            foreach (var field in this.classFile.FieldInfo)
            {
                Fields.Add(JavaField.CreateFeld(this, field, this.classFile.ConstantPools));
            }
            foreach (var method in this.classFile.MethodInfo)
            {
                Methods.Add(JavaMethod.CreateMethod(this, method, this.classFile.ConstantPools));
            }
            RTCP = new RuntimeConstantPools(this.classFile.ConstantPools, ClassLoader, this);
        }