⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mapadapter.java

📁 struts 2 核心包 的源码 有错误是难免的
💻 JAVA
字号:
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   MapAdapter.java

package org.apache.struts2.views.xslt;

import java.util.*;

// Referenced classes of package org.apache.struts2.views.xslt:
//			AbstractAdapterElement, AdapterFactory, AdapterNode

public class MapAdapter extends AbstractAdapterElement
{
	class EntryElement extends AbstractAdapterElement
	{

		Object key;
		Object value;
		final MapAdapter this$0;

		protected List buildChildAdapters()
		{
			List children = new ArrayList();
			children.add(getAdapterFactory().adaptNode(this, "key", key));
			children.add(getAdapterFactory().adaptNode(this, "value", value));
			return children;
		}

		public EntryElement(AdapterFactory adapterFactory, AdapterNode parent, String propertyName, Object key, Object value)
		{
			this$0 = MapAdapter.this;
			super();
			setContext(adapterFactory, parent, propertyName, null);
			this.key = key;
			this.value = value;
		}
	}


	public MapAdapter()
	{
	}

	public MapAdapter(AdapterFactory adapterFactory, AdapterNode parent, String propertyName, Map value)
	{
		setContext(adapterFactory, parent, propertyName, value);
	}

	public Map map()
	{
		return (Map)getPropertyValue();
	}

	protected List buildChildAdapters()
	{
		List children = new ArrayList(map().entrySet().size());
		EntryElement child;
		for (Iterator i$ = map().entrySet().iterator(); i$.hasNext(); children.add(child))
		{
			Object o = i$.next();
			java.util.Map.Entry entry = (java.util.Map.Entry)o;
			Object key = entry.getKey();
			Object value = entry.getValue();
			child = new EntryElement(getAdapterFactory(), this, "entry", key, value);
		}

		return children;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -