Package org.openjdk.asmtools.jasm
Class DataVectorAttr<T extends DataWriter>
java.lang.Object
org.openjdk.asmtools.jasm.AttrData
org.openjdk.asmtools.jasm.DataVectorAttr<T>
- All Implemented Interfaces:
Iterable<T>
,Collection<T>
,ConstantPoolDataVisitor
,DataWriter
Container for attributes having inline tables:
InnerClasses, BootstrapMethods, LineNumberTable, Runtime(In)Visible(Type|Parameter)Annotations,
LocalVariableTable, StackMapTable
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescription(package private)
DataVectorAttr
(ConstantPool pool, EAttribute attribute) (package private)
DataVectorAttr
(ConstantPool pool, EAttribute attribute, boolean byteIndex) private
DataVectorAttr
(ConstantPool pool, EAttribute eAttribute, boolean byteIndex, ArrayList<T> initialData) (package private)
DataVectorAttr
(ConstantPool pool, EAttribute attribute, ArrayList<T> initialData) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
addAll
(Collection<? extends T> c) int
void
clear()
boolean
boolean
containsAll
(Collection<?> c) get
(int index) boolean
isEmpty()
iterator()
boolean
boolean
removeAll
(Collection<?> c) void
replaceAll
(Collection<T> collection) boolean
retainAll
(Collection<?> c) int
size()
stream()
Object[]
toArray()
<V> V[]
toArray
(V[] a) void
Methods inherited from class org.openjdk.asmtools.jasm.AttrData
classifyConstCell, getLength, visit
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, toArray
Methods inherited from interface org.openjdk.asmtools.jasm.ConstantPoolDataVisitor
visitConstCell, visitData
-
Field Details
-
elements
-
byteIndex
private boolean byteIndex
-
-
Constructor Details
-
DataVectorAttr
private DataVectorAttr(ConstantPool pool, EAttribute eAttribute, boolean byteIndex, ArrayList<T> initialData) - Parameters:
pool
- Constant pooleAttribute
- the attribute name @see org.openjdk.asmtools.common.content.EAttributebyteIndex
- indicates 1 or two bytes is used to keep number of table elements: u2 StackMapTable_attribute.number_of_entries u1 RuntimeVisibleParameterAnnotations_attribute.num_parametersinitialData
- initial elements of table
-
DataVectorAttr
DataVectorAttr(ConstantPool pool, EAttribute attribute, ArrayList<T> initialData) -
DataVectorAttr
DataVectorAttr(ConstantPool pool, EAttribute attribute) -
DataVectorAttr
DataVectorAttr(ConstantPool pool, EAttribute attribute, boolean byteIndex)
-
-
Method Details
-
get
-
add
- Specified by:
add
in interfaceCollection<T extends DataWriter>
-
remove
- Specified by:
remove
in interfaceCollection<T extends DataWriter>
-
containsAll
- Specified by:
containsAll
in interfaceCollection<T extends DataWriter>
-
addAll
- Specified by:
addAll
in interfaceCollection<T extends DataWriter>
-
removeAll
- Specified by:
removeAll
in interfaceCollection<T extends DataWriter>
-
retainAll
- Specified by:
retainAll
in interfaceCollection<T extends DataWriter>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<T extends DataWriter>
-
addAll
-
set
-
size
public int size()- Specified by:
size
in interfaceCollection<T extends DataWriter>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<T extends DataWriter>
-
contains
- Specified by:
contains
in interfaceCollection<T extends DataWriter>
-
replaceAll
-
getElements
-
iterator
- Specified by:
iterator
in interfaceCollection<T extends DataWriter>
- Specified by:
iterator
in interfaceIterable<T extends DataWriter>
-
toArray
- Specified by:
toArray
in interfaceCollection<T extends DataWriter>
-
toArray
public <V> V[] toArray(V[] a) - Specified by:
toArray
in interfaceCollection<T extends DataWriter>
-
stream
- Specified by:
stream
in interfaceCollection<T extends DataWriter>
-
attrLength
public int attrLength()- Overrides:
attrLength
in classAttrData
-
write
- Specified by:
write
in interfaceDataWriter
- Overrides:
write
in classAttrData
- Throws:
IOException
-