org.netbeans.modules.classfile/1 1.35

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<String> 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<String> keySet()
Returns a set of names of all of the attributes in this map.


org.netbeans.modules.classfile/1 1.35

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.