<!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. 這個程式和檢附的資料是遵循這項分送檢附的 Eclipse Public License 1.0 版條款而提供的,請造訪下列網址,取得這份條款:http://www.eclipse.org/legal/epl-v10.html。