APIdia Launch Partner
Top Fields Constructors Methods
jdk.internal.classfile.impl

public abstract sealed Class AbstractUnboundModel<E extends ClassFileElement>

extends AbstractElement
implements CompoundElement<E extends ClassFileElement>, AttributedElement
permits Model, Model, Model
Class Inheritance
All Implemented Interfaces
java.lang.classfile.AttributedElement, java.lang.classfile.ClassFileElement, java.lang.classfile.CompoundElement, java.lang.Iterable
Known Direct Subclasses
jdk.internal.classfile.impl.BufferedCodeBuilder.Model, jdk.internal.classfile.impl.BufferedFieldBuilder.Model, jdk.internal.classfile.impl.BufferedMethodBuilder.Model
Imports
java.lang.classfile.Attribute, .AttributedElement, .ClassFileElement, .CompoundElement, java.util.Collections, .List, java.util.function.Consumer, java.util.stream.Stream

Field Summary

Modifier and TypeField and Description
private List<Attribute<?>>
pack-priv final List<E>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public List<Attribute<?>>
attributes()

Implements java.lang.classfile.AttributedElement.attributes.

Returns the attributes of this structure.

public List<E>
elementList()

Overrides default java.lang.classfile.CompoundElement.elementList.

Returns a List containing all member elements in this compound element.

public Stream<E>
elementStream()

Overrides default java.lang.classfile.CompoundElement.elementStream.

Returns a Stream containing all member elements in this compound element.

public void
forEach(Consumer<? super E> consumer)

Implements java.lang.classfile.CompoundElement.forEach.

Invokes the provided handler with each member element in this compound element.

Inherited from jdk.internal.classfile.impl.AbstractElement:
writeTowriteTowriteTowriteTo

Field Detail

attributesback to summary
private List<Attribute<?>> attributes
elementsback to summary
pack-priv final List<E> elements

Constructor Detail

AbstractUnboundModelback to summary
public AbstractUnboundModel(List<E> elements)

Method Detail

attributesback to summary
public List<Attribute<?>> attributes()

Implements java.lang.classfile.AttributedElement.attributes.

Doc from java.lang.classfile.AttributedElement.attributes.

Returns the attributes of this structure.

Annotations
@Override
elementListback to summary
public List<E> elementList()

Overrides default java.lang.classfile.CompoundElement.elementList.

Doc from java.lang.classfile.CompoundElement.elementList.

Returns a List containing all member elements in this compound element.

Annotations
@Override
elementStreamback to summary
public Stream<E> elementStream()

Overrides default java.lang.classfile.CompoundElement.elementStream.

Doc from java.lang.classfile.CompoundElement.elementStream.

Returns a Stream containing all member elements in this compound element.

Annotations
@Override
forEachback to summary
public void forEach(Consumer<? super E> consumer)

Implements java.lang.classfile.CompoundElement.forEach.

Doc from java.lang.classfile.CompoundElement.forEach.

Invokes the provided handler with each member element in this compound element.

Annotations
@Override