- Type Parameters:
T- the type of the entity
- All Superinterfaces:
ClassFileElement
- All Known Subinterfaces:
Annotation,AnnotationConstantValueEntry,AnnotationDefaultAttribute,AnnotationElement,AnnotationImpl.OfConstantImpl,AnnotationValue,AnnotationValue.OfAnnotation,AnnotationValue.OfArray,AnnotationValue.OfBoolean,AnnotationValue.OfByte,AnnotationValue.OfCharacter,AnnotationValue.OfClass,AnnotationValue.OfConstant,AnnotationValue.OfDouble,AnnotationValue.OfEnum,AnnotationValue.OfFloat,AnnotationValue.OfInteger,AnnotationValue.OfLong,AnnotationValue.OfShort,AnnotationValue.OfString,Attribute<A>,BootstrapMethodEntry,BootstrapMethodsAttribute,CharacterRangeTableAttribute,ClassEntry,CodeAttribute,CompilationIDAttribute,ConstantDynamicEntry,ConstantPoolBuilder,ConstantValueAttribute,ConstantValueEntry,DeprecatedAttribute,DoubleEntry,DynamicConstantPoolEntry,EnclosingMethodAttribute,ExceptionsAttribute,FieldModel,FieldRefEntry,FloatEntry,InnerClassesAttribute,IntegerEntry,InterfaceMethodRefEntry,InvokeDynamicEntry,LineNumberTableAttribute,LoadableConstantEntry,LocalVariableTableAttribute,LocalVariableTypeTableAttribute,LongEntry,MemberRefEntry,MethodHandleEntry,MethodModel,MethodParametersAttribute,MethodRefEntry,MethodTypeEntry,ModuleAttribute,ModuleEntry,ModuleHashesAttribute,ModuleMainClassAttribute,ModulePackagesAttribute,ModuleResolutionAttribute,ModuleTargetAttribute,NameAndTypeEntry,NestHostAttribute,NestMembersAttribute,PackageEntry,PermittedSubclassesAttribute,PoolEntry,RecordAttribute,RuntimeInvisibleAnnotationsAttribute,RuntimeInvisibleParameterAnnotationsAttribute,RuntimeInvisibleTypeAnnotationsAttribute,RuntimeVisibleAnnotationsAttribute,RuntimeVisibleParameterAnnotationsAttribute,RuntimeVisibleTypeAnnotationsAttribute,SignatureAttribute,SourceDebugExtensionAttribute,SourceFileAttribute,SourceIDAttribute,StackMapTableAttribute,StringEntry,SyntheticAttribute,TypeAnnotation,UnknownAttribute,Utf8Entry
- All Known Implementing Classes:
AbstractPoolEntry.AbstractMemberRefEntry,AbstractPoolEntry.ClassEntryImpl,AbstractPoolEntry.ConstantDynamicEntryImpl,AbstractPoolEntry.DoubleEntryImpl,AbstractPoolEntry.FieldRefEntryImpl,AbstractPoolEntry.FloatEntryImpl,AbstractPoolEntry.IntegerEntryImpl,AbstractPoolEntry.InterfaceMethodRefEntryImpl,AbstractPoolEntry.InvokeDynamicEntryImpl,AbstractPoolEntry.LongEntryImpl,AbstractPoolEntry.MethodHandleEntryImpl,AbstractPoolEntry.MethodRefEntryImpl,AbstractPoolEntry.MethodTypeEntryImpl,AbstractPoolEntry.ModuleEntryImpl,AbstractPoolEntry.NameAndTypeEntryImpl,AbstractPoolEntry.PackageEntryImpl,AbstractPoolEntry.StringEntryImpl,AbstractPoolEntry.Utf8EntryImpl,AnnotationImpl,AnnotationImpl.AnnotationElementImpl,AnnotationImpl.OfAnnotationImpl,AnnotationImpl.OfArrayImpl,AnnotationImpl.OfBooleanImpl,AnnotationImpl.OfByteImpl,AnnotationImpl.OfCharacterImpl,AnnotationImpl.OfClassImpl,AnnotationImpl.OfDoubleImpl,AnnotationImpl.OfEnumImpl,AnnotationImpl.OfFloatImpl,AnnotationImpl.OfIntegerImpl,AnnotationImpl.OfLongImpl,AnnotationImpl.OfShortImpl,AnnotationImpl.OfStringImpl,BootstrapMethodEntryImpl,BoundAttribute,BoundAttribute.BoundAnnotationDefaultAttr,BoundAttribute.BoundBootstrapMethodsAttribute,BoundAttribute.BoundCharacterRangeTableAttribute,BoundAttribute.BoundCodeAttribute,BoundAttribute.BoundCompilationIDAttribute,BoundAttribute.BoundConstantValueAttribute,BoundAttribute.BoundDeprecatedAttribute,BoundAttribute.BoundEnclosingMethodAttribute,BoundAttribute.BoundExceptionsAttribute,BoundAttribute.BoundInnerClassesAttribute,BoundAttribute.BoundLineNumberTableAttribute,BoundAttribute.BoundLocalVariableTableAttribute,BoundAttribute.BoundLocalVariableTypeTableAttribute,BoundAttribute.BoundMethodParametersAttribute,BoundAttribute.BoundModuleAttribute,BoundAttribute.BoundModuleHashesAttribute,BoundAttribute.BoundModuleMainClassAttribute,BoundAttribute.BoundModulePackagesAttribute,BoundAttribute.BoundModuleResolutionAttribute,BoundAttribute.BoundModuleTargetAttribute,BoundAttribute.BoundNestHostAttribute,BoundAttribute.BoundNestMembersAttribute,BoundAttribute.BoundPermittedSubclassesAttribute,BoundAttribute.BoundRecordAttribute,BoundAttribute.BoundRuntimeInvisibleAnnotationsAttribute,BoundAttribute.BoundRuntimeInvisibleParameterAnnotationsAttribute,BoundAttribute.BoundRuntimeInvisibleTypeAnnotationsAttribute,BoundAttribute.BoundRuntimeVisibleAnnotationsAttribute,BoundAttribute.BoundRuntimeVisibleParameterAnnotationsAttribute,BoundAttribute.BoundRuntimeVisibleTypeAnnotationsAttribute,BoundAttribute.BoundSignatureAttribute,BoundAttribute.BoundSourceDebugExtensionAttribute,BoundAttribute.BoundSourceFileAttribute,BoundAttribute.BoundSourceIDAttribute,BoundAttribute.BoundStackMapTableAttribute,BoundAttribute.BoundSyntheticAttribute,BoundAttribute.BoundUnknownAttribute,BufferedFieldBuilder.Model,BufferedMethodBuilder.Model,CodeImpl,CustomAttribute,DirectFieldBuilder,DirectMethodBuilder,FieldImpl,MethodImpl,SplitConstantPool,TemporaryConstantPool,UnboundAttribute,UnboundAttribute.AdHocAttribute,UnboundAttribute.EmptyBootstrapAttribute,UnboundAttribute.UnboundAnnotationDefaultAttribute,UnboundAttribute.UnboundCharacterRangeTableAttribute,UnboundAttribute.UnboundCompilationIDAttribute,UnboundAttribute.UnboundConstantValueAttribute,UnboundAttribute.UnboundDeprecatedAttribute,UnboundAttribute.UnboundEnclosingMethodAttribute,UnboundAttribute.UnboundExceptionsAttribute,UnboundAttribute.UnboundInnerClassesAttribute,UnboundAttribute.UnboundLineNumberTableAttribute,UnboundAttribute.UnboundLocalVariableTableAttribute,UnboundAttribute.UnboundLocalVariableTypeTableAttribute,UnboundAttribute.UnboundMethodParametersAttribute,UnboundAttribute.UnboundModuleAttribute,UnboundAttribute.UnboundModuleHashesAttribute,UnboundAttribute.UnboundModuleMainClassAttribute,UnboundAttribute.UnboundModulePackagesAttribute,UnboundAttribute.UnboundModuleResolutionAttribute,UnboundAttribute.UnboundModuleTargetAttribute,UnboundAttribute.UnboundNestHostAttribute,UnboundAttribute.UnboundNestMembersAttribute,UnboundAttribute.UnboundPermittedSubclassesAttribute,UnboundAttribute.UnboundRecordAttribute,UnboundAttribute.UnboundRuntimeInvisibleAnnotationsAttribute,UnboundAttribute.UnboundRuntimeInvisibleParameterAnnotationsAttribute,UnboundAttribute.UnboundRuntimeInvisibleTypeAnnotationsAttribute,UnboundAttribute.UnboundRuntimeVisibleAnnotationsAttribute,UnboundAttribute.UnboundRuntimeVisibleParameterAnnotationsAttribute,UnboundAttribute.UnboundRuntimeVisibleTypeAnnotationsAttribute,UnboundAttribute.UnboundSignatureAttribute,UnboundAttribute.UnboundSourceDebugExtensionAttribute,UnboundAttribute.UnboundSourceFileAttribute,UnboundAttribute.UnboundSourceIDAttribute,UnboundAttribute.UnboundStackMapTableAttribute,UnboundAttribute.UnboundSyntheticAttribute,UnboundAttribute.UnboundTypeAnnotation
public sealed interface WritableElement<T>
extends ClassFileElement
permits Annotation, AnnotationElement, AnnotationValue, Attribute<A>, PoolEntry, BootstrapMethodEntry, FieldModel, MethodModel, ConstantPoolBuilder, DirectFieldBuilder, DirectMethodBuilder
A classfile element that can encode itself as a stream of bytes in the
encoding expected by the classfile format.
- Since:
- 22
-
Method Summary
-
Method Details
-
writeTo
Writes the element to the specified writer- Parameters:
buf- the writer
-