Example #1
0
            public override void EnterClassBody(JavaParser.ClassBodyContext context)
            {
                ClassBodyDeclarationListener classBodyDeclarationListener =
                    new ClassBodyDeclarationListener(parentClass);

                foreach (JavaParser.ClassBodyDeclarationContext classBodyDeclarationContext in
                         context.classBodyDeclaration())
                {
                    classBodyDeclarationContext.EnterRule(classBodyDeclarationListener);
                }
            }
Example #2
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;
        }
 public Ust VisitClassBody(JavaParser.ClassBodyContext context)
 {
     return(VisitChildren(context));
 }