示例#1
0
            public override void EnterEnumBodyDeclarations(JavaParser.EnumBodyDeclarationsContext context)
            {
                ClassBodyDeclarationListener classBodyDeclarationListener =
                    new ClassBodyDeclarationListener(parentClass);

                foreach (JavaParser.ClassBodyDeclarationContext classBodyDeclarationContext
                         in context.classBodyDeclaration())
                {
                    classBodyDeclarationContext.EnterRule(classBodyDeclarationListener);
                }
            }
示例#2
0
        public override void EnterEnumBodyDeclarations(JavaParser.EnumBodyDeclarationsContext context)
        {
            ClassBodyDeclarationListener classBodyDeclarationListener =
                new ClassBodyDeclarationListener(parentClassName, parentFilePath, packageFqn);

            foreach (JavaParser.ClassBodyDeclarationContext classBodyDeclarationContext
                     in context.classBodyDeclaration())
            {
                classBodyDeclarationContext.EnterRule(classBodyDeclarationListener);
                FieldInfos.AddRange(classBodyDeclarationListener.FieldInfos);
            }
        }
示例#3
0
        public override void EnterClassBody(JavaParser.ClassBodyContext context)
        {
            ClassBodyDeclarationListener classBodyDeclarationListener =
                new ClassBodyDeclarationListener(parentClass, package, packageFqn);

            foreach (JavaParser.ClassBodyDeclarationContext classBodyDeclarationContext in
                     context.classBodyDeclaration())
            {
                classBodyDeclarationContext.EnterRule(classBodyDeclarationListener);
            }

            MethodInfos  = classBodyDeclarationListener.MethodInfos;
            FieldInfos   = classBodyDeclarationListener.FieldInfos;
            InnerClasses = classBodyDeclarationListener.InnerClasses;
        }