Class ClassWriter

java.lang.Object
com.strobel.reflection.emit.ClassWriter

final class ClassWriter extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • writeClass

      public void writeClass(OutputStream out) throws IOException
      Throws:
      IOException
    • writeClass

      public void writeClass(CodeStream out) throws IOException
      Throws:
      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)
    • writeBody

      private void writeBody(MethodBuilder method)
    • needsLocalVariableTableEntry

      private boolean needsLocalVariableTableEntry(Type<?> localType)
    • getLocalInfo

      private List<ClassWriter.LocalInfo> getLocalInfo(MethodBuilder builder)
    • writeMemberAttributes

      private int writeMemberAttributes(MemberInfo member)
    • writeParameterAttributes

      private int writeParameterAttributes(MethodBuilder method)
    • getAnnotationRetention

      private RetentionPolicy getAnnotationRetention(AnnotationBuilder<? extends Annotation> a)
    • writeJavaAnnotations

      private int writeJavaAnnotations(ReadOnlyList<AnnotationBuilder<? extends Annotation>> annotations)
    • writeAnnotation

      private void writeAnnotation(AnnotationBuilder<? extends Annotation> a)
    • writeAttributeType

      private void writeAttributeType(Object value)
    • writeAttribute

      private int writeAttribute(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)