<!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. 本程式與隨附的資料依照 Elipse Public License 1.0 版此次發行所隨附的條款而提供,
可以在以下網址取得:http://www.eclipse.org/legal/epl-v10.html