- All Superinterfaces:
ClassFile.Option
- All Known Implementing Classes:
ClassFileImpl.AttributeMapperOptionImpl
- Enclosing interface:
ClassFile
public static sealed interface ClassFile.AttributeMapperOption
extends ClassFile.Option
permits ClassFileImpl.AttributeMapperOptionImpl
Option describing attribute mappers for custom attributes.
Default is only to process standard attributes.
- Since:
- 22
-
Method Summary
Modifier and TypeMethodDescriptionReturns the function mapping attribute names to attribute mappers.of(Function<Utf8Entry, AttributeMapper<?>> attributeMapper) Returns an option describing attribute mappers for custom attributes.
-
Method Details
-
of
Returns an option describing attribute mappers for custom attributes.- Parameters:
attributeMapper- a function mapping attribute names to attribute mappers- Returns:
- an option describing attribute mappers for custom attributes
-
attributeMapper
Function<Utf8Entry,AttributeMapper<?>> attributeMapper()Returns the function mapping attribute names to attribute mappers.- Returns:
- the function mapping attribute names to attribute mappers
-