public override void EnterEnumBodyDeclarations(JavaParser.EnumBodyDeclarationsContext context) { ClassBodyDeclarationListener classBodyDeclarationListener = new ClassBodyDeclarationListener(parentClass); foreach (JavaParser.ClassBodyDeclarationContext classBodyDeclarationContext in context.classBodyDeclaration()) { classBodyDeclarationContext.EnterRule(classBodyDeclarationListener); } }
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); } }
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; }