/** * implements the visitor to reset the uservalues * * @param obj * the context object of the currently parsed code block */ @Override public void visitCode(Code obj) { try { userValues = new HashMap<>(); super.visitCode(obj); } finally { userValues = null; } }
/** * implements the visitor to setup the opcode stack, collectionGroups, groupToIterator and loops * * @param classContext * the context object of the currently parsed class */ @Override public void visitClassContext(ClassContext classContext) { if ((collectionClass == null) || (iteratorClass == null)) { return; } try { collectionGroups = new ArrayList<>(); groupToIterator = new HashMap<>(); loops = new HashMap<>(10); super.visitClassContext(classContext); } finally { collectionGroups = null; groupToIterator = null; loops = null; endOfScopes = null; } }
/** * implements the visitor to setup the opcode stack, collectionGroups, groupToIterator and loops * * @param classContext * the context object of the currently parsed class */ @Override public void visitClassContext(ClassContext classContext) { if ((collectionClass == null) || (iteratorClass == null)) { return; } try { collectionGroups = new ArrayList<>(); groupToIterator = new HashMap<>(); loops = new HashMap<>(10); super.visitClassContext(classContext); } finally { collectionGroups = null; groupToIterator = null; loops = null; endOfScopes = null; } }
/** * implements the visitor to reset the uservalues * * @param obj * the context object of the currently parsed code block */ @Override public void visitCode(Code obj) { try { userValues = new HashMap<>(); super.visitCode(obj); } finally { userValues = null; } }
/** * implements the visitor to reset the stack, collectionGroups, groupToIterator and loops * * @param obj * the context object of the currently parsed code block */ @Override public void visitCode(Code obj) { collectionGroups.clear(); groupToIterator.clear(); loops.clear(); buildVariableEndScopeMap(); super.visitCode(obj); }
/** * implements the visitor to reset the stack, collectionGroups, groupToIterator and loops * * @param obj * the context object of the currently parsed code block */ @Override public void visitCode(Code obj) { collectionGroups.clear(); groupToIterator.clear(); loops.clear(); buildVariableEndScopeMap(); super.visitCode(obj); }
/** * implements the visitor to reset the userValues and loops * * @param obj * the context object of the currently parsed code block */ @Override public void visitCode(Code obj) { try { userValues = new HashMap<>(); loops = new HashMap<>(); isInstanceMethod = !getMethod().isStatic(); super.visitCode(obj); } finally { userValues = null; loops = null; } }
/** * implements the visitor to reset the userValues and loops * * @param obj * the context object of the currently parsed code block */ @Override public void visitCode(Code obj) { try { userValues = new HashMap<>(); loops = new HashMap<>(); isInstanceMethod = !getMethod().isStatic(); super.visitCode(obj); } finally { userValues = null; loops = null; } }