Module org.glavo.classfile
Package org.glavo.classfile.impl
Class AbstractUnboundModel<E extends ClassFileElement>
java.lang.Object
org.glavo.classfile.impl.AbstractElement
org.glavo.classfile.impl.AbstractUnboundModel<E>
- All Implemented Interfaces:
Iterable<E>,AttributedElement,ClassFileElement,CompoundElement<E>
- Direct Known Subclasses:
BufferedCodeBuilder.Model,BufferedFieldBuilder.Model,BufferedMethodBuilder.Model
public abstract sealed class AbstractUnboundModel<E extends ClassFileElement>
extends AbstractElement
implements CompoundElement<E>, AttributedElement
permits BufferedCodeBuilder.Model, BufferedFieldBuilder.Model, BufferedMethodBuilder.Model
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the attributes of this element.Returns anListcontaining all the elements contained in this compound element.Returns aStreamcontaining all the elements contained in this compound element.voidforEachElement(Consumer<E> consumer) Invoke the provided handler with each element contained in this compound elementMethods inherited from class org.glavo.classfile.impl.AbstractElement
writeTo, writeTo, writeTo, writeToMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.glavo.classfile.AttributedElement
findAttribute, findAttributesMethods inherited from interface org.glavo.classfile.CompoundElement
elements, iteratorMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
AbstractUnboundModel
-
-
Method Details
-
forEachElement
Description copied from interface:CompoundElementInvoke the provided handler with each element contained in this compound element- Specified by:
forEachElementin interfaceCompoundElement<E extends ClassFileElement>- Parameters:
consumer- the handler
-
elementStream
Description copied from interface:CompoundElementReturns aStreamcontaining all the elements contained in this compound element.- Specified by:
elementStreamin interfaceCompoundElement<E extends ClassFileElement>- Returns:
- a
Streamcontaining all the elements contained in this compound element
-
elementList
Description copied from interface:CompoundElementReturns anListcontaining all the elements contained in this compound element.- Specified by:
elementListin interfaceCompoundElement<E extends ClassFileElement>- Returns:
- an
Listcontaining all the elements contained in this compound element
-
attributes
Description copied from interface:AttributedElementReturns the attributes of this element.- Specified by:
attributesin interfaceAttributedElement- Returns:
- the attributes of this element
-