private TagStateEntry currentState() { return this.tagState.element(); }
/** * The active context object is what unqualified references to properties/etc are resolved against. */ public TypedValue getActiveContextObject() { if (CollectionUtils.isEmpty(this.contextObjects)) { return this.rootObject; } return this.contextObjects.element(); }
/** * Record the descriptor for the most recently evaluated expression element. * @param descriptor type descriptor for most recently evaluated element */ public void pushDescriptor(@Nullable String descriptor) { if (descriptor != null) { this.compilationScopes.element().add(descriptor); } }
@Override public synchronized V element() { return delegate.element(); }
/** {@inheritDoc} */ @Override public E element() { return deque.element(); }
private TagStateEntry currentState() { return this.tagState.element(); }
/** * The active context object is what unqualified references to properties/etc are resolved against. */ public TypedValue getActiveContextObject() { if (CollectionUtils.isEmpty(this.contextObjects)) { return this.rootObject; } return this.contextObjects.element(); }
/** * Record the descriptor for the most recently evaluated expression element. * @param descriptor type descriptor for most recently evaluated element */ public void pushDescriptor(@Nullable String descriptor) { if (descriptor != null) { this.compilationScopes.element().add(descriptor); } }
@Override public E element() { assertTrue(Thread.holdsLock(mutex)); return delegate.element(); }
public void setLocalVariable(String name, Object value) { initVariableScopes().element().setVariable(name, value); }
public CircularImportProblem(ConfigurationClass attemptedImport, Deque<ConfigurationClass> importStack) { super(String.format("A circular @Import has been detected: " + "Illegal attempt by @Configuration class '%s' to import class '%s' as '%s' is " + "already present in the current import stack %s", importStack.element().getSimpleName(), attemptedImport.getSimpleName(), attemptedImport.getSimpleName(), importStack), new Location(importStack.element().getResource(), attemptedImport.getMetadata())); } }
public CircularImportProblem(ConfigurationClass attemptedImport, Deque<ConfigurationClass> importStack) { super(String.format("A circular @Import has been detected: " + "Illegal attempt by @Configuration class '%s' to import class '%s' as '%s' is " + "already present in the current import stack %s", importStack.element().getSimpleName(), attemptedImport.getSimpleName(), attemptedImport.getSimpleName(), importStack), new Location(importStack.element().getResource(), attemptedImport.getMetadata())); } }
public void setLocalVariable(String name, Object value) { initVariableScopes().element().setVariable(name, value); }
public void testHoldsLockOnAllOperations() { create().element(); create().offer("foo"); create().peek();
/** * @return * @see java.util.Deque#element() */ public T element() { return deque.element(); } /**
/** * Determines whether assignment to a define should be allowed * at the current point of the traversal. */ private boolean isAssignAllowed() { return assignAllowed.element() == 1; }
/** * Determines whether assignment to a define should be allowed * at the current point of the traversal. */ private boolean isAssignAllowed() { return assignAllowed.element() == 1; }
private Map<String, String> getRequestParameters(HttpServerExchange exchange) { Map<String, String> requestParamater = new HashMap<String, String>(); Map<String, Deque<String>> queryParameters = exchange.getQueryParameters(); queryParameters.putAll(exchange.getPathParameters()); for (Map.Entry<String, Deque<String>> entry : queryParameters.entrySet()) { requestParamater.put(entry.getKey(), entry.getValue().element()); } return requestParamater; }
@Override public E element() { assertTrue(Thread.holdsLock(mutex)); return delegate.element(); }
@Override public void openDir(@NotNull String name) throws SVNException, IOException { final GitTreeUpdate current = treeStack.element(); final GitTreeEntry originalDir = current.getEntries().remove(name); if ((originalDir == null) || (!originalDir.getFileMode().equals(FileMode.TREE))) { throw new SVNException(SVNErrorMessage.create(SVNErrorCode.ENTRY_NOT_FOUND, getFullPath(name))); } commitActions.add(action -> action.openDir(name)); treeStack.push(new GitTreeUpdate(name, repo.loadTree(originalDir))); }