switch (axis) { case Constants.FOLLOWING_SIBLING_AXIS : return (NodeImpl) last.getNextSibling(); default : return (NodeImpl) last.getPreviousSibling(); }
switch (axis) { case Constants.FOLLOWING_SIBLING_AXIS : return (NodeImpl) last.getNextSibling(); case Constants.PRECEDING_SIBLING_AXIS : return (NodeImpl) last.getPreviousSibling(); default : throw new IllegalArgumentException("Unsupported axis specified"); }
	protected NodeImpl getNextSibling(NodeImpl last) {		switch (axis) {			case Constants.FOLLOWING_SIBLING_AXIS :				return (NodeImpl) last.getNextSibling();			default :				return (NodeImpl) last.getPreviousSibling();		}	}