Class AttributeMap
- java.lang.Object
-
- org.benf.cfr.reader.entities.attributes.AttributeMap
-
- All Implemented Interfaces:
TypeUsageCollectable
public class AttributeMap extends java.lang.Object implements TypeUsageCollectable
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,Attribute>
attributes
-
Constructor Summary
Constructors Constructor Description AttributeMap(java.util.Collection<Attribute> tmpAttributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
any(java.lang.String... attributeNames)
void
clear()
void
collectTypeUsages(TypeUsageCollector collector)
boolean
containsKey(java.lang.String attributeName)
<T extends Attribute>
TgetByName(java.lang.String name)
-
-
-
Field Detail
-
attributes
private final java.util.Map<java.lang.String,Attribute> attributes
-
-
Constructor Detail
-
AttributeMap
public AttributeMap(java.util.Collection<Attribute> tmpAttributes)
-
-
Method Detail
-
getByName
public <T extends Attribute> T getByName(java.lang.String name)
-
containsKey
public boolean containsKey(java.lang.String attributeName)
-
clear
public void clear()
-
collectTypeUsages
public void collectTypeUsages(TypeUsageCollector collector)
- Specified by:
collectTypeUsages
in interfaceTypeUsageCollectable
-
any
public boolean any(java.lang.String... attributeNames)
-
-