/** * @return Access entry on top of the access stack */ private final Access peekAccess() { return (Access)accessStack.peek(); }
/** * @return Access entry on top of the access stack */ private final Access peekAccess() { return accessStack.peek(); }
/** * Gets the current request target. May be null. * * @return the current request target, null if none was set yet. */ public final IRequestTarget getRequestTarget() { return (!requestTargets.isEmpty()) ? (IRequestTarget)requestTargets.peek() : null; }
/** * Gets the current request target. May be null. * * @return the current request target, null if none was set yet. */ public final IRequestTarget getRequestTarget() { return (!requestTargets.isEmpty()) ? (IRequestTarget)requestTargets.peek() : null; }
/** * Removes the object at the top of this stack and returns that object. * * @return The object at the top of this stack * @exception EmptyStackException * If this stack is empty. */ public final T pop() { final T top = peek(); remove(size() - 1); return top; }
/** * Removes the object at the top of this stack and returns that object. * * @return The object at the top of this stack * @exception EmptyStackException * If this stack is empty. */ public final Object pop() { final Object top = peek(); remove(size() - 1); return top; }
/** * Removes the object at the top of this stack and returns that object. * * @return The object at the top of this stack * @exception EmptyStackException * If this stack is empty. */ public final T pop() { final T top = peek(); remove(size() - 1); return top; }
IRequestTarget former = requestTargets.peek(); log.debug("replacing request target " + former + " with " + requestTarget);
IRequestTarget former = (IRequestTarget)requestTargets.peek(); log.debug("replacing request target " + former + " with " + requestTarget);
ChangeList previous = (ChangeList)changeListStack.peek(); previous.add(changeList);
ChangeList previous = changeListStack.peek(); previous.add(changeList);
final ComponentTag top = stack.peek();
final ComponentTag top = (ComponentTag)stack.peek();
if (accessStackPageMap.getAccessStack().size() > 0) final Access access = accessStackPageMap.getAccessStack().peek();