站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

AttributeMap (Classfile Reader) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.classfile/1 1.19

org.netbeans.modules.classfile
Class AttributeMap

java.lang.Object
  extended by org.netbeans.modules.classfile.AttributeMap

public final class AttributeMap
extends Object

Class representing a map of classfile attributes. The keys for this map are the names of the attributes (as Strings, not constant pool indexes). The values are byte arrays that hold the contents of the attribute. Note: if a ClassFile is created with includeCode parameter set to false, then no AttributeMaps for the classfile's methods will have Code attributes.


Method Summary
 boolean containsAttribute(String key)
          Returns true if an attribute of the specified name exists in this map.
 boolean isEmpty()
          Returns true if no attributes exist in this map.
 Set keySet()
          Returns a set of names of all of the attributes in this map.
 int size()
          Returns the number of attributes in this map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

size

public int size()
Returns the number of attributes in this map.


isEmpty

public boolean isEmpty()
Returns true if no attributes exist in this map.


containsAttribute

public boolean containsAttribute(String key)
Returns true if an attribute of the specified name exists in this map.


keySet

public Set keySet()
Returns a set of names of all of the attributes in this map.


org.netbeans.modules.classfile/1 1.19

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.