Class ClassWriter


  • final class ClassWriter
    extends java.lang.Object
    • Constructor Detail

      • ClassWriter

        ClassWriter​(TypeBuilder<?> typeBuilder)
    • Method Detail

      • writeClass

        public void writeClass​(java.io.OutputStream out)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • writeClass

        public void writeClass​(CodeStream out)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • writeCore

        private void writeCore()
      • writeEnclosingMethodAttribute

        private int writeEnclosingMethodAttribute​(TypeBuilder<?> t)
      • writeInnerTypes

        private int writeInnerTypes()
      • writeInnerTypeInfo

        private void writeInnerTypeInfo​(Type<?> type)
      • writeFields

        private void writeFields()
      • writeField

        private void writeField​(FieldBuilder field)
      • writeMethods

        private void writeMethods()
      • writeMethod

        private void writeMethod​(MethodBuilder method)
      • needsLocalVariableTableEntry

        private boolean needsLocalVariableTableEntry​(Type<?> localType)
      • writeMemberAttributes

        private int writeMemberAttributes​(MemberInfo member)
      • writeParameterAttributes

        private int writeParameterAttributes​(MethodBuilder method)
      • getAnnotationRetention

        private java.lang.annotation.RetentionPolicy getAnnotationRetention​(AnnotationBuilder<? extends java.lang.annotation.Annotation> a)
      • writeJavaAnnotations

        private int writeJavaAnnotations​(ReadOnlyList<AnnotationBuilder<? extends java.lang.annotation.Annotation>> annotations)
      • writeAnnotation

        private void writeAnnotation​(AnnotationBuilder<? extends java.lang.annotation.Annotation> a)
      • writeAttributeType

        private void writeAttributeType​(java.lang.Object value)
      • writeAttribute

        private int writeAttribute​(java.lang.String attributeName)
      • beginAttributes

        private int beginAttributes()
      • endAttributes

        private void endAttributes​(int index,
                                   int count)
      • endAttribute

        private void endAttribute​(int index)
      • writeFlagAttributes

        private int writeFlagAttributes​(long flags)
      • putChar

        void putChar​(CodeStream buf,
                     int op,
                     int x)
      • putInt

        void putInt​(CodeStream buf,
                    int adr,
                    int x)