public override void EnterClassBodyDeclaration(JavaParser.ClassBodyDeclarationContext context) { if (context.memberDeclaration() == null) { return; } MemberDeclarationListener memberDeclarationListener = new MemberDeclarationListener(parentClassName, package, packageFqn); context.memberDeclaration().EnterRule(memberDeclarationListener); if (memberDeclarationListener.MethodInfo != null) { MethodInfos.Add(memberDeclarationListener.MethodInfo); } if (memberDeclarationListener.FieldInfo != null) { FieldInfos.Add(memberDeclarationListener.FieldInfo); } if (memberDeclarationListener.InnerClassInfo != null) { InnerClasses.Add(memberDeclarationListener.InnerClassInfo); } }
public override void EnterClassBodyDeclaration(JavaParser.ClassBodyDeclarationContext context) { if (context.memberDeclaration() == null) { return; } MemberDeclarationListener memberDeclarationListener = new MemberDeclarationListener(parentClass); context.memberDeclaration().EnterRule(memberDeclarationListener); }