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) privateDataVectorAttr(ConstantPool pool, EAttribute eAttribute, boolean byteIndex, ArrayList<T> initialData) (package private)DataVectorAttr(ConstantPool pool, EAttribute attribute, ArrayList<T> initialData) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends T> c) intvoidclear()booleanbooleancontainsAll(Collection<?> c) get(int index) booleanisEmpty()iterator()booleanbooleanremoveAll(Collection<?> c) voidreplaceAll(Collection<T> collection) booleanretainAll(Collection<?> c) intsize()stream()Object[]toArray()<V> V[]toArray(V[] a) voidMethods inherited from class org.openjdk.asmtools.jasm.AttrData
classifyConstCell, getLength, visitMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, toArrayMethods 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:
addin interfaceCollection<T extends DataWriter>
-
remove
- Specified by:
removein interfaceCollection<T extends DataWriter>
-
containsAll
- Specified by:
containsAllin interfaceCollection<T extends DataWriter>
-
addAll
- Specified by:
addAllin interfaceCollection<T extends DataWriter>
-
removeAll
- Specified by:
removeAllin interfaceCollection<T extends DataWriter>
-
retainAll
- Specified by:
retainAllin interfaceCollection<T extends DataWriter>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<T extends DataWriter>
-
addAll
-
set
-
size
public int size()- Specified by:
sizein interfaceCollection<T extends DataWriter>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<T extends DataWriter>
-
contains
- Specified by:
containsin interfaceCollection<T extends DataWriter>
-
replaceAll
-
getElements
-
iterator
- Specified by:
iteratorin interfaceCollection<T extends DataWriter>- Specified by:
iteratorin interfaceIterable<T extends DataWriter>
-
toArray
- Specified by:
toArrayin interfaceCollection<T extends DataWriter>
-
toArray
public <V> V[] toArray(V[] a) - Specified by:
toArrayin interfaceCollection<T extends DataWriter>
-
stream
- Specified by:
streamin interfaceCollection<T extends DataWriter>
-
attrLength
public int attrLength()- Overrides:
attrLengthin classAttrData
-
write
- Specified by:
writein interfaceDataWriter- Overrides:
writein classAttrData- Throws:
IOException
-