@Override public void exitMethodDeclaration(com.sap.psr.vulas.java.antlr.JavaParser.MethodDeclarationContext ctx) { final JavaId id = (JavaId) this.contextStack.pop().getConstructId(); }
@Override public void exitClassBody(@NotNull JavaParser.ClassBodyContext ctx) { final JavaId id = (JavaId) this.contextStack.pop().getConstructId(); this.isOfExpectedType(id, new JavaId.Type[] { JavaId.Type.CLASS }, true); this.constructIdBuilder.resetCurrentDeclarationContext(); }
@Override public void exitEnumDeclaration(@NotNull JavaParser.EnumDeclarationContext ctx) { final JavaId id = (JavaId)this.contextStack.pop().getConstructId(); this.isOfExpectedType(id, new JavaId.Type[] { JavaId.Type.ENUM }, true); }
@Override public void exitConstructorDeclaration(com.sap.psr.vulas.java.antlr.JavaParser.ConstructorDeclarationContext ctx) { final JavaId id = (JavaId)this.contextStack.pop().getConstructId(); }
@Override public void exitInterfaceDeclaration(@NotNull JavaParser.InterfaceDeclarationContext ctx) { final JavaId id = (JavaId)this.contextStack.pop().getConstructId(); this.isOfExpectedType(id, new JavaId.Type[] { JavaId.Type.INTERFACE }, true); }