public void reset() { matcherStack.clear(); }
public void reset() { matcherStack.clear(); } }
/** * Clears the instance stack. */ protected void clearStack() { stack.clear(); } }
private synchronized void addTableNamesForPrewarming(List<String> tblNames) { tableNames.clear(); if (tblNames != null) { tableNames.addAll(tblNames); } }
public List<LocalizedMatcher> pullLocalizedMatchers() { if (matcherStack.isEmpty()) { return Collections.emptyList(); } List<LocalizedMatcher> matchers = new ArrayList<LocalizedMatcher>(matcherStack); matcherStack.clear(); return (List) matchers; }
/** * Resets the command, mode, visual mode, and mapping mode to initial values. */ public void reset() { myCommand = null; myStates.clear(); updateStatus(); }
/** * Resets the state of this handler. Does a partial reset then resets the mode, the command, and the argument * * @param editor The editor to reset. */ public void reset(@Nullable Editor editor) { partialReset(editor); state = State.NEW_COMMAND; currentCmd.clear(); currentArg = Argument.Type.NONE; digraph = null; }
@Override protected void clearStack() { super.clearStack(); styleStack.clear(); }
@Override protected void clearStack() { super.clearStack(); styleStack.clear(); }
@Override protected void clearStack() { super.clearStack(); docLabels.clear(); }
@Override public Object visit(ASTCompilationUnit node, Object data) { currentLookup.clear(); return super.visit(node, data); }
private void assertIncorrectUseOfAdditionalMatchers(String additionalMatcherName, int count) { if(matcherStack.size() < count) { ArrayList<LocalizedMatcher> lastMatchers = new ArrayList<LocalizedMatcher>(matcherStack); matcherStack.clear(); new Reporter().incorrectUseOfAdditionalMatchers(additionalMatcherName, count, lastMatchers); } }
public void validateState() { if (!matcherStack.isEmpty()) { ArrayList lastMatchers = new ArrayList<LocalizedMatcher>(matcherStack); matcherStack.clear(); new Reporter().misplacedArgumentMatcher(lastMatchers); } }
private void assertMatchersFoundFor(String additionalMatcherName) { if (matcherStack.isEmpty()) { matcherStack.clear(); new Reporter().reportNoSubMatchersFound(additionalMatcherName); } }
/** * Resets the Ruby tracked state; {@inheritDoc} */ @Override public void reset() { super.reset(); if (helpers != null) helpers.clear(); h.reset(); lastSymbol = null; }
/** * Resets the Ruby tracked state; {@inheritDoc} */ @Override public void reset() { super.reset(); if (helpers != null) helpers.clear(); h.reset(); }
/** Handles a runtime/loading error in {@link #update()} by optionally invoking the {@link AssetErrorListener}. * @param t */ private void handleTaskError (Throwable t) { log.error("Error loading asset.", t); if (tasks.isEmpty()) throw new GdxRuntimeException(t); // pop the faulty task from the stack AssetLoadingTask task = tasks.pop(); AssetDescriptor assetDesc = task.assetDesc; // remove all dependencies if (task.dependenciesLoaded && task.dependencies != null) { for (AssetDescriptor desc : task.dependencies) { unload(desc.fileName); } } // clear the rest of the stack tasks.clear(); // inform the listener that something bad happened if (listener != null) { listener.error(assetDesc, t); } else { throw new GdxRuntimeException(t); } }
/** Handles a runtime/loading error in {@link #update()} by optionally invoking the {@link AssetErrorListener}. * @param t */ private void handleTaskError (Throwable t) { log.error("Error loading asset.", t); if (tasks.isEmpty()) throw new GdxRuntimeException(t); // pop the faulty task from the stack AssetLoadingTask task = tasks.pop(); AssetDescriptor assetDesc = task.assetDesc; // remove all dependencies if (task.dependenciesLoaded && task.dependencies != null) { for (AssetDescriptor desc : task.dependencies) { unload(desc.fileName); } } // clear the rest of the stack tasks.clear(); // inform the listener that something bad happened if (listener != null) { listener.error(assetDesc, t); } else { throw new GdxRuntimeException(t); } }