<!ELEMENT extension (javaLogicalStructure)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT javaLogicalStructure (variable)>
<!ATTLIST javaLogicalStructure
type CDATA #REQUIRED
subtypes (true | false) "true"
value CDATA #IMPLIED
description CDATA #REQUIRED>
true
。<!ELEMENT variable EMPTY>
<!ATTLIST variable
name CDATA #REQUIRED
value CDATA #REQUIRED>
此类型对象的逻辑值的一个变量。
在以上示例中,Map 转换为它的条目,Map$Entry 转换为它的键和值。<extension point=
"org.eclipse.jdt.debug.javaLogicalStructures"
>
<javaLogitalStructure subtypes=
"true"
value=
"return entrySet().toArray();"
type=
"java.util.Map"
/>
<javaLogitalStructure subtypes=
"true"
type=
"java.util.Map$Entry"
>
<variable value=
"return getKey();"
name=
"key"
/>
<variable value=
"return getValue();"
name=
"value"
/>
</javaLogitalStructure>
</extension>
Copyright (c) 2004, 2005 IBM Corporation and others.
All rights reserved. This program and the accompanying materials are made
available under the terms of the Eclipse Public License v1.0 which
accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html